package Ġus . mike and wan . photos . ui . controls . search nav menu Ċ Ċ 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 . Divider Item Decoration Ċ import Ġandroidx . recyclerview . widget . Linear LayoutManager Ċ import Ġdagger . h ilt . android . Android EntryPoint Ċ import Ġus . mike and wan . photos . databinding . Fragment Search Nav Menu Binding ĊĊ Ċ @ Android EntryPoint Ċ class ĠSearch Nav Menu Fragment Ġ: ĠFragment () Ġ{ ĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġnew Instance () Ġ= ĠSearch Nav Menu Fragment () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġbinding : ĠFragment Search Nav Menu Binding ĊĠĠĠ Ġprivate Ġval ĠviewModel Ġby Ġview Models < Search Nav Menu ViewModel >() ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( ĊĠĠĠĠĠĠĠ Ġinflater : ĠLayoutInflater , ĊĠĠĠĠĠĠĠ Ġcontainer : ĠViewGroup ?, ĊĠĠĠĠĠĠĠ ĠsavedInstanceState : ĠBundle ? ĊĠĠĠ Ġ): ĠView Ġ{ ĊĠĠĠĠĠĠĠ Ġbinding Ġ= ĠFragment Search Nav Menu Binding . inflate ( in flater ) ĊĠĠĠĠĠĠĠ Ġbinding . lifecycle Owner Ġ= Ġview Lifecycle Owner ĊĠĠĠĠĠĠĠ Ġbinding . viewModel Ġ= ĠviewModel ĊĊĠĠĠĠĠĠĠ Ġval Ġdivider Item Decoration Ġ= ĠDiv ider Item Decoration ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . search Term RecyclerView . context , ĊĠĠĠĠĠĠĠĠĠĠĠ ĠLinearLayoutManager . VERTICAL ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġbinding . search Term RecyclerView . addItem Decoration ( divider Item Decoration ) ĊĊĠĠĠĠĠĠĠ Ġbinding . search Term RecyclerView . adapter Ġ= ĠSearch Term List Recycler Adapter ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠSearch Term List Recycler Adapter . ClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠviewModel . on Term Selected ( it ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ}) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġbinding . root ĊĠĠĠ Ġ} Ċ }