package Ġcom . nik ita . movies _ shm oo v ies . movies . adapters Ċ Ċ import Ġandroid . support . v 7 . widget . RecyclerView Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroid . widget . TextView Ċ import Ġcom . nik ita . movies _ shm oo v ies . R Ċ import Ġcom . nik ita . movies _ shm oo v ies . common . utils . find View Ċ import Ġcom . nik ita . movies _ shm oo v ies . common . utils . layout Inflater Ċ import Ġcom . nik ita . movies _ shm oo v ies . movie detail . Credits Ċ Ċ class ĠCre w Adapter Ġ: ĠRecyclerView . Adapter < Cre w Member Holder >() Ġ{ ĊĠĠĠ Ġvar Ġdata : ĠList < Credits . Cre w > Ġ= Ġempty List () ĊĊĠĠĠ Ġoverride Ġfun Ġon Bind ViewHolder ( holder : ĠCre w Member Holder , Ġposition : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġholder . name . text Ġ= Ġdata [ position ]. name ĊĠĠĠĠĠĠĠ Ġholder . job . text Ġ= Ġdata [ position ]. job ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ViewHolder ( parent : ĠViewGroup , Ġview Type : ĠInt ): ĠCre w Member Holder Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠCre w Member Holder ( parent . context . layout Inflater . inflate ( R . layout . cre w _ item , Ġnull )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠgetItem Count () Ġ= Ġdata . size Ċ } Ċ Ċ class ĠCre w Member Holder ( view : ĠView ) Ġ: ĠRecyclerView . ViewHolder ( view ) Ġ{ ĊĠĠĠ Ġval Ġname Ġ= Ġview . find View < TextView >( R . id . cre w _ member _ name ) ĊĠĠĠ Ġval Ġjob Ġ= Ġview . find View < TextView >( R . id . cre w _ member _ job ) Ċ } Ċ