package Ġfr . is en . ar tr u . android toolbox Ċ Ċ import Ġandroid . arch . persistence . room . Room Ċ import Ġandroid . support . v 7 . app . AppCompatActivity Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . support . v 7 . widget . Default Item Animator Ċ import Ġandroid . support . v 7 . widget . Linear LayoutManager Ċ import Ġfr . is en . ar tr u . android toolbox . model . database . App Database Ċ import Ġkotlinx . android . synt hetic . main . activity _ web _ services .* Ċ Ċ class ĠUser Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ user ) ĊĊĠĠĠĠĠĠĠ Ġval Ġdb Ġ= ĠRoom . database Builder ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġapplication Context , ĊĠĠĠĠĠĠĠĠĠĠĠ ĠApp Database :: class . java , Ġ" database - name " ĊĠĠĠĠĠĠĠ Ġ). allow MainThread Queries (). fallback To Dest ruct ive Migration (). build () ĊĊĠĠĠĠĠĠĠ Ġval Ġres Ġ= Ġdb . user Dao (). getAll () ĊĠĠĠĠĠĠĠ Ġval Ġm Adapter Ġ= ĠUser Adapter ( res ) ĊĠĠĠĠĠĠĠ Ġval Ġm LayoutManager Ġ= ĠLinearLayoutManager ( application Context ) ĊĠĠĠĠĠĠĠ Ġre cycler User . layout Manager Ġ= Ġm LayoutManager ĊĠĠĠĠĠĠĠ Ġre cycler User . item Animator Ġ= ĠDefault Item Animator () ĊĠĠĠĠĠĠĠ Ġre cycler User . adapter Ġ= Ġm Adapter ĊĠĠĠ Ġ} Ċ } Ċ