package Ġmax e em . americ a . gd g . ui Ċ Ċ import Ġandroid . view . View Ċ import Ġandroid . widget . TextView Ċ import Ġandroidx . databinding . Binding Adapter Ċ import Ġmax e em . americ a . ext . from Html Ċ Ċ @ Binding Adapter (" g one If ") Ċ fun ĠView . g one If ( condition : ĠBoolean ?) Ġ{ ĊĠĠĠ Ġvisibility Ġ= Ġif Ġ( condition Ġ== Ġtrue ) ĠView . GONE Ġelse ĠView . VISIBLE Ċ } Ċ Ċ @ Binding Adapter (" visible On ") Ċ fun ĠView . visible On ( condition : ĠBoolean ?) Ġ{ ĊĠĠĠ Ġvisibility Ġ= Ġif Ġ( condition Ġ== Ġtrue ) ĠView . VISIBLE Ġelse ĠView . IN VISIBLE Ċ } Ċ Ċ @ Binding Adapter (" text Html ") Ċ fun ĠTextView . text Html ( str : ĠString ) Ġ{ ĊĠĠĠ Ġtext Ġ= Ġstr . from Html () Ċ } ĊĊ