package Ġcom . tel en . easy line up . views Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . util . Attribute Set Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroidx . constraint layout . widget . Constraint Layout Ċ import Ġcom . tel en . easy line up . R Ċ import Ġkotlinx . android . synt hetic . main . header _ player _ attack . view .* Ċ Ċ class ĠPlayer B at ting Header : ĠConstraint Layout Ġ{ ĊĊĠĠĠ Ġconstructor ( context : ĠContext ) Ġ: Ġsuper ( context ) Ġ{ Ġinit ( context ) Ġ} ĊĠĠĠ Ġconstructor ( context : ĠContext , Ġattrs : ĠAttributeSet ?) Ġ: Ġsuper ( context , Ġattrs ) Ġ{ Ġinit ( context ) Ġ} ĊĠĠĠ Ġconstructor ( context : ĠContext , Ġattrs : ĠAttributeSet ?, Ġdef Style Attr : ĠInt ) Ġ: Ġsuper ( context , Ġattrs , Ġdef Style Attr ) Ġ{ Ġinit ( context ) Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġinit ( context : ĠContext ) Ġ{ ĊĠĠĠĠĠĠĠ ĠLayoutInflater . from ( context ). inflate ( R . layout . header _ player _ attack , Ġthis ) ĊĠĠĠĠĠĠĠ Ġreorder Image . visibility Ġ= ĠView . IN VISIBLE ĊĠĠĠĠĠĠĠ Ġplayer Name . setText ( R . string . header _ bat ting _ order _ player _ name ) ĊĠĠĠĠĠĠĠ Ġfield Position . setText ( R . string . header _ bat ting _ order _ player _ position ) ĊĠĠĠĠĠĠĠ Ġsh irt Number . setText ( R . string . header _ bat ting _ order _ player _ sh irt ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun ĠsetIs Editable ( is Editable : ĠBoolean ) Ġ{ ĊĠĠĠĠĠĠĠ Ġreorder Image . visibility Ġ= Ġif ( is Editable ) ĠView . IN VISIBLE Ġelse ĠView . GONE ĊĠĠĠ Ġ} Ċ }