Alex Rivera | Logout

How to stop an animation (cancel() does not work)

Asked 2010-11-06T09:37:25.917
269

I need to stop a running translate animation. The .cancel() method of Animation has no effect; the animation goes until the end anyway.

How do you cancel a running animation?

Edit
Report

1 Answer

558

Call clearAnimation() on whichever View you called startAnimation().

answered 2010-11-06T09:47:08.657

Your Answer