package Ġcom . mut l ak . metis . word mem . features . result . widget ĊĊ Ċ import Ġandroid . content . Context Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroid . widget . TextView Ċ import Ġandroidx . card view . widget . Card View Ċ import Ġandroidx . core . content . Context Compat Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ Ċ import Ġcom . mut l ak . metis . word mem . R Ċ import Ġcom . mut l ak . metis . word mem . data . model . pojo . Question Ċ import Ġcom . mut l ak . metis . word mem . data . model . Settings Ċ import Ġcom . mut l ak . metis . word mem . features . settings . Settings Activity Ċ Ċ class ĠResult Wrong Word Adapter ( private Ġval ĠmContext : ĠContext , Ġprivate Ġval Ġsettings : ĠSettings , ĊĠĠĠ Ġprivate Ġval Ġquestions : ĠList < Question >) Ġ: ĠRecyclerView . Adapter < Result Wrong Word Adapter . Answer ViewHolder >() Ġ{ ĊĊĠ Ġoverride Ġfun ĠonCreate ViewHolder ( parent : ĠViewGroup , Ġview Type : ĠInt ): ĠAnswer ViewHolder Ġ{ ĊĠĠĠ Ġval ĠitemView Ġ= ĠLayoutInflater . from ( parent . context ) ĊĠĠĠĠĠĠĠ Ġ. inflate ( R . layout . result _ wrong _ list _ item , Ġparent , Ġfalse ) ĊĊĠĠĠ Ġreturn ĠAnswer ViewHolder ( item View ) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġon Bind ViewHolder ( holder : ĠAnswer ViewHolder , Ġposition : ĠInt ) Ġ{ ĊĠĠĠ Ġval Ġquestion Ġ= Ġquestions [ position ] ĊĠĠĠ Ġholder . card View . background Ġ= ĠContext Compat . get Drawable ( mContext , ĊĠĠĠĠĠĠĠ ĠR . drawable . answer _ card _ wrong _ border ) ĊĠĠĠ Ġholder . word . text Ġ= Ġquestion . question . english ĊĠĠĠ Ġwhen Ġ( settings . quiz Type ) Ġ{ ĊĠĠĠĠĠ ĠSettings Activity . QUI Z _ TYPE _ WORD Ġ-> Ġ{ ĊĠĠĠĠĠĠĠ Ġholder . correct Answer . text Ġ= Ġquestion . question . single Tur k ish ĊĠĠĠĠĠĠĠ Ġholder . wrong Answer . text Ġ= Ġquestion . user Response !!. single Tur k ish ĊĠĠĠĠĠ Ġ} ĊĠĠĠĠĠ ĠSettings Activity . QUI Z _ TYPE _ SENT ENCE Ġ-> Ġ{ ĊĠĠĠĠĠĠĠ Ġholder . correct Answer . text Ġ= Ġquestion . question . mean ing ĊĠĠĠĠĠĠĠ Ġholder . wrong Answer . text Ġ= Ġquestion . user Response !!. mean ing ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun ĠgetItem Count (): ĠInt Ġ{ ĊĠĠĠ Ġreturn Ġquestions . size ĊĠ Ġ} ĊĊĠ Ġinner Ġclass ĠAnswer ViewHolder ( view : ĠView ) Ġ: ĠRecyclerView . ViewHolder ( view ) Ġ{ ĊĠĠĠ Ġvar Ġword : ĠTextView Ġ= Ġview . findViewById < View >( R . id . result _ item _ word ) Ġas ĠTextView ĊĠĠĠ Ġvar Ġcorrect Answer : ĠTextView Ġ= Ġview . findViewById < View >( R . id . result _ item _ correct _ mean ing ) Ġas ĠTextView ĊĠĠĠ Ġvar Ġwrong Answer : ĠTextView Ġ= Ġview . findViewById < View >( R . id . result _ item _ user _ answer ) Ġas ĠTextView ĊĠĠĠ Ġvar Ġcard View : ĠCard View Ġ= Ġview . findViewById < View >( R . id . result _ wrong _ card view ) Ġas ĠCard View ĊĊĠ Ġ} Ċ } Ċ