Play bitmap animation list in reverse order?

Posted by Ixx on Stack Overflow See other posts from Stack Overflow or by Ixx
Published on 2012-11-03T16:57:50Z Indexed on 2012/11/03 17:00 UTC
Read the original article Hit count: 239

Filed under:
|

I have a bitmap animation defined in XML, to open a door.

I also need to animate closing the door, which contains the same frames but in reverse order. I don't want to create a second XML for this.

The only reverse parameter I found in the documentation is related with repeating, and this doesn't apply, since I want the opening animation to finish when the door is closed and not continue to closing animation.

I also found some threads about using a custom interpolator, but can I use / makes sense with a bitmap animation?

How can I play the XML animation in reverse order?

© Stack Overflow or respective owner

Related posts about android

Related posts about animation