package Ġme . yk rank . s 1 next . view . adapter . delegate Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . support . v 7 . widget . RecyclerView Ċ import Ġandroid . view . ViewGroup Ċ Ċ import Ġme . yk rank . s 1 next . data . api . model . Home Thread Ċ import Ġme . yk rank . s 1 next . databinding . Item Home Reply Title Binding Ċ import Ġme . yk rank . s 1 next . view model . Home Reply Title ViewModel Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġy k rank Ġon Ġ 2 0 1 7 / 2 / 4 . Ċ Ġ*/ Ċ Ċ class ĠHome Reply Title Adapter Delegate ( context : ĠContext ) Ġ: ĠBase Adapter Delegate < Home Thread , ĠHome Reply Title Adapter Delegate . Binding ViewHolder >( context , ĠHome Thread :: class . java ) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġon Bind ViewHolder Data ( t : ĠHome Thread , Ġposition : ĠInt , Ġholder : ĠBinding ViewHolder , Ġpayload s : ĠList < Any >) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbinding Ġ= Ġholder . binding ĊĠĠĠĠĠĠĠ Ġbinding . model ?. thread ?. set ( t ) ĊĠĠĠĠĠĠĠ Ġbinding . execute Pending Bindings () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ViewHolder ( parent : ĠViewGroup ): ĠRecyclerView . ViewHolder Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbinding Ġ= ĠItem Home Reply Title Binding . inflate ( m LayoutInflater , Ġparent , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġbinding . model Ġ= ĠHome Reply Title ViewModel () ĊĠĠĠĠĠĠĠ Ġreturn ĠHome Reply Title Adapter Delegate . Binding ViewHolder ( binding ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġclass ĠBinding ViewHolder ( val Ġbinding : ĠItem Home Reply Title Binding ) Ġ: ĠRecyclerView . ViewHolder ( binding . root ) Ċ } Ċ