package Ġme . yk rank . s 1 next . view . adapter . delegate Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . databinding . Data Binding Util Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġandroid . view . ViewGroup Ċ import Ġcom . github . yk rank . android tools . ui . adapter . simple . Simple Re cycle ViewHolder Ċ import Ġme . yk rank . s 1 next . R Ċ import Ġme . yk rank . s 1 next . data . api . model . search . Forum SearchResult Ċ import Ġme . yk rank . s 1 next . databinding . Item Search Forum Binding Ċ Ċ class ĠSearch Forum Adapter Delegate ( context : ĠContext ) Ġ: ĠBase Adapter Delegate < Forum SearchResult , ĠSimple Re cycle ViewHolder < Item Search Forum Binding >>( context , ĠFor um SearchResult :: class . java ) Ġ{ ĊĊĠĠĠ Ġpublic Ġoverride Ġfun ĠonCreate ViewHolder ( parent : ĠViewGroup ): Ġandroidx . recyclerview . widget . RecyclerView . ViewHolder Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbinding Ġ= ĠData Binding Util . inflate < Item Search Forum Binding >( m LayoutInflater , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠR . layout . item _ search _ forum , Ġparent , Ġfalse ) ĊĊĠĠĠĠĠĠĠ Ġreturn ĠSimple Re cycle ViewHolder ( binding ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Bind ViewHolder Data ( forum SearchResult : ĠFor um SearchResult , Ġposition : ĠInt , Ġholder : ĠSimple Re cycle ViewHolder < Item Search Forum Binding >, Ġpayload s : ĠList < Any >) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbinding Ġ= Ġholder . binding ĊĠĠĠĠĠĠĠ Ġbinding . model Ġ= Ġforum SearchResult ĊĠĠĠ Ġ} Ċ } Ċ