package Ġio . github . sky walk erd ar ren . simple accounting . adapter Ċ Ċ import Ġcom . ch ad . library . adapter . base . view holder . Base Data Binding Holder Ċ import Ġio . github . sky walk erd ar ren . simple accounting . R Ċ import Ġio . github . sky walk erd ar ren . simple accounting . base . Base Data Binding Adapter Ċ import Ġio . github . sky walk erd ar ren . simple accounting . databinding . Item Currency Single Binding Ċ import Ġio . github . sky walk erd ar ren . simple accounting . model . entity . Currency Info Ċ Ċ class ĠCurrency Select Adapter Ġ@ Jvm Over loads Ġconstructor ( data : ĠMutable List < Currency Info >? Ġ= Ġnull ) Ġ: ĠBase Data Binding Adapter < Currency Info , ĠItem Currency Single Binding >( R . layout . item _ currency _ single , Ġdata ) Ġ{ ĊĠĠĠ Ġvar Ġcurrent : ĠString ? Ġ= Ġnull ĊĊĠĠĠ Ġoverride Ġfun Ġconvert ( holder : ĠBase Data Binding Holder < Item Currency Single Binding >, Ġitem : ĠCurrency Info ) Ġ{ ĊĠĠĠĠĠĠĠ Ġholder . data Binding ?. info Ġ= Ġitem ĊĠĠĠĠĠĠĠ Ġholder . data Binding ?. selected ?. isChecked Ġ= Ġcurrent Ġ!= Ġnull Ġ&& Ġitem . name Ġ== Ġcurrent Ċ // ĠĠĠĠĠĠĠ Ġholder . data Binding ?. add OnClickListener ( R . id . item ) Ċ // ĠĠĠĠĠĠĠ Ġholder . data Binding ?. add OnClickListener ( R . id . selected ) ĊĠĠĠ Ġ} Ċ } Ċ