package Ġcom . ro hit . quiz zon . ui . view holder Ċ Ċ import Ġandroid . annotation . Suppress Lint Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġcom . ro hit . quiz zon . data . model . Create Question Data Ċ import Ġcom . ro hit . quiz zon . databinding . Single Create Question Binding Ċ import Ġcom . ro hit . quiz zon . utils . listener . Create Quiz Listener Ċ Ċ class ĠCreate Question ViewHolder ( ĊĠĠĠ Ġprivate Ġval Ġbinding : ĠSingle Create Question Binding , ĊĠĠĠ Ġprivate Ġval Ġcreate Quiz Listener : ĠCreate Quiz Listener Ċ ) Ġ: ĊĠĠĠ ĠRecyclerView . ViewHolder ( binding . root ) Ġ{ ĊĊĠĠĠ Ġ@ Suppress Lint (" SetText I 1 8 n ") ĊĠĠĠ Ġfun Ġbind ( question Data : ĠCreate Question Data ) Ġ= Ġbinding . apply Ġ{ ĊĠĠĠĠĠĠĠ Ġtext Question Index . text Ġ= Ġquestion Data . question Index . toString () ĊĠĠĠĠĠĠĠ Ġtext Question Statement . text Ġ= Ġquestion Data . question Statement ĊĠĠĠĠĠĠĠ Ġtext Option 1 . text Ġ= Ġ" Option Ġ 1 : Ġ${ question Data . option 1 }" ĊĠĠĠĠĠĠĠ Ġtext Option 2 . text Ġ= Ġ" Option Ġ 2 : Ġ${ question Data . option 2 }" ĊĠĠĠĠĠĠĠ Ġtext Option 3 . text Ġ= Ġ" Option Ġ 3 : Ġ${ question Data . option 3 }" ĊĠĠĠĠĠĠĠ Ġtext Option 4 . text Ġ= Ġ" Option Ġ 4 : Ġ${ question Data . option 4 }" ĊĠĠĠĠĠĠĠ Ġtext Answer . text Ġ= Ġ" Answer : Ġ${ question Data . answer }" ĊĠĠĠĠĠĠĠ Ġimg Delete Item . setOnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcreate Quiz Listener . click Delete Item ( absolute Adapter Position ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġcreate ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġparent : ĠViewGroup , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcreate Quiz Listener : ĠCreate Quiz Listener ĊĠĠĠĠĠĠĠ Ġ): ĠCreate Question ViewHolder Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġm View Ġ= ĠLayoutInflater . from ( parent . context ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġbinding Ġ= ĠSingle Create Question Binding . inflate ( m View , Ġparent , Ġfalse ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠCreate Question ViewHolder ( binding , Ġcreate Quiz Listener ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ