Search code examples
androidandroid-fragmentsandroid-constraintlayoutandroidxandroid-motionlayout

Android Motion Layout - Observe End of transition


When using motion layout, I built a simple motion scene which changes a cricle from width/height of 100dp to 1000dp with a duration of 2000ms. Now I want to know programmatically when the animation is finsihed (Observer/Listener?)

I didn't found any built-in features or blog posts which are solving this problem.

Any ideas?


Solution

  • enter image description here

    here some tricky way using transition listener

    or use Link

    and modify on it as you need