Dororo
Dororo

Reputation: 3440

Possible to synchronise AnimationDrawables in Android?

I need to synchronise two AnimationDrawables (using frame animations setup in xml). The developer article on AnimationDrawable speaks of no such thing, so I would like to know if it's even possible, and if not, how I could get the same effect using a different object perhaps? The two drawable objects are the same size and have the same number of frames, with the same duration between each frame.

Upvotes: 2

Views: 696

Answers (1)

Dororo
Dororo

Reputation: 3440

I ended up merging the animations together manually then played that one animation instead. It appears that it isn't possible since there is inevitable delay at some point (thread switching, etc).

For anyone else wishing to do this, I advise you take the slow way and redraw the animations you wish to combine and then play the one animation.

Upvotes: 1

Related Questions