Eldhose M Babu
Eldhose M Babu

Reputation: 14530

How to reset animation state?

When I set :

animationSet.setFillAfter(true);

The view holds the animated state there after. But before doing another animation, I need to reset the state to the old one. What I need is something like :

animationSet.resetFillAfter(true);

How can I achieve this? Is it possible?

Upvotes: 13

Views: 18333

Answers (1)

Alex Orlov
Alex Orlov

Reputation: 18107

You can call yourView.clearAnimation()

Upvotes: 48

Related Questions