package Ġcom . po em gen . dee pp o et Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . recyclerview . widget . Linear LayoutManager Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġcom . po em gen . dee pp o et . databinding . Fragment Head Picker List Binding Ċ import Ġcom . po em gen . dee pp o et . util . Head Collection Ċ Ċ /** Ċ Ġ* ĠA Ġfragment Ġrepresenting Ġa Ġlist Ġof ĠItems . Ċ Ġ*/ Ċ class ĠHead Picker List Fragment Ġ: ĠFragment () Ġ{ ĊĊĠĠĠ Ġprivate Ġvar Ġbinding : ĠFragment Head Picker List Binding ? Ġ= Ġnull ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( ĊĠĠĠĠĠĠĠ Ġinflater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĊĠĠĠĠĠĠĠ ĠsavedInstanceState : ĠBundle ? ĊĠĠĠ Ġ): ĠView ? Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġfragment Binding Ġ= ĠFragment Head Picker List Binding . inflate ( in flater , Ġcontainer , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġbinding Ġ= Ġfragment Binding ĊĠĠĠĠĠĠĠ Ġreturn Ġfragment Binding . root ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon View Created ( view : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on View Created ( view , ĠsavedInstanceState ) ĊĊĠĠĠĠĠĠĠ Ġbinding ?. apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġlifecycle Owner Ġ= Ġview Lifecycle Owner ĊĠĠĠĠĠĠĠĠĠĠĠ Ġhead Picker List Fragment Ġ= Ġthis @ Head Picker List Fragment ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġval Ġrv Head Picker List Ġ= Ġbinding ?. rv Head Picker List ĊĠĠĠĠĠĠĠ Ġval Ġadapter Ġ= ĠHead Picker Item Adapter ( Head Collection . heads ) ĊĠĠĠĠĠĠĠ Ġrv Head Picker List ?. adapter Ġ= Ġadapter ĊĠĠĠĠĠĠĠ Ġrv Head Picker List ?. layout Manager Ġ= ĠLinearLayoutManager ( this . context ) ĊĠĠĠ Ġ} Ċ Ċ }