package Ġcom . gst orm dev . dic er ol ler . ui . home Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . text . method . Scrolling Movement Method Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . databinding . Data Binding Util Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġcom . gst orm dev . dic er ol ler . R Ċ import Ġcom . gst orm dev . dic er ol ler . databinding . Fragment Home Binding Ċ import Ġcom . gst orm dev . dic er ol ler . util . hide Keyboard Ċ import Ġcom . gst orm dev . dic er ol ler . view model . ViewModel Factory Ċ Ċ class ĠHome Fragment Ġ: ĠFragment () Ġ{ ĊĊĠĠĠ Ġprivate Ġval ĠviewModel Factory Ġby Ġlazy Ġ{ ĠViewModel Factory ( this . require Context (). application Context ) Ġ} ĊĠĠĠ Ġprivate Ġval Ġhome ViewModel Ġby Ġlazy Ġ{ ĠViewModel Provider ( this , ĠviewModel Factory ). get ( Home ViewModel :: class . java ) Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġinflater : ĠLayoutInflater , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcontainer : ĠViewGroup ?, ĊĠĠĠĠĠĠĠĠĠĠĠ ĠsavedInstanceState : ĠBundle ? ĊĠĠĠ Ġ): ĠView ? Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbinding : ĠFragment Home Binding Ġ= ĠData Binding Util . inflate ( in flater , ĠR . layout . fragment _ home , Ġcontainer , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġbinding . view model Ġ= Ġhome ViewModel ĊĠĠĠĠĠĠĠ Ġbinding . lifecycle Owner Ġ= Ġthis ĊĠĠĠĠĠĠĠ Ġbinding . tv Roll List . movement Method Ġ= ĠScroll ing Movement Method () ĊĠĠĠĠĠĠĠ Ġbinding . btn Roll . setOnClickListener Ġ{ Ġv Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġv . hide Keyboard () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġhome ViewModel . roll Dice () ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġreturn Ġbinding . root ĊĠĠĠ Ġ} Ċ } Ċ