animatedvectordrawable

AnimatedVectorDrawableCompat looping animation using callback

隐身守侯 提交于 2020-01-24 08:54:27
问题 I'm trying to implement an animation in my Android app using AnimatedVectorDrawableCompat, for compatibility for API >= 21. I want the animation to loop for the duration of the Activity. I'm able to play the animation, and it will also loop fine on API >= 25. But when I run it on devices or emulators with API 21 through 24 I only see the animation once. If I set a breakpoint inside the callback method, I see that it executes the callback too, but the animation does not repeat. I find that the