package Ġcom . squareup . cycler Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . view . View Ċ import Ġandroidx . annotation . Id Res Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġandroidx . recyclerview . widget . RecyclerView . LayoutManager Ċ import Ġcom . squareup . cycler . Recycler . Companion . create Ċ import Ġcom . squareup . cycler . Recycler . Config Ċ Ċ /** Ċ Ġ* ĠFactory Ġmethod Ġto Ġcreate Ġa ĠRe cycler Ġby Ġfinding Ġa Ġ[ RecyclerView ] Ġin Ġthis Ġview . Ċ Ġ* Ċ Ġ* ĠThe Ġ[ block ] Ġis Ġa Ġlambda Ġon Ġ[ Recycler . Config ] Ġspecifying Ġall Ġrow Ġtypes Ċ Ġ* Ġand Ġextra Ġoptions . ĠSame Ġas Ġ[ create ] Ġbut Ġit Ġtakes Ġan Ġalready Ġexisting Ġ[ RecyclerView ]. Ċ Ġ*/ Ċ inline Ġfun Ġ< I Ġ: ĠAny > ĠView . ad opt Recycler ById ( ĊĠ Ġ@ Id Res Ġre cycler Id : ĠInt , ĊĠ Ġno inline Ġlayout Provider : Ġ(( Context ) Ġ-> ĠLayout Manager )? Ġ= Ġnull , ĊĠ Ġcross inline Ġblock : ĠConfig < I >. () Ġ-> ĠUnit Ċ ): ĠRe cycler < I > Ġ= ĠRe cycler . ad opt ( findViewById ( recycler Id ), Ġlayout Provider , Ġblock ) Ċ