airbnb / lottie-android

Render After Effects animations natively on Android and iOS, Web, and React Native
http://airbnb.io/lottie/
Apache License 2.0
34.92k stars 5.4k forks source link

LottieAnimationView auto play unanticipatedly #2504

Closed Joe-Blake closed 2 months ago

Joe-Blake commented 3 months ago

I encountered such a problem:

  1. i init a LottieAnimationView in fragment A and playAnimation() has not been invoke yet.
  2. When I switched to another fragment and then returned, it automatically play once unanticipatedly. (and repeat the above, it wont auto play again)。I tried to set breakpoints inside playAnimation, but didn't find that the method was being called.

i want to know the reason, and how to avoid this issue

Joe-Blake commented 3 months ago

i have set "app:lottie_autoPlay="false" ", but i doesn't work