I have a MotionLayout with a MotionScene, and I want to do an "if-check" (in Kotlin) that checks if the scene is currently at transition "start" or "end".
Does anyone know how to do this?
Here is my transition "start" and "end" in the MotionScene:
<Transition
motion:constraintSetEnd="@+id/end"
motion:constraintSetStart="@+id/start"
motion:duration="1000">
You can play with TransitionListener callbacks as your need
you can also use
motionLayout.getProgress()
inside
onTransitionChange
which called whenever a drawer's position changes.like so