package Ġarch . binding čĊč Ċ import Ġandroid . net . Uri č Ċ import Ġandroid . widget . Image Button č Ċ import Ġandroid . widget . ImageView č Ċ import Ġandroidx . databinding . Binding Adapter č Ċ import Ġcom . bump tech . glide . G lide č Ċ import Ġjava . io . File čĊč Ċ @ Binding Adapter ( value Ġ= Ġ[" image Resource "], Ġrequire All Ġ= Ġfalse ) č Ċ fun Ġset Image Resource Circular ( view : ĠImage Button , Ġres Id : ĠInt ) Ġ{ čĊĠĠĠ Ġview . setImage Resource ( res Id ) č Ċ } čĊč Ċ @ Binding Adapter ( value Ġ= Ġ[" url "], Ġrequire All Ġ= Ġfalse ) č Ċ fun Ġset Url Circular ( view : ĠImageView , Ġurl : ĠString ?) Ġ{ čĊĠĠĠ ĠG lide . with ( view . context ). load ( url ). into ( view ) č Ċ } čĊč Ċ @ Binding Adapter ( value Ġ= Ġ[" uri "], Ġrequire All Ġ= Ġfalse ) č Ċ fun Ġset Uri Circular ( view : ĠImageView , Ġuri : ĠUri ?) Ġ{ čĊĠĠĠ ĠG lide . with ( view . context ). load ( uri ). into ( view ) č Ċ } čĊč Ċ @ Binding Adapter ( value Ġ= Ġ[" file "], Ġrequire All Ġ= Ġfalse ) č Ċ fun Ġset File ( view : ĠImageView , Ġfile : ĠFile ?) Ġ{ čĊĠĠĠ ĠG lide . with ( view . context ). load ( file ). into ( view ) č Ċ } čĊčĊčĊ