I have an ImageView on which I have applied a rotate animation. Since I want the rotation to go on continuously, I gave the repeatCount as infinite in my rotate.xml:
You can also call anim.cancel(); but you should also call anim.reset(); immediately after it.
Then when you want to start it again, just call startAnimation on the view.