package Ġcom . dev min a . d roid _ ant . get data . about Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . lifecycle . ViewModel Providers Ċ import Ġcom . dev min a . d roid _ ant . get data . databinding . Fragment About Binding Ċ Ċ class ĠAbout Fragment : ĠFragment () Ġ{ ĊĊĠĠĠ Ġprivate Ġval ĠviewModel : ĠAbout ViewModel Ġby Ġlazy Ġ{ ĊĠĠĠĠĠĠĠ ĠViewModel Providers . of ( this ). get ( About ViewModel :: class . java ) ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( in flater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĠsavedInstanceState : ĠBundle ?): ĠView ? Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbinding Ġ= ĠFragment About Binding . inflate ( in flater ) ĊĠĠĠĠĠĠĠ Ġactivity ?. title Ġ= Ġ" About " ĊĊĠĠĠĠĠĠĠ Ġval Ġapplication = Ġrequire NotNull ( activity ). application ĊĊĠĠĠĠĠĠĠ Ġ// get Ġargument Ġfrom ĠVideo Fragment ĊĠĠĠĠĠĠĠ Ġval Ġdesc = ĠAbout Fragment Args . from Bundle ( arguments !! ). desc ĊĊĠĠĠĠĠĠĠ Ġ// call ĠVideo Fragment Factory ĊĠĠĠĠĠĠĠ Ġval Ġview model Factory = ĠAbout Fragment Factory ( desc , application ) ĊĊĠĠĠĠĠĠĠ Ġ// bind ĠVideo ViewModel Ġto ĠViewModel Factory ĊĠĠĠĠĠĠĠ Ġbinding . view model = ViewModel Providers . of ( this , view model Factory ). get ( About ViewModel :: class . java ) ĊĊĊĊ ĊĠĠĠĠĠĠĠ Ġreturn Ġbinding . root ĊĊĠĠĠ Ġ} Ċ }