package Ġcom . hip oom . scaffold . core . m ason ry . constraint . horizontal Ċ Ċ import Ġandroid . view . View Ċ import Ġcom . mo olv . m ason ry . constraint . horizontal . Horizontal Constraint Ċ import Ġcom . hip oom . scaffold . core . m ason ry . constraint . side . to EndOf Ċ import Ġcom . hip oom . scaffold . core . m ason ry . constraint . side . to Start Of Ċ Ċ /** Ċ Ġ* Ġ@ author ĠZ h eng H ai Peng Ċ Ġ* Ġ@ since Ġ 2 0 1 9 - 1 2 - 0 6 Ġ 2 0 : 1 5 Ċ Ġ* Ċ Ġ*/ ĊĊĊ Ċ infix Ġfun ĠHorizontal Constraint . of ( view : ĠView ): ĠHorizontal Constraint Ġ{ ĊĠĠĠ Ġmake . start Ġto Start Of Ġview ĊĠĠĠ Ġmake . end Ġto EndOf Ġview ĊĠĠĠ Ġreturn Ġthis Ċ } Ċ Ċ infix Ġfun ĠHorizontal Constraint . margin ( px : ĠInt ): ĠHorizontal Constraint Ġ{ ĊĠĠĠ Ġmake . start . margin Ġ= Ġpx ĊĠĠĠ Ġmake . end . margin Ġ= Ġpx ĊĠĠĠ Ġreturn Ġthis Ċ } Ċ Ċ infix Ġfun ĠHorizontal Constraint . center ( view : ĠView ) Ġ= Ġof ( view ) Ċ