package Ġme . sweet ll . t uc ao . business . home . adapter Ċ Ċ import Ġandroid . widget . ImageView Ċ import Ġcom . ch ad . library . adapter . base . Base Multi Item Quick Adapter Ċ import Ġcom . ch ad . library . adapter . base . Base ViewHolder Ċ import Ġme . sweet ll . t uc ao . R Ċ import Ġme . sweet ll . t uc ao . business . home . model . Message Detail Ċ import Ġme . sweet ll . t uc ao . extension . load Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġsweet Ġon Ġ 3 / 2 5 / 1 8 . Ċ Ġ*/ Ċ class ĠMessage Detail Adapter ( data : ĠMutable List < Message Detail >? ): ĠBase Multi Item Quick Adapter < Message Detail , ĠBase ViewHolder >( data ) Ġ{ ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġadd ItemType ( Message Detail . TYPE _ LEFT , ĠR . layout . item _ message _ left ) ĊĠĠĠĠĠĠĠ Ġadd ItemType ( Message Detail . TYPE _ RIGHT , ĠR . layout . item _ message _ right ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġconvert ( helper : ĠBase ViewHolder , Ġitem : ĠMessage Detail ) Ġ{ ĊĠĠĠĠĠĠĠ Ġhelper . getView < ImageView >( R . id . img _ avatar ). load ( mContext , Ġitem . avatar , ĠR . drawable . default _ avatar ) ĊĠĠĠĠĠĠĠ Ġhelper . setText ( R . id . text _ message , Ġitem . message ) ĊĠĠĠ Ġ} Ċ Ċ }