package Ġcom . sun il son . quiz creator . presentation . quiz Activity . fragments . single Quiz Fragment Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . recyclerview . widget . Linear LayoutManager Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġcom . sun il son . quiz creator . databinding . Fragment Single Quiz Binding Ċ import Ġcom . sun il son . quiz creator . presentation . main Activity . fragments . Base Fragment Ċ import Ġcom . sun il son . quiz creator . presentation . quiz Activity . Quiz Activity Ċ import Ġcom . sun il son . quiz creator . presentation . quiz Activity . Quiz ViewModel Ċ import Ġkotlinx . android . synt hetic . main . fragment _ single _ quiz . view .* Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠSingle Quiz Fragment Ġ: ĠBase Fragment () Ġ{ ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġsingle Quiz Recycler Adapter : ĠSingle Quiz Recycler Adapter ĊĊĠĠĠ Ġval ĠviewModel : ĠQu iz ViewModel Ġby Ġlazy Ġ{ Ġ( activity !! Ġas ĠQu iz Activity ). quiz ViewModel Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( in flater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĠsavedInstanceState : ĠBundle ?): ĠView ? Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbinding Ġ= ĠFragment Single Quiz Binding . inflate ( in flater , Ġcontainer , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġbinding . viewModel Ġ= ĠviewModel ĊĠĠĠĠĠĠĠ Ġval Ġview Ġ= Ġbinding . root ĊĊĠĠĠĠĠĠĠ Ġview . single _ quiz _ recyclerview . adapter Ġ= Ġsingle Quiz Recycler Adapter ĊĠĠĠĠĠĠĠ Ġview . single _ quiz _ recyclerview . layout Manager Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠLinearLayoutManager ( context ) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġview ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġnew Instance (): ĠSingle Quiz Fragment Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠSingle Quiz Fragment () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }