简体   繁体   中英

Repeating animation in Android

I have defined six animations like a1 , a2 , a3 , a4 , a5 and a6 for six image views. These animations are performed in a sequence. For instance, a2 will start when a1 ends, a3 will start when a2 ends and so on. Starting from a1 , the animation ends with a6 . Now I want to repeat again from a1 to a6 . Where should I write this setRepeatMode ? How to achieve this in some other way? Please help.

You could set a AnimationListener on your a6 animation and have it restart everything?

In fact for your chain of animations, the usage of AnimationListener might be helpful.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM