/* Ċ Ġ* ĠCopyright Ġ( C ) Ġ 2 0 2 1 ĠK av in ĠR aj u ĠS Ċ Ġ* ĠLicensed Ġunder Ġthe ĠZero ĠNon commercial ĠPublic ĠLicense Ġv 1 . 0 Ċ Ġ* Ċ Ġ* Ċ Ġ*/ Ċ Ċ package Ġcom . sr il as aka . icon finder app . ui . view _ holders Ċ Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġcom . sr il as aka . icon finder app . databinding . Layout Basic Details Binding Ċ import Ġcom . sr il as aka . icon finder app . ui . adapters . Basic Details Adapter Ċ import Ġcom . sr il as aka . icon finder app . ui . models . Basic Details Model Ċ Ċ /** Ċ Ġ* ĠView ĠH older Ġof Ġthe ĠBasic Details ĠLayout ĠRecyclerView Ġlist Ġitem Ċ Ġ*/ Ċ class ĠBasic Details ViewHolder Ġprivate Ġconstructor ( ĊĠĠĠ Ġval Ġbinding : ĠLayout Basic Details Binding Ċ ) Ġ: ĊĠĠĠ ĠRecyclerView . ViewHolder ( binding . root ) Ġ{ ĊĊĠĠĠ Ġfun Ġbind ( ĊĠĠĠĠĠĠĠ Ġbasic Details Model : ĠBasic Details Model , ĊĠĠĠĠĠĠĠ Ġclick Listener : ĠBasic Details Adapter . Basic Details Adapter ClickListener ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠĠĠ Ġbinding . model Ġ= Ġbasic Details Model ĊĠĠĠĠĠĠĠ Ġbinding . click Listener Ġ= Ġclick Listener ĊĠĠĠĠĠĠĠ Ġbinding . execute Pending Bindings () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġfrom ( parent : ĠViewGroup ): ĠBasic Details ViewHolder Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġlayout Inflater Ġ= ĠLayoutInflater . from ( parent . context ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġbinding Ġ= ĠLayout Basic Details Binding . inflate ( layout Inflater , Ġparent , Ġfalse ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠBasic Details ViewHolder ( binding ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }