package Ġcom . mark nj unge . food recipe app . ui Ċ Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . recyclerview . widget . Linear LayoutManager Ċ import Ġcom . mark nj unge . food recipe app . R Ċ import Ġcom . mark nj unge . food recipe app . model . Category Ċ import Ġcom . mark nj unge . food recipe app . model . Recipe Ċ import Ġkotlinx . android . synt hetic . main . activity _ main .* Ċ Ċ class ĠMainActivity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ main ) ĊĊĠĠĠĠĠĠĠ Ġrv Pop ular Images . layout Manager Ġ= ĠLinearLayoutManager ( this , ĠLinearLayoutManager . HORIZONTAL , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġval Ġrecipe Adapter Ġ= ĠPop ular Recipe Adapter ( this ) ĊĠĠĠĠĠĠĠ Ġrv Pop ular Images . adapter Ġ= Ġrecipe Adapter ĊĊĠĠĠĠĠĠĠ Ġval Ġrecipes Ġ= ĠlistOf ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠRecipe (" Sal ad ĠNo od le ", Ġ 1 5 , Ġ 4 , Ġ" sal ad _ no od le . webp ", Ġ 2 . 1 ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠRecipe (" B erry ĠP anc ake ", Ġ 1 2 , Ġ 6 , Ġ" berry _ p anc ake . webp ", Ġ 1 . 2 ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠRecipe (" F ancy ĠToast ", Ġ 1 5 , Ġ 6 , Ġ" fancy _ toast . webp ", Ġ 1 . 5 ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġrecipe Adapter . set Items ( recipes ) ĊĊĠĠĠĠĠĠĠ Ġrv Categories . layout Manager Ġ= ĠLinearLayoutManager ( this , ĠLinearLayoutManager . HORIZONTAL , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġval Ġcategories Adapter Ġ= ĠCategories Adapter () ĊĠĠĠĠĠĠĠ Ġrv Categories . adapter Ġ= Ġcategories Adapter ĊĊĠĠĠĠĠĠĠ Ġval Ġcategories Ġ= ĠlistOf ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠCategory (" Cake ", Ġ" cake . webp "), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠCategory (" P asta ", Ġ" past a . webp "), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠCategory (" Ch icken ", Ġ" ch icken . webp "), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠCategory (" V eg an ", Ġ" ve gan . webp ") ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġcategories Adapter . set Items ( categories ) ĊĠĠĠ Ġ} Ċ } Ċ