package Ġcom . me te han bol at . kotlin social view binding . adapter Ċ Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġcom . me te han bol at . kotlin social view binding . databinding . Recycler Row Binding Ċ import Ġcom . me te han bol at . kotlin social view binding . model . Post Ċ import Ġcom . squareup . pic asso . Pic asso Ċ Ċ class ĠFeed Recycler Adapter ( private Ġval Ġpost List : ĠArrayList < Post >): ĠRecyclerView . Adapter < Feed Recycler Adapter . Post Holder >() Ġ{ ĊĊĠĠĠ Ġclass ĠPost Holder ( val Ġbinding : ĠRe cycler Row Binding ): ĠRecyclerView . ViewHolder ( binding . root ){ ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ViewHolder ( parent : ĠViewGroup , Ġview Type : ĠInt ): ĠPost Holder Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbinding Ġ= ĠRe cycler Row Binding . inflate ( LayoutInflater . from ( parent . context ), Ġparent , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġreturn ĠPost Holder ( binding ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Bind ViewHolder ( holder : ĠPost Holder , Ġposition : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġholder . binding . recycler Email Text . text Ġ= Ġpost List [ position ]. email ĊĠĠĠĠĠĠĠ Ġholder . binding . recycler Comment Text . text Ġ= Ġpost List [ position ]. comment ĊĠĠĠĠĠĠĠ ĠPic asso . get (). load ( post List [ position ]. download Url ). into ( holder . binding . recycler ImageView ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠgetItem Count (): ĠInt Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġpost List . size ĊĠĠĠ Ġ} Ċ }