How to run several translate animations sequentially?

前端 未结 2 852
清酒与你
清酒与你 2020-12-08 03:30

I want to run the three translate animations shown below sequentially. i.e. after one translate animation ends, the second translate animation starts. However, they run conc

2条回答
  •  伪装坚强ぢ
    2020-12-08 03:40

    Kevin's solution may work, though I have found the timing to be somewhat inaccurate.

    Another option is to use a pair of AnimationListener objects, one attached to each of the first two Animations. The listener for the first animation, in onAnimationEnd(), would start the second animation. The listener for the second animation, in onAnimationEnd(), would start the third animation.

提交回复
热议问题