package Ġcom . cup sof code . most valu able idea . ui . m vi 2 Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . View Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . fragment . app . view Models Ċ Ċ class ĠM VI 2 Fragment Ġ: ĠFragment () Ġ{ ĊĊĠ Ġprivate Ġval Ġm vi 2 ViewModel : ĠM VI 2 ViewModel Ġby Ġview Models () ĊĊĠ Ġoverride Ġfun Ġon View Created ( view : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠ Ġsuper . on View Created ( view , ĠsavedInstanceState ) ĊĠ Ġ} Ċ Ċ }