Informatics
Informatics

Reputation: 217

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.

Upvotes: 0

Views: 857

Answers (1)

Sebastian Roth
Sebastian Roth

Reputation: 11537

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.

Upvotes: 1

Related Questions