package Ġcom . she v art . android transitions . screen str ans ition . screen contents . activity . by theme Ċ Ċ import Ġandroid . app . Activity Options Ċ import Ġandroid . content . Intent Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . support . v 7 . widget . Linear LayoutManager Ċ import Ġcom . she v art . android transitions . R Ċ import Ġcom . she v art . android transitions . base . Abs Activity Ċ import Ġcom . she v art . android transitions . common . Mock Simple Item Adapter Ċ import Ġcom . she v art . android transitions . common . Simple Item Ċ import Ġcom . she v art . android transitions . screen str ans ition . screen contents . activity . by theme . Content Transition By Theme Screen B Activity . Companion . SIMPLE _ ITEM Ċ import Ġcom . she v art . android transitions . util . next Simple Items List Ċ import Ġkotlinx . android . synt hetic . main . activity _ content _ transition _ by _ theme _ screen _ a .* Ċ Ċ @ Suppress (" UNUSED _ PARAMETER ") Ċ class ĠContent Transition By Theme Screen A Activity Ġ: ĠAbs Activity () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ content _ transition _ by _ theme _ screen _ a ) ĊĠĠĠĠĠĠĠ Ġinit Toolbar () ĊĊĠĠĠĠĠĠĠ Ġval Ġadapter Ġ= ĠMock Simple Item Adapter () ĊĠĠĠĠĠĠĠ Ġadapter . update Items ( next Simple Items List ()) ĊĠĠĠĠĠĠĠ Ġadapter . setOn ItemClickListener ( this :: on ItemSelected ) ĊĠĠĠĠĠĠĠ Ġrv Notifications . layout Manager Ġ= ĠLinearLayoutManager ( this ) ĊĠĠĠĠĠĠĠ Ġrv Notifications . adapter Ġ= Ġadapter ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġinit Toolbar () Ġ{ ĊĠĠĠĠĠĠĠ Ġenable Toolbar Back Button () ĊĠĠĠĠĠĠĠ ĠsetTitle ( R . string . activity _ content _ by _ theme ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġon ItemSelected ( item : ĠSimple Item ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġintent Ġ= ĠIntent ( this , ĠContent Transition By Theme Screen B Activity :: class . java ) ĊĠĠĠĠĠĠĠ Ġintent . putExtra ( SIMPLE _ ITEM , Ġitem ) ĊĠĠĠĠĠĠĠ ĠstartActivity ( intent , ĠActivity Options . make Scene Transition Animation ( this ). to Bundle ()) ĊĠĠĠ Ġ} Ċ } Ċ