Let me explain the problem with an example. I wish to animate two (or more) "cubes" in motion layout.
Cube:
<View
android:id="@+id/cube"
android:layout_width="100dp"
android:layout_height="100dp"
android:background="#SOMECOLOR"
...
/>
I have two transitions on my scene. One transition moves the first cube, and the second transition moves the second cube.
When I programmatically start the first animation:
val motionLayout = findViewById<MotionLayout>(...)
motionLayout.setTransition(R.id.first_transition)
motionLayout.transitionToEnd()
the second cube "jumps" to its original position.
I would like MotionLayout to remember the state of the second animation. Is it possible?
I will provide any information to help you inderstand my problem. Thanks in advance.