package Ġcom . e inv op os . rate me v rm use um Ċ Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . drawer layout . widget . Drawer Layout Ċ import Ġandroidx . navigation . Nav Controller Ċ import Ġandroidx . navigation . Navigation Ċ import Ġandroidx . navigation . ui . Navigation UI Ċ import Ġcom . e inv op os . e _ inv op os . utils . Cor outines Ċ import Ġcom . e inv op os . rate me v rm use um . data . App Database Ċ import Ġcom . e inv op os . rate me v rm use um . data . models . Ex hibit Ċ import Ġcom . google . android . material . bottomnavigation . Bottom Navigation View Ċ import Ġorg . kode in . di . K ode in Ċ import Ġorg . kode in . di . K ode in Aware Ċ import Ġorg . kode in . di . android . kode in Ċ import Ġorg . kode in . di . android . x . kode in Ċ import Ġorg . kode in . di . generic . instance Ċ Ċ /** Ċ Ġ* Ġmain Ġand Ġonly Ġactivity Ġof Ġthe Ġproject , Ġi Ġam Ġare Ġfollowing Ġthe Ġsingle Ġactivity Ġpattern Ġusing Ġthe Ġnavigation Ġgraph Ġand Ġthe Ġnavigation Ġlibrary Ċ Ġ*/ Ċ class ĠMainActivity Ġ: ĠAppCompatActivity (), K ode in Aware Ġ{ ĊĊĠĠĠ Ġoverride Ġval Ġk ode in Ġby Ġk ode in () ĊĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġnav Controller : ĠNav Controller ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġbottom Navigation View : ĠBottom Navigation View ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ main ) ĊĠĠĠĠĠĠĠ Ġnav Controller Ġ= ĠNavigation . find Nav Controller ( this , ĠR . id . nav _ main _ host _ fragment ) ĊĠĠĠĠĠĠĠ Ġbottom Navigation View Ġ= ĠfindViewById ( R . id . bottom Navigation View ) ĊĠĠĠĠĠĠĠ ĠNavigation UI . setup With Nav Controller ( bottom Navigation View , Ġnav Controller ) ĊĠĠĠĠĠĠĠ ĠNavigation UI . setup ActionBar With Nav Controller ( this , Ġnav Controller ) ĊĠĠĠ Ġ} ĊĊĊĊĊĠĠĠ Ġoverride Ġfun Ġon Support Navigate Up (): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠNavigation UI . navigate Up ( nav Controller , Ġnull Ġas ĠDraw er Layout ?) ĊĠĠĠ Ġ} Ċ } Ċ