package Ġru . r han za . expand able layout Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġkotlinx . android . synt hetic . main . activity _ transition _ parent .* Ċ import Ġru . r han za . constraint expand able layout . Expand able Layout Ċ Ċ class ĠTransition Parent Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ transition _ parent ) ĊĊĠĠĠĠĠĠĠ Ġ// Use Ġit Ġfor Ġcorrect Ġgroup Ġanimation Ġrelative Ġto Ġparent ĊĠĠĠĠĠĠĠ Ġ( first Ġas ĠExpand able Layout ). animation Scene Root Id Ġ= Ġcontainer . id ĊĠĠĠĠĠĠĠ Ġ( second Ġas ĠExpand able Layout ). animation Scene Root Id Ġ= Ġcontainer . id ĊĠĠĠĠĠĠĠ Ġ( third Ġas ĠExpand able Layout ). animation Scene Root Id Ġ= Ġcontainer . id ĊĠĠĠ Ġ} Ċ } Ċ