package Ġcom . github . android p ir ate . caps ul ere views . ui Ċ Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . navigation . Navigation Ċ import Ġandroidx . navigation . ui . setup With Nav Controller Ċ import Ġcom . github . android p ir ate . caps ul ere views . R Ċ import Ġdagger . h ilt . android . Android EntryPoint Ċ import Ġkotlinx . android . synt hetic . main . activity _ main .* Ċ Ċ @ Android EntryPoint Ċ class ĠMainActivity Ġ: ĠAppCompatActivity () Ġ{ ĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ main ) ĊĠĠĠĠĠĠĠ Ġsetup Bottom NavigationBar () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġsetup Bottom NavigationBar () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġnav Controller Ġ= ĠNavigation . find Nav Controller ( this , ĠR . id . nav Host Fragment ) ĊĠĠĠĠĠĠĠ Ġbottom NavigationBar . setup With Nav Controller ( nav Controller ) ĊĠĠĠ Ġ} Ċ }