package Ġcom . ddd 4 . drop it . presentation . ui . folder Ċ Ċ import Ġandroid . widget . ImageView Ċ import Ġandroidx . card view . widget . Card View Ċ import Ġandroidx . databinding . Binding Adapter Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġcom . ddd 4 . drop it . presentation . entity . Presentation Entity Ċ import Ġcom . ddd 4 . drop it . presentation . ui . category . Category Adapter Ċ import Ġcom . ddd 4 . drop it . presentation . ui . move Folder . Move Folder Adapter Ċ import Ġcom . ddd 4 . drop it . presentation . util . ItemClickListener Ċ import Ġcom . ddd 4 . drop it . presentation . util . load Url Center Crop Ċ import Ġtim ber . log . Tim ber ĊĊ Ċ @ Binding Adapter (" folder Item ", Ġ" listener ", Ġ" image State ") Ċ fun Ġset Folder Item RecyclerView ( ĊĠĠĠ Ġre cyclerView : ĠRecyclerView , ĊĠĠĠ Ġlist : ĠList < Presentation Entity . Item > ?, ĊĠĠĠ Ġlistener : ĠItem Handler , ĊĠĠĠ Ġimage State : ĠBoolean Ċ ) Ġ{ ĊĠĠĠ Ġlist ?. let Ġ{ ĊĠĠĠĠĠĠĠ ĠTim ber . e (" first Ġbinding Ġend ! Ġsize : Ġ${ it . size }") ĊĠĠĠĠĠĠĠ Ġre cyclerView . apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġadapter Ġ= ĠFolder Adapter ( listener ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġ( re cyclerView . adapter Ġas ĠFolder Adapter ). run Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġsubmit List ( it ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġset Image State ( image State ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġre cyclerView . adapter ?. notify DataSet Changed () ĊĠĠĠ Ġ} Ċ } Ċ Ċ @ Binding Adapter (" category Item ", Ġ" listener ", Ġ" image State ") Ċ fun Ġset Category Item RecyclerView ( ĊĠĠĠ Ġre cyclerView : ĠRecyclerView , ĊĠĠĠ Ġlist : ĠList < Presentation Entity . Item > ?, ĊĠĠĠ Ġlistener : ĠItem Handler , ĊĠĠĠ Ġimage State : ĠBoolean ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠ Ġlist ?. let Ġ{ ĊĠĠĠĠĠĠĠ Ġre cyclerView . apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġadapter Ġ= ĠCategory Adapter ( listener ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġ( re cyclerView . adapter Ġas ĠCategory Adapter ). run Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġsubmit List ( it ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġset Image State ( image State ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ ĠTim ber . e (" first Ġbinding Ġend ! Ġsize : Ġ${ it . size }") ĊĠĠĠĠĠĠĠ Ġre cyclerView . adapter ?. notify DataSet Changed () ĊĠĠĠ Ġ} Ċ } Ċ Ċ @ Binding Adapter (" setImage ") Ċ fun Ġset ImageUrl ( view : ĠImageView , Ġsrc : ĠString ?) Ġ{ ĊĠĠĠ Ġsrc ?. let { ĊĠĠĠĠĠĠĠ Ġview . load Url Center Crop ( src ) ĊĠĠĠĠĠĠĠ Ġview . clip To Outline Ġ= Ġtrue ĊĠĠĠ Ġ} Ċ } Ċ Ċ @ Binding Adapter (" set Items ", Ġ" set Listener ") Ċ fun Ġset Folder RecyclerView ( re cyclerView : ĠRecyclerView , Ġlist : ĠList < Presentation Entity . Folder > ?, Ġlistener : ĠItem ClickListener ) Ġ{ ĊĠĠĠ Ġlist ?. let Ġ{ ĊĠĠĠĠĠĠĠ Ġre cyclerView . adapter Ġ= ĠMove Folder Adapter ( listener ) ĊĠĠĠĠĠĠĠ Ġ( re cyclerView . adapter Ġas ĠMove Folder Adapter ). submit List ( it ) ĊĠĠĠ Ġ} Ċ }