package Ġcom . example . kotlin with jet pack . ga adi . ui Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . navigation . find Nav Controller Ċ import Ġandroidx . navigation . fragment . nav Args Ċ import Ġandroidx . recyclerview . widget . Linear LayoutManager Ċ import Ġcom . example . kotlin with jet pack . R Ċ import Ġcom . example . kotlin with jet pack . databinding . Fragment Ga adi Detail Binding Ċ import Ġcom . example . kotlin with jet pack . di . Injectable Ċ import Ġcom . example . kotlin with jet pack . ga adi . data . Ga adi Ċ import Ġcom . example . kotlin with jet pack . ui . Vertical Item Decoration Ċ Ċ class ĠG aad i Detail Fragment Ġ: ĠFragment (), ĠInjectable Ġ{ ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġlinear LayoutManager : ĠLinearLayoutManager ĊĠĠĠ Ġlateinit Ġvar Ġbinding : ĠFragment Ga adi Detail Binding ĊĠĠĠ Ġprivate Ġval Ġargs : ĠG aad i Detail Fragment Args Ġby Ġnav Args () ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġga adi : ĠG aad i ĊĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( in flater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĠsavedInstanceState : ĠBundle ?): ĠView ? Ġ{ ĊĊĠĠĠĠĠĠĠ Ġbinding Ġ= ĠFragment Ga adi Detail Binding . inflate ( in flater , Ġcontainer , Ġfalse ) ĊĊĠĠĠĠĠĠĠ Ġcontext Ġ?: Ġreturn Ġbinding . root ĊĊĠĠĠĠĠĠĠ Ġlinear LayoutManager Ġ= ĠLinearLayoutManager ( activity ) ĊĠĠĠĠĠĠĠ Ġga adi Ġ= Ġargs . ga adi Details ĊĊĠĠĠĠĠĠĠ Ġbinding . ga adi Ġ= Ġga adi ĊĊĠĠĠĠĠĠĠ Ġval Ġadapter Ġ= ĠG aad i Details Image Adapter () ĊĠĠĠĠĠĠĠ Ġbinding . ga adi Detail RecyclerView . addItem Decoration ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠVertical Item Decoration ( resources . get Dimension ( R . dim en . margin _ normal ). toInt (), Ġtrue )) ĊĠĠĠĠĠĠĠ Ġbinding . ga adi Detail RecyclerView . adapter Ġ= Ġadapter ĊĊĠĠĠĠĠĠĠ Ġbinding . floating ActionButton . setOnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġdirection Ġ= ĠG aad i Detail Fragment Directions . action Ga adi Detail Fragment To Contact Fragment () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġit . find Nav Controller (). navigate ( direction ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġadapter . submit List ( ga adi . images ) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġbinding . root ĊĠĠĠ Ġ} ĊĊ Ċ }