package Ġcom . ap ion . ap ion home . ui . binding Ċ Ċ import Ġandroidx . databinding . Binding Adapter Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġandroidx . view pager 2 . widget . ViewPager 2 Ċ import Ġcom . ap ion . ap ion home . base . Bind Ab le Adapter Ċ Ċ @ Suppress (" UN CHECK ED _ CAST ") Ċ @ Binding Adapter (" data ") Ċ fun Ġ< T > Ġset RecyclerView Properties ( re cyclerView : ĠRecyclerView , Ġdata : ĠList < T > ?) Ġ{ ĊĠĠĠ Ġ( re cyclerView . adapter Ġas ? ĠBind Ab le Adapter < List < T >>) ?. setData ( data ) Ċ } Ċ Ċ @ Suppress (" UN CHECK ED _ CAST ") Ċ @ Binding Adapter (" data Slider ") Ċ fun Ġ< T > Ġset RecyclerView Properties ( view Pager 2 : ĠView Pager 2 , Ġdata : ĠList < T > ?) Ġ{ ĊĠĠĠ Ġ( view Pager 2 . adapter Ġas ? ĠBind Ab le Adapter < List < T >>) ?. setData ( data ) Ċ }