package Ġorg . step ik . android . view . course _ content . ui . adapter . deleg ates . unit Ċ Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġorg . step ic . d roid . R Ċ import Ġorg . step ic . d roid . ui . custom . adapter _ deleg ates . Adapter Delegate Ċ import Ġorg . step ic . d roid . ui . custom . adapter _ deleg ates . Delegate ViewHolder Ċ import Ġorg . step ik . android . view . course _ content . model . Course Content Item Ċ Ċ class ĠCourse Content Unit Placeholder Delegate Ġ: ĠAdapter Delegate < Course Content Item , ĠDelegate ViewHolder < Course Content Item >>() Ġ{ ĊĠĠĠ Ġoverride Ġfun ĠonCreate ViewHolder ( parent : ĠViewGroup ): ĠDelegate ViewHolder < Course Content Item > Ġ= ĊĠĠĠĠĠĠĠ ĠViewHolder ( create View ( parent , ĠR . layout . view _ course _ content _ unit _ placeholder )) ĊĊĠĠĠ Ġoverride Ġfun Ġis For ViewType ( position : ĠInt , Ġdata : ĠCourse Content Item ): ĠBoolean Ġ= ĊĠĠĠĠĠĠĠ Ġdata Ġis ĠCourse Content Item . Unit Item Placeholder ĊĊĠĠĠ Ġprivate Ġclass ĠViewHolder ( root : ĠView ) Ġ: ĠDelegate ViewHolder < Course Content Item >( root ) Ċ }