package Ġcom . alex andre ob sil va . a 1 2 pass os nama ur icio . view . adapter Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . Intent Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġcom . alex andre ob sil va . a 1 2 pass os nama ur icio . R Ċ import Ġcom . alex andre ob sil va . a 1 2 pass os nama ur icio . model . po jos . Pass os Tr ad ico es Con ce itos Ċ import Ġcom . alex andre ob sil va . a 1 2 pass os nama ur icio . view . activity s . Det al he Activity Ċ import Ġkotlinx . android . synt hetic . main . item _ recycler . view .* Ċ Ċ class ĠAdapter D asList as ( private Ġval Ġcontext : ĠContext , Ġprivate Ġvar Ġtexto List as : ĠMutable List < Pass os Tr ad ico es Con ce itos >) Ġ: ĊĠĠĠ ĠRecyclerView . Adapter < Adapter D asList as . Game ViewHolder >() Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ViewHolder ( parent : ĠViewGroup , Ġview Type : ĠInt ): ĠAdapter D asList as . Game ViewHolder Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġview Ġ= ĠLayoutInflater . from ( context ). inflate ( R . layout . item _ recycler , Ġparent , Ġfalse ) ĊĊĠĠĠĠĠĠĠ Ġreturn ĠGame ViewHolder ( view ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠgetItem Count (): ĠInt Ġ= Ġtexto List as . size ĊĊĠĠĠ Ġoverride Ġfun Ġon Bind ViewHolder ( holder : ĠAdapter D asList as . Game ViewHolder , Ġposition : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġholder . bind View ( texto List as [ position ]) ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġclass ĠGame ViewHolder ( item View : ĠView ) Ġ: ĠRecyclerView . ViewHolder ( item View ) Ġ{ ĊĊĠĠĠĠĠĠĠ Ġval Ġt itulo Ġ= ĠitemView . titulo _ list t _ text _ view ĊĊĠĠĠĠĠĠĠ Ġfun Ġbind View ( pass os : ĠPass os Tr ad ico es Con ce itos ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġt itulo . text Ġ= Ġpass os . titulo ĊĊĊĠĠĠĠĠĠĠĠĠĠĠ ĠitemView . setOnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġintent Ġ= ĠIntent ( item View . context , Det al he Activity :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġintent . putExtra (" Key 1 0 ", Ġpass os ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠitemView . context . startActivity ( intent ) ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }