package Ġcom . ch un . anime . ui . base . activity Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġandroidx . view binding . View Binding Ċ import Ġcom . ch un . anime . ui . base . View Binding Provider Ċ Ċ abstract Ġclass ĠBase Activity < VB Ġ: ĠView Binding > Ġ: ĠAppCompatActivity (), ĠView Binding Provider < VB > Ġ{ ĊĠĠĠ Ġprivate Ġvar Ġ_ binding : ĠVB ? Ġ= Ġnull ĊĠĠĠ Ġprotected Ġval Ġbinding Ġget () Ġ= Ġ_ binding !! ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ Ġ_ binding Ġ= Ġprovide View Binding ( layout Inflater , Ġnull ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( binding . root ) ĊĠĠĠĠĠĠĠ Ġsetup Views ( savedInstanceState ) ĊĠĠĠĠĠĠĠ Ġhandle Event ( savedInstanceState ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġabstract Ġfun Ġsetup Views ( savedInstanceState : ĠBundle ?) ĊĊĠĠĠ Ġabstract Ġfun Ġhandle Event ( savedInstanceState : ĠBundle ?) ĊĊĠĠĠ Ġoverride Ġfun Ġon Destroy () Ġ{ ĊĠĠĠĠĠĠĠ Ġ_ binding Ġ= Ġnull ĊĠĠĠĠĠĠĠ Ġsuper . on Destroy () ĊĠĠĠ Ġ} Ċ }