/* Ċ Ġ* ĠDesign ed Ġand Ġdeveloped Ġby Ġ 2 0 2 0 Ġsky do ves Ġ( Ja ew o ong ĠE um ) Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ Ċ package Ġcom . sky do ves . sand wich demo . operator Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġandroidx . databinding . Data Binding Util Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġcom . sky do ves . sand wich demo . R Ċ import Ġcom . sky do ves . sand wich demo . adapter . Post er Adapter Ċ import Ġcom . sky do ves . sand wich demo . databinding . Activity Main Cor outines Operator Binding Ċ Ċ class ĠMain Cor outines Operator Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠ Ġprivate Ġval ĠviewModel Factory : ĠMain Cor outines Operator ViewModel Factory Ġ= ĠMain Cor outines Operator ViewModel Factory () ĊĠ Ġprivate Ġval ĠviewModel : ĠMain Cor outines Operator ViewModel Ġby Ġlazy Ġ{ ĊĠĠĠ ĠViewModel Provider ( this , ĠviewModel Factory ). get ( Main Cor outines Operator ViewModel :: class . java ) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠ ĠData Binding Util . set ContentView < Activity Main Cor outines Operator Binding >( ĊĠĠĠĠĠ Ġthis , ĠR . layout . activity _ main _ coroutines _ operator ĊĠĠĠ Ġ). apply Ġ{ ĊĠĠĠĠĠ Ġlifecycle Owner Ġ= Ġthis @ Main Cor outines Operator Activity ĊĠĠĠĠĠ ĠviewModel Ġ= Ġthis @ Main Cor outines Operator Activity . viewModel ĊĠĠĠĠĠ Ġadapter Ġ= ĠPost er Adapter () ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ