Android Animation one after other

I wrote about a new approach to animate multiple objects in Android one after another. For example, 6 ImageButtons and 6 TextViews. I decided to duplicate this solution in my blog.

My approach to reach this goal can be useful when you need to animate a lot of views one after another. You can use setStartOffset method to set a delay before animation begins. So, if you know, how much time will take for your first animation to end, you can set this as a delay for your second animation. This is an example where I animated six ImageButtons and six TextViews below them one after another:

In my res/anim folder I have a file, called fade.xml with these contents:

Here is this post and two other approaches – using AnimationSet and using listeners.

Leave a Reply

Your email address will not be published. Required fields are marked *