package Ġr gu 5 android . jet pack čĊč Ċ import Ġandroid . os . Bundle č Ċ import Ġandroidx . databinding . Data Binding Util č Ċ import Ġandroidx . navigation . find Nav Controller č Ċ import Ġandroidx . navigation . ui . setup ActionBar With Nav Controller č Ċ import Ġdagger . android . support . D agger AppCompatActivity č Ċ import Ġr gu 5 android . jet pack . databinding . Activity Navigation Binding čĊč Ċ class ĠNavigation Activity Ġ: ĠD agger AppCompatActivity () Ġ{ čĊčĊ ĉ private Ġlateinit Ġvar Ġbinding : ĠActivity Navigation Binding čĊčĊ ĉ override Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ čĊĉ ĉ super . onCreate ( savedInstanceState ) čĊĉ ĉ binding Ġ= ĠData Binding Util . set ContentView ( this , ĠR . layout . activity _ navigation ) čĊĉ ĉ binding . set Lifecycle Owner ( this ) čĊčĊĉ ĉ set Support ActionBar ( binding . toolbar ) čĊĉ ĉ setup ActionBar With Nav Controller ( find Nav Controller ( R . id . navigation )) čĊ ĉ } čĊčĊ ĉ override Ġfun Ġon Support Navigate Up () Ġ= Ġfind Nav Controller ( R . id . navigation ). navigate Up () č Ċ } čĊ