package Ġcom . ad ity a . artist assemble . fragment Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . recyclerview . widget . Divider Item Decoration Ċ import Ġandroidx . recyclerview . widget . Linear LayoutManager Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġcom . ad ity a . artist assemble . R Ċ import Ġcom . ad ity a . artist assemble . adapter . Dashboard Recycler Adapter Ċ import Ġcom . ad ity a . artist assemble . model . Drawing Ċ Ċ class ĠHome Fragment Ġ: ĠFragment () Ġ{ ĊĊĠĠĠ Ġlateinit Ġvar Ġre cycler home : ĠRecyclerView ĊĠĠĠ Ġlateinit Ġvar Ġlayout Manager : ĠRecyclerView . LayoutManager ĊĠĠĠ Ġlateinit Ġvar Ġre cycler Adapter : ĠDashboard Recycler Adapter ĊĠĠĠ Ġval Ġart InfoList Ġ= Ġarray ListOf ( ĊĠĠĠĠĠĠĠ ĠDraw ing ( 1 , Ġ" Ad ity a ", Ġ" 5 . 0 ", ĠR . drawable . kill , Ġ" Rs . Ġ 6 0 0 ", Ġ" Kill ĠBill "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 2 , Ġ" Dr . ĠR avi ĠB h ush an ", Ġ" 4 . 9 ", ĠR . drawable . school , Ġ" Rs . Ġ 7 0 0 ", Ġ" Ne tr aha at ĠMem ories "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 3 , Ġ" Dr . ĠR avi ĠB h ush an ", Ġ" 4 . 5 ", ĠR . drawable . me ena , Ġ" Rs . Ġ 5 0 0 ", Ġ" Pa ak iza "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 4 , Ġ" T ul ika ", Ġ" 3 . 9 ", ĠR . drawable . pi k ach u , Ġ" Rs . Ġ 4 0 0 ", Ġ" P ik ach u ĠPick les "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 5 , Ġ" Ad ity a ", Ġ" 4 . 9 ", ĠR . drawable . breaking , Ġ" Rs . Ġ 6 0 0 ", Ġ" Break ing ĠBad "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 6 , Ġ" Ad ity a ", Ġ" 4 . 3 ", ĠR . drawable . bond , Ġ" Rs . Ġ 5 0 0 ", Ġ" From ĠR uss ia Ġwith Ġlove "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 7 , Ġ" Dr . ĠR avi ĠB h ush an "," 4 . 2 ", R . drawable . farm ing ," Rs . Ġ 5 0 0 "," Farm ers Ġof ĠWest ĠB ih ar "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 8 ," Dr . ĠR avi ĠB h ush an "," 4 . 0 ", R . drawable . v illage ," Rs . Ġ 5 0 0 "," In Ġthe Ġl aps Ġof ĠN ature "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 9 , Ġ" T ul ika ", Ġ" 4 . 0 ", ĠR . drawable . m ango , Ġ" Rs . Ġ 4 0 0 ", Ġ" M ango ĠLove "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 1 0 , Ġ" T ul ika ", Ġ" 4 . 9 ", ĠR . drawable . pe ac ock lad y , Ġ" Rs . Ġ 4 0 0 ", Ġ" Pe ac ock ĠL ady "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 1 1 , Ġ" Ad ity a ", Ġ" 5 . 0 ", ĠR . drawable . h arr ypot ter , Ġ" Rs . Ġ 6 0 0 ", Ġ" H arry ĠPot ter "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 1 2 , Ġ" Ad ity a ", Ġ" 4 . 9 ", ĠR . drawable . sc ar face , Ġ" Rs . Ġ 7 0 0 ", Ġ" Sc ar face "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 1 3 , Ġ" T ul ika ", Ġ" 4 . 5 ", ĠR . drawable . sco oter , Ġ" Rs . Ġ 5 0 0 ", Ġ" Sh ooter ĠS co oter "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 1 4 , Ġ" T ul ika ", Ġ" 3 . 9 ", ĠR . drawable . g irl , Ġ" Rs . Ġ 3 0 0 ", Ġ" Mad ĠAng les "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 1 5 , Ġ" Ad ity a ", Ġ" 4 . 5 ", ĠR . drawable . an ak in , Ġ" Rs . Ġ 3 0 0 ", Ġ" An ak in "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 1 6 , Ġ" Ad ity a ", Ġ" 5 . 0 ", ĠR . drawable . john wick , Ġ" Rs . Ġ 6 0 0 ", Ġ" John ĠW ick "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 1 7 , Ġ" Ad ity a ", Ġ" 4 . 9 ", ĠR . drawable . star w ars , Ġ" Rs . Ġ 7 0 0 ", Ġ" Star ĠW ars "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 1 8 , Ġ" Ad ity a ", Ġ" 4 . 7 ", ĠR . drawable . yo j im bo , Ġ" Rs . Ġ 6 0 0 ", Ġ" Yo j im bo "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 1 9 , Ġ" Ad ity a ", Ġ" 4 . 9 ", ĠR . drawable . lo tr , Ġ" Rs . Ġ 7 0 0 ", Ġ" L ord Ġof Ġthe ĠR ings "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 2 0 , Ġ" Ad ity a ", Ġ" 3 . 9 ", ĠR . drawable . p ulp , Ġ" Rs . Ġ 3 0 0 ", Ġ" 5 $ Ġmil k shake "), ĊĠĠĠĠĠĠĠ ĠDraw ing ( 2 1 , Ġ" Ad ity a ", Ġ" 4 . 2 ", ĠR . drawable . h ans olo , Ġ" Rs . Ġ 3 0 0 ", Ġ" Han ĠSo lo ") ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( ĊĠĠĠĠĠĠĠ Ġinflater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĊĠĠĠĠĠĠĠ ĠsavedInstanceState : ĠBundle ? ĊĠĠĠ Ġ): ĠView ? Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġview Ġ= Ġinflater . inflate ( R . layout . fragment _ home , Ġcontainer , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġre cycler home Ġ= Ġview . findViewById ( R . id . recycler home ) ĊĠĠĠĠĠĠĠ Ġlayout Manager Ġ= ĠLinearLayoutManager ( activity ) ĊĠĠĠĠĠĠĠ Ġre cycler Adapter Ġ= ĠDashboard Recycler Adapter ( activity Ġas ĠContext , Ġart InfoList ) ĊĠĠĠĠĠĠĠ Ġre cycler home . adapter Ġ= Ġre cycler Adapter ĊĠĠĠĠĠĠĠ Ġre cycler home . layout Manager Ġ= Ġlayout Manager ĊĊĠĠĠĠĠĠĠ Ġre cycler home . addItem Decoration ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠDiv ider Item Decoration ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġre cycler home . context , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ( layout Manager Ġas ĠLinearLayoutManager ). orientation ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġreturn Ġview ĊĠĠĠ Ġ} ĊĊ Ċ } Ċ