package Ġpl . ang ul ski . salary tracker . app . salary . ui . list Ċ Ċ import Ġandroid . support . v 7 . widget . RecyclerView Ċ import Ġandroid . view . ViewGroup Ċ import Ġkotlinx . android . synt hetic . main . salary _ list _ item . view .* Ċ import Ġpl . ang ul ski . mobile . extension . inflate Ċ import Ġpl . ang ul ski . mobile . view . recycler . ViewType Ċ import Ġpl . ang ul ski . mobile . view . recycler . ViewType Delegate Adapter Ċ import Ġpl . ang ul ski . salary tracker . app . R Ċ Ċ class ĠSal aries Delegate Adapter : ĠView Type Delegate Adapter Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ViewHolder ( parent : ĠViewGroup ): ĠRecyclerView . ViewHolder Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠSal ary ViewHolder ( parent ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Bind ViewHolder ( holder : ĠRecyclerView . ViewHolder , Ġitem : ĠView Type ) Ġ{ ĊĠĠĠĠĠĠĠ Ġholder Ġas ĠSal ary ViewHolder ĊĠĠĠĠĠĠĠ Ġholder . bind ( item Ġas ĠSal ary ViewType ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġinner Ġclass ĠSal ary ViewHolder ( parent : ĠViewGroup ) Ġ: ĠRecyclerView . ViewHolder ( ĊĠĠĠĠĠĠĠ Ġparent . inflate ( R . layout . salary _ list _ item )) Ġ{ ĊĊĠĠĠĠĠĠĠ Ġfun Ġbind ( item : ĠSal ary ViewType ) Ġ= Ġwith ( item View ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġamount . text Ġ= Ġ"${ item . salary . money . amount C ents Ġ/ Ġ 1 0 0 } Ġz ÅĤ " ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ