Precise control over Androids VectorDrawable animations

前端 未结 3 656
Happy的楠姐
Happy的楠姐 2020-12-13 05:23

UPDATE: Solution found! Scroll down for my accepted answer!

I want to animate multiple elements of one image and link the animation to ViewPagers po

3条回答
  •  忘掉有多难
    2020-12-13 05:54

    As far as the documentation says for AnimatedVectorDrawables there is no way to track the state of animation or to jump into any state other than animationStart and animationEnd.

    You may have to use a custom solution to achieve this effect. This blog post explains a way using Android’s widget state tracking to achieve a similar effect.

提交回复
热议问题