package Ġorg . wikipedia . descriptions Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . util . Attribute Set Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroidx . constraint layout . widget . Constraint Layout Ċ import Ġorg . wikipedia . databinding . View Description Edit Read Article Bar Binding Ċ import Ġorg . wikipedia . suggest eded its . Page Summary For Edit Ċ import Ġorg . wikipedia . util . L 1 0 n Util . set Conditional Layout Direction Ċ import Ġorg . wikipedia . util . StringUtil Ċ import Ġorg . wikipedia . views . View Util Ċ Ċ class ĠDescription Edit Bottom Bar View Ġconstructor ( context : ĠContext , Ġattrs : ĠAttributeSet ? Ġ= Ġnull ) Ġ: ĠConstraint Layout ( context , Ġattrs ) Ġ{ ĊĠĠĠ Ġprivate Ġval Ġbinding Ġ= ĠView Description Edit Read Article Bar Binding . inflate ( LayoutInflater . from ( context ), Ġthis ) ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġhide () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġshow () Ġ{ ĊĠĠĠĠĠĠĠ Ġvisibility Ġ= ĠVIS IBLE ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġhide () Ġ{ ĊĠĠĠĠĠĠĠ Ġvisibility Ġ= ĠG ONE ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġset Summary ( summary For Edit : ĠPage Summary For Edit ) Ġ{ ĊĠĠĠĠĠĠĠ Ġset Conditional Layout Direction ( this , Ġsummary For Edit . lang ) ĊĠĠĠĠĠĠĠ Ġbinding . view Article Title . text Ġ= ĠString Util . from Html ( StringUtil . remove Namespace ( summary For Edit . display Title !! )) ĊĠĠĠĠĠĠĠ Ġif Ġ( summary For Edit . thumbnail Url . isNull OrEmpty ()) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . view Image Thumbnail . visibility Ġ= ĠG ONE ĊĠĠĠĠĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . view Image Thumbnail . visibility Ġ= ĠVIS IBLE ĊĠĠĠĠĠĠĠĠĠĠĠ ĠView Util . load Image ( binding . view Image Thumbnail , Ġsummary For Edit . thumbnail Url ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġshow () ĊĠĠĠ Ġ} Ċ } Ċ