package Ġcom . ext code . project . favorite Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġcom . ext code . project . favorite . databinding . Fragment Favorite Binding Ċ import Ġcom . ext code . project . favorite . di . favorite Module Ċ import Ġorg . k oin . core . context . load K oin Modules Ċ Ċ class ĠF avorite Fragment Ġ: ĠFragment () Ġ{ ĊĊĠĠĠ Ġprivate Ġvar Ġfragment Favorite Binding : ĠFragment Favorite Binding ? Ġ= Ġnull ĊĠĠĠ Ġprivate Ġval Ġbinding Ġget () Ġ= Ġfragment Favorite Binding ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( ĊĠĠĠĠĠĠĠ Ġinflater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĊĠĠĠĠĠĠĠ ĠsavedInstanceState : ĠBundle ? ĊĠĠĠ Ġ): ĠView ? Ġ{ ĊĠĠĠĠĠĠĠ Ġfragment Favorite Binding Ġ= ĠFragment Favorite Binding . inflate ( in flater , Ġcontainer , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġreturn Ġbinding ?. root ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon View Created ( view : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on View Created ( view , ĠsavedInstanceState ) ĊĊĠĠĠĠĠĠĠ Ġload K oin Modules ( favorite Module ) ĊĊĠĠĠĠĠĠĠ Ġval Ġsections Pager Adapter Ġ= ĠSe ctions Pager Adapter ( context Ġas ĠContext , Ġchild FragmentManager ) ĊĠĠĠĠĠĠĠ Ġbinding ?. view Pager ?. adapter Ġ= Ġsections Pager Adapter ĊĠĠĠĠĠĠĠ Ġbinding ?. tab ?. setup With ViewPager ( binding ?. view Pager ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Destroy View () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Destroy View () ĊĠĠĠĠĠĠĠ Ġfragment Favorite Binding Ġ= Ġnull ĊĠĠĠĠĠĠĠ Ġbinding ?. view Pager ?. adapter Ġ= Ġnull ĊĠĠĠ Ġ} Ċ Ċ }