package Ġnet . b jo ern pe ters en . q bert . view . config . fragment Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . fragment . app . view Models Ċ import Ġandroidx . recyclerview . widget . Linear LayoutManager Ċ import Ġnet . b jo ern pe ters en . q bert . databinding . Fragment Config Entry Binding Ċ import Ġnet . b jo ern pe ters en . q bert . view . config . adapter . Config Entry ListAdapter Ċ import Ġnet . b jo ern pe ters en . q bert . view . config . view model . Config Entry ViewModel Ċ Ċ class ĠConfig Entry Fragment Ġ: ĠFragment () Ġ{ ĊĠĠĠ Ġprivate Ġval ĠviewModel : ĠConfig Entry ViewModel Ġby Ġview Models () ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġbinding : ĠFragment Config Entry Binding ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( ĊĠĠĠĠĠĠĠ Ġinflater : ĠLayoutInflater , ĊĠĠĠĠĠĠĠ Ġcontainer : ĠViewGroup ?, ĊĠĠĠĠĠĠĠ ĠsavedInstanceState : ĠBundle ? ĊĠĠĠ Ġ): ĠView ? Ġ{ ĊĠĠĠĠĠĠĠ Ġbinding Ġ= ĠFragment Config Entry Binding . inflate ( in flater , Ġcontainer , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġbinding . list . layout Manager Ġ= ĠLinearLayoutManager ( require Context ()) ĊĠĠĠĠĠĠĠ Ġreturn Ġbinding . root ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon View Created ( view : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġadapter Ġ= ĠConfig Entry ListAdapter () ĊĠĠĠĠĠĠĠ Ġbinding . list . adapter Ġ= Ġadapter ĊĠĠĠĠĠĠĠ ĠviewModel . entries . observe ( this ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġadapter . entries Ġ= Ġit ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ