package Ġcom . example . administrator . li ved ata demo . binding Ċ Ċ import Ġandroid . databinding . Binding Adapter Ċ import Ġandroid . support . v 7 . widget . Linear LayoutManager Ċ import Ġandroid . support . v 7 . widget . RecyclerView Ċ Ċ object ĠBinding Adapters Ġ{ ĊĠĠĠ Ġ@ Jvm Static ĊĠĠĠ Ġ@ Binding Adapter ( value Ġ= Ġ[" adapter "]) ĊĠĠĠ Ġfun Ġ< T Ġ: ĠRecyclerView . ViewHolder > Ġset Adapter ( re cyclerView : ĠRecyclerView , Ġadapter : ĠRecyclerView . Adapter < T >) Ġ{ ĊĠĠĠĠĠĠĠ Ġre cyclerView . set Has Fixed Size ( true ) ĊĠĠĠĠĠĠĠ Ġre cyclerView . layout Manager Ġ= ĠLinearLayoutManager ( re cyclerView . context ) ĊĠĠĠĠĠĠĠ Ġre cyclerView . adapter Ġ= Ġadapter ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Jvm Static ĊĠĠĠ Ġ@ Binding Adapter ( value Ġ= Ġ[" refresh "]) ĊĠĠĠ Ġfun Ġauto Refresh Adapter ( re cyclerView : ĠRecyclerView , Ġboolean : ĠBoolean ) Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( boolean ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġre cyclerView . adapter . notify DataSet Changed () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }