package Ġcom . p unto gr is . post ure . ui . home Ċ Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġcom . p unto gr is . post ure . databinding . Day Log Home Pager Item Binding Ċ import Ġcom . p unto gr is . post ure . domain . model . Day Log Ċ Ċ class ĠDay Log Home ViewHolder ( private Ġval Ġbinding : ĠDay Log Home Pager Item Binding ) Ġ: ĊĠĠĠ ĠRecyclerView . ViewHolder ( binding . root ) Ġ{ ĊĊĠĠĠ Ġfun Ġbind ( day Log : ĠDay Log , Ġposition : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġbinding . day History Ġ= Ġday Log ĊĠĠĠĠĠĠĠ Ġbinding . position Ġ= Ġposition ĊĠĠĠĠĠĠĠ Ġbinding . execute Pending Bindings () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġfrom ( parent : ĠViewGroup ): ĠDay Log Home ViewHolder Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġlayout Inflater Ġ= ĠLayoutInflater . from ( parent . context ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġbinding Ġ= ĠDay Log Home Pager Item Binding . inflate ( layout Inflater , Ġparent , Ġfalse ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠDay Log Home ViewHolder ( binding ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }