I have a motion layout with this layoutDescription: app:layoutDescription=\"@xml/scene\"
app:layoutDescription=\"@xml/scene\"
scene.xml
You can also do this in your xml with
motion:autoTransition="animateToEnd"
and
motion:autoTransition="animateToStart"