package Ġcom . ps he ty e . covid 1 9 . ui . countries . recyclerview Ċ Ċ import Ġandroid . icu . text . NumberFormat Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroid . widget . TextView Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġcom . ps he ty e . covid 1 9 . R Ċ import Ġcom . ps he ty e . covid 1 9 . ui . countries . view models . Country View DataModel Ċ import Ġkotlinx . android . synt hetic . main . country _ view . view .* Ċ Ċ class ĠCountry ViewHolder ( ĊĠĠĠ Ġprivate Ġval Ġview : ĠView Ċ ) Ġ: ĠRecyclerView . ViewHolder ( view ) Ġ{ ĊĠĠĠ Ġfun Ġbind ( data : ĠCountry View DataModel ) Ġ= Ġwith ( view ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġnumber Format Ġ= ĠNumber Format . getInstance () ĊĠĠĠĠĠĠĠ Ġcountry _ name . text Ġ= Ġcontext . getString ( R . string . ordered _ name , Ġdata . local Index , Ġdata . country Name ) ĊĠĠĠĠĠĠĠ Ġcases . text Ġ= Ġnumber Format . format ( data . cases ) ĊĠĠĠĠĠĠĠ Ġrecover ies . text Ġ= Ġnumber Format . format ( data . re covered ) ĊĠĠĠĠĠĠĠ Ġcritical . text Ġ= Ġnumber Format . format ( data . critical ) ĊĠĠĠĠĠĠĠ Ġdeath s . text Ġ= Ġnumber Format . format ( data . deaths ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ fun Ġcreate Country ViewHolder ( parent : ĠViewGroup ): ĠCountry ViewHolder Ġ= ĊĠĠĠ Ġwith ( LayoutInflater . from ( parent . context )) Ġ{ ĊĠĠĠĠĠĠĠ ĠCountry ViewHolder ( inflate ( R . layout . country _ view , Ġparent , Ġfalse )) ĊĠĠĠ Ġ} Ċ