0

I have an AnimationDrawable that starts and I need to start a tween animation right after the first animation is ended. I've seen AnimationDrawable doesn't have an AnimationListener setter, so how can I know when it is finished?

I've seen some solutions that compute the animation length and use an Handler, but they are not so accurate. In fact there is a (short) lag between the two animations.

Thank you in advance.

4

1 回答 1

0

也许这对你有帮助,你可以在相关的 AnimationDrawable 对象上调用 isRunning() 方法,然后检查它是否完成。

于 2013-05-01T19:25:22.217 回答