package Ġcom . id is fk j . awesome . home . fragment . adapter Ċ Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . databinding . ViewData Binding Ċ import Ġcom . id is fk j . awesome . basic . recyclerview . Base RecyclerView Adapter Ċ import Ġcom . id is fk j . awesome . basic . recyclerview . Base RecyclerView VH Ċ import Ġcom . id is fk j . awesome . basic . recyclerview . Common RecyclerView VH Ċ import Ġcom . id is fk j . awesome . common . model . Base Recycler ViewModel Ċ import Ġcom . id is fk j . awesome . common . model . TYPE _ INFO Ċ import Ġcom . id is fk j . awesome . common . model . User Model Ċ import Ġcom . id is fk j . awesome . home . BR Ċ import Ġcom . id is fk j . awesome . home . R Ċ import Ġcom . id is fk j . awesome . home . databinding . Home Item UserInfo Layout Binding Ċ import Ġcom . id is fk j . awesome . home . fragment . vm . Home UserInfo VM Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġid is fk j Ġon Ġ 2 0 1 9 - 0 9 - 0 3 . Ċ Ġ* ĠEmail Ġ: Ġid is fk j @ gmail . com . Ċ Ġ*/ Ċ class ĠHome RecyclerView Adapter Ġ: ĠBase RecyclerView Adapter () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ViewHolder ( ĊĠĠĠĠĠĠĠ Ġparent : ĠViewGroup , ĊĠĠĠĠĠĠĠ Ġview Type : ĠInt ĊĠĠĠ Ġ): ĠBase RecyclerView VH < ViewData Binding , ĠBase Recycler ViewModel > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġwhen Ġ( view Type ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTYPE _ INFO Ġ-> ĠCommon RecyclerView VH < Home Item UserInfo Layout Binding , ĠUser Model >( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġparent , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠR . layout . home _ item _ user _ info _ layout , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠHome UserInfo VM (), ĠBR . vm ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse Ġ-> Ġsuper . onCreate ViewHolder ( parent , Ġview Type ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }