package Ġcom . example . sh opt ok application . activity Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . databinding . library . base Adapters . BR Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġandroidx . recyclerview . widget . Grid LayoutManager Ċ import Ġandroidx . recyclerview . widget . Linear LayoutManager Ċ import Ġcom . example . sh opt ok application . R Ċ import Ġcom . example . sh opt ok application . adapter . Home Option Details Adapter Ċ import Ġcom . example . sh opt ok application . adapter . Home Screen Options Adapter Ċ import Ġcom . example . sh opt ok application . base . Base Activity Ċ import Ġcom . example . sh opt ok application . databinding . Activity Home Option Details Binding Ċ import Ġcom . example . sh opt ok application . view model . Home Option Details Screen ViewModel Ċ import Ġkotlinx . android . synt hetic . main . activity _ home _ option _ details .* Ċ import Ġkotlinx . android . synt hetic . main . activity _ home _ screen .* Ċ import Ġkotlinx . android . synt hetic . main . app _ toolbar .* Ċ Ċ class ĠHome Option Details Activity Ġ: ĊĠĠĠ ĠBase Activity < Activity Home Option Details Binding , ĠHome Option Details Screen ViewModel >() Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġget Toolbar Title (): ĠString ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġ"" ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Layout Id (): ĠInt Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠR . layout . activity _ home _ option _ details ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget ViewModel (): ĠHome Option Details Screen ViewModel Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠViewModel Provider ( this ). get ( Home Option Details Screen ViewModel :: class . java ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Binding Variable (): ĠInt Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠBR . home Option Details Model ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġinit () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġscreen Name Ġ= Ġintent . getString Extra (" screen _ name ") ĊĠĠĠĠĠĠĠ Ġtv Toolbar Title . text Ġ= Ġscreen Name ĊĊĠĠĠĠĠĠĠ Ġvar Ġoptions List Ġ= ĠArrayList < String >() ĊĠĠĠĠĠĠĠ Ġoptions List . add (" Orders ") ĊĠĠĠĠĠĠĠ Ġoptions List . add (" History ") ĊĠĠĠĠĠĠĠ Ġoptions List . add (" Shop ĠProfile ") ĊĠĠĠĠĠĠĠ Ġoptions List . add (" Option Ġ 1 ") ĊĠĠĠĠĠĠĠ Ġoptions List . add (" Option Ġ 2 ") ĊĠĠĠĠĠĠĠ Ġoptions List . add (" Logout ") ĊĠĠĠĠĠĠĠ Ġoptions List . add (" Logout ") ĊĠĠĠĠĠĠĠ Ġoptions List . add (" Logout ") ĊĠĠĠĠĠĠĠ Ġoptions List . add (" Logout ") ĊĠĠĠĠĠĠĠ Ġoptions List . add (" Logout ") ĊĠĠĠĠĠĠĠ Ġoptions List . add (" Logout ") ĊĠĠĠĠĠĠĠ Ġoptions List . add (" Logout ") ĊĠĠĠĠĠĠĠ Ġoptions List . add (" Logout ") ĊĊĠĠĠĠĠĠĠ Ġoption List RecyclerView . layout Manager Ġ= ĠLinearLayoutManager ( this ) ĊĊĠĠĠĠĠĠĠ Ġ// ĠAccess Ġthe ĠRecyclerView ĠAdapter Ġand Ġload Ġthe Ġdata Ġinto Ġit ĊĠĠĠĠĠĠĠ Ġoption List RecyclerView . adapter Ġ= ĠHome Option Details Adapter ( this , Ġoptions List , Ġscreen Name ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġinit LiveData Observable s () Ġ{ ĊĊĠĠĠ Ġ} Ċ } Ċ