package Ġcom . pn ue ma . android . github pr viewer . pull requests . ui . view holder Ċ Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . annotation . Layout Res Ċ import Ġandroidx . core . content . Context Compat Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġcom . bump tech . glide . request . RequestOptions Ċ import Ġcom . pn ue ma . android . github pr viewer . R Ċ import Ġcom . pn ue ma . android . github pr viewer . common . glide . G lide App Ċ import Ġcom . pn ue ma . android . github pr viewer . databinding . Pull Item Binding Ċ import Ġcom . pn ue ma . android . github pr viewer . pull requests . ui . IP ull Clicked Ċ import Ġcom . pn ue ma . android . github pr viewer . pull requests . ui . model . Pull Model Ċ Ċ class ĠPull Request ViewHolder ( ĊĠĠĠ Ġparent : ĠViewGroup , ĊĠĠĠ Ġprivate Ġval Ġbinding : ĠPull Item Binding Ġ= ĠPull Item Binding . inflate ( LayoutInflater . from ( parent . context ), Ġparent , Ġfalse ) Ċ ): ĠRecyclerView . ViewHolder ( binding . root ) Ġ{ ĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġ@ Layout Res ĊĠĠĠĠĠĠĠ Ġprivate Ġconst Ġval Ġlayout Ġ= ĠR . layout . pull _ item ĊĠĠĠĠĠĠĠ Ġconst Ġval Ġtype Ġ= Ġlayout ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġbind ( model : ĠPull Model , Ġclick Listener : ĠIP ull Clicked ) Ġ{ ĊĊĠĠĠĠĠĠĠ ĠG lide App . with ( item View . context ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. load ( model . avatar Url ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. apply ( RequestOptions . circle Crop Transform ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. placeholder ( Context Compat . get Drawable ( item View . context , ĠR . drawable . account )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. into ( binding . pull User Avatar ) ĊĊĠĠĠĠĠĠĠ Ġbinding . pull Name . text Ġ= Ġmodel . title ĊĠĠĠĠĠĠĠ Ġbinding . pull Description . text Ġ= ĠitemView . context . getString ( R . string . number _ hash _ tag , Ġmodel . number ) ĊĊĠĠĠĠĠĠĠ Ġbinding . root . setOnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġclick Listener . on Pull Clicked ( model ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }