package Ġcom . super com . view . adapter Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . ViewGroup Ċ import Ġcom . super com . databinding . View holder Country Binding Ċ import Ġcom . super com . model . Country Cases Model Ċ import Ġcom . super com . utils . adapter . Default Adapter Diff Util Callback Ċ Ċ class ĠCountry Adapter ( private Ġval Ġcontext : ĠContext ) Ġ: Ġandroidx . recyclerview . widget . ListAdapter < Country Cases Model , ĠCountry ViewHolder >( Default Adapter Diff Util Callback < Country Cases Model >()) Ġ{ ĊĠĠĠ Ġoverride Ġfun ĠonCreate ViewHolder ( parent : ĠViewGroup , Ġview Type : ĠInt ): ĠCountry ViewHolder Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbinding Ġ= ĠView holder Country Binding . inflate ( LayoutInflater . from ( context ), Ġparent , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġreturn ĠCountry ViewHolder ( binding , Ġcontext ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Bind ViewHolder ( holder : ĠCountry ViewHolder , Ġposition : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġholder . bind ( getItem ( position )) ĊĠĠĠ Ġ} Ċ }