package Ġcom . e uro bond . features . view All Order . presentation Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġcom . e uro bond . R Ċ import Ġcom . e uro bond . features . view All Order . inter f . New Order Size Qty Del OnClick Ċ import Ġcom . e uro bond . features . view All Order . model . Product Order Ċ import Ġkotlinx . android . synt hetic . main . row _ new _ order _ size _ qty _ list . view .* Ċ Ċ class ĠOrder Size Qty Details Adapter ( var Ġcontext : ĠContext , var Ġsize _ qty _ list : ArrayList < Product Order >, val Ġlist ner : ĠNew Order Size Qty Del OnClick ) Ġ: ĊĠĠĠ ĠRecyclerView . Adapter < Order Size Qty Details Adapter . Size Qty ViewHolder > (){ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ViewHolder ( parent : ĠViewGroup , Ġview Type : ĠInt ): ĠSize Qty ViewHolder Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġview = LayoutInflater . from ( context ). inflate ( R . layout . row _ new _ order _ size _ qty _ list , parent , false ) ĊĠĠĠĠĠĠĠ Ġreturn ĠSize Qty ViewHolder ( view ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠgetItem Count (): ĠInt Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġsize _ qty _ list !!. size ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Bind ViewHolder ( holder : ĠSize Qty ViewHolder , Ġposition : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġholder . tv _ size . text =" Size Ġ: Ġ"+ size _ qty _ list . get ( position ). size ĊĠĠĠĠĠĠĠ Ġholder . tv _ qty . text =" Qty Ġ: Ġ"+ size _ qty _ list . get ( position ). qty Ċ Ċ // ĠĠĠĠĠĠĠ Ġholder . iv _ del . setOnClickListener { list ner . size Qty List OnClick ( size _ qty _ list . get ( holder . adapter Position ), holder . adapter Position )} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġinner Ġclass ĠSize Qty ViewHolder ( item View : View ): RecyclerView . ViewHolder ( item View ){ ĊĠĠĠĠĠĠĠ Ġval Ġtv _ size = item View . tv _ new _ order _ size ĊĠĠĠĠĠĠĠ Ġval Ġtv _ qty = item View . tv _ new _ order _ qty ĊĠĠĠĠĠĠĠ Ġval Ġiv _ del = item View . iv _ new _ order _ del ĊĠĠĠ Ġ} Ċ Ċ }