package Ġdev . mf az io . abl . score board Ċ Ċ import Ġandroid . media . Image Ċ import Ġandroid . view . View Ċ import Ġandroid . widget . ImageView Ċ import Ġandroidx . databinding . Binding Adapter Ċ import Ġdev . mf az io . abl . R Ċ Ċ @ Binding Adapter (" is Occup ied ") Ċ fun Ġbind Is Occup ied ( imageView : ĠImageView , Ġis Occup ied : ĠBoolean ) Ġ{ ĊĠĠĠ ĠimageView . setImage Resource ( ĊĠĠĠĠĠĠĠ Ġif ( is Occup ied ) ĠR . drawable . score board _ status _ base _ occup ied ĊĠĠĠĠĠĠĠ Ġelse ĠR . drawable . score board _ status _ base _ empty ĊĠĠĠ Ġ) Ċ } Ċ Ċ @ Binding Adapter (" isVisible ") Ċ fun Ġbind Is Visible ( view : ĠView , Ġis Visible : ĠBoolean ) Ġ{ ĊĠĠĠ Ġview . visibility Ġ= Ġif ( isVisible ) ĠView . VISIBLE Ġelse ĠView . GONE Ċ }