package Ġcom . ra hat . pro _ hero . coding test . ui . welcome Screen Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . View Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . fragment . app . view Models Ċ import Ġandroidx . navigation . fragment . find Nav Controller Ċ import Ġcom . ra hat . pro _ hero . coding test . R Ċ import Ġcom . ra hat . pro _ hero . coding test . databinding . Fragment Welcome Binding Ċ import Ġdagger . h ilt . android . Android EntryPoint Ċ Ċ @ Android EntryPoint Ċ class ĠWelcome Fragment Ġ: ĠFragment ( R . layout . fragment _ welcome ) Ġ{ ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġbinding : ĠFragment Welcome Binding ĊĠĠĠ Ġprivate Ġval ĠviewModel : ĠWelcome ViewModel Ġby Ġview Models () ĊĠĠĠ Ġoverride Ġfun Ġon View Created ( view : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on View Created ( view , ĠsavedInstanceState ) ĊĠĠĠĠĠĠĠ Ġbinding Ġ= ĠFragment Welcome Binding . bind ( view ) ĊĊĠĠĠĠĠĠĠ ĠviewModel . user High Score . observe ( view Lifecycle Owner ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . score TV . text Ġ= Ġ"${ it } ĠPoint " ĊĠĠĠĠĠĠĠ Ġ} ĊĊĊĠĠĠĠĠĠĠ Ġbinding . start Btn . setOnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġfind Nav Controller (). navigate ( R . id . action _ welcome Fragment _ to _ quiz Fragment ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĊĠĠĠ Ġ} Ċ } ĊĊ