package Ġcom . by ted ance . scene demo Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroid . widget . LinearLayout Ċ import Ġandroid . widget . ScrollView Ċ import Ġandroid . widget . Toast Ċ import Ġcom . by ted ance . scene . Scene Ċ import Ġcom . by ted ance . scene demo . architecture _ patterns . by _ constructor . By Constructor Sample Ċ import Ġcom . by ted ance . scene demo . architecture _ patterns . mv vm . ViewModel Scene Samples Ċ import Ġcom . by ted ance . scene demo . architecture _ patterns . scope . Scope Sample Ċ import Ġcom . by ted ance . scene demo . utility . add Button Ċ import Ġcom . by ted ance . scene demo . utility . addClass Path Title Ċ import Ġcom . by ted ance . scene demo . utility . add Space Ċ import Ġcom . by ted ance . scene demo . utility . add Title ĊĊ Ċ class ĠPattern s Samples Ġ: ĠScene () Ġ{ ĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( in flater : ĠLayoutInflater , Ġcontainer : ĠViewGroup , ĠsavedInstanceState : ĠBundle ?): ĠView Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġscroll View Ġ= ĠScroll View ( activity ) ĊĊĠĠĠĠĠĠĠ Ġval Ġlayout Ġ= ĠLinearLayout ( activity ) ĊĠĠĠĠĠĠĠ Ġlayout . orientation Ġ= ĠLinearLayout . VERTICAL ĊĊĠĠĠĠĠĠĠ Ġscroll View . addView ( layout ) ĊĊĠĠĠĠĠĠĠ Ġadd Class Path Title ( layout ) ĊĠĠĠĠĠĠĠ Ġadd Space ( layout , Ġ 1 2 ) ĊĠĠĠĠĠĠĠ Ġadd Title ( layout , ĠgetString ( R . string . main _ title _ basic )) ĊĊĠĠĠĠĠĠĠ Ġadd Button ( layout , ĠgetString ( R . string . patterns _ scope ), ĠView . OnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrequire Navigation Scene (). push ( Scope Sample :: class . java ) ĊĠĠĠĠĠĠĠ Ġ}) ĊĊĠĠĠĠĠĠĠ Ġadd Button ( layout , ĠgetString ( R . string . patterns _ constructor ), ĠView . OnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrequire Navigation Scene (). push ( By Constructor Sample :: class . java ) ĊĠĠĠĠĠĠĠ Ġ}) ĊĊĠĠĠĠĠĠĠ Ġadd Button ( layout , ĠgetString ( R . string . patterns _ mv vm ), ĠView . OnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrequire Navigation Scene (). push ( ViewModel Scene Samples :: class . java ) ĊĠĠĠĠĠĠĠ Ġ}) ĊĊĠĠĠĠĠĠĠ Ġadd Button ( layout , ĠgetString ( R . string . patterns _ m vi ), ĠView . OnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠToast . makeText ( require ApplicationContext (), Ġ" TODO ", ĠToast . LENGTH _ SHORT ). show () ĊĠĠĠĠĠĠĠ Ġ}) ĊĊĠĠĠĠĠĠĠ Ġadd Button ( layout , ĠgetString ( R . string . patterns _ viper ), ĠView . OnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠToast . makeText ( require ApplicationContext (), Ġ" TODO ", ĠToast . LENGTH _ SHORT ). show () ĊĠĠĠĠĠĠĠ Ġ}) ĊĊĠĠĠĠĠĠĠ Ġadd Space ( layout , Ġ 1 0 0 ) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġscroll View ĊĠĠĠ Ġ} Ċ }