Android: How can I stop an infinite animation applied on an ImageView?

后端 未结 3 1562
长发绾君心
长发绾君心 2020-12-09 08:41

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:

3条回答
  •  心在旅途
    2020-12-09 08:59

    Use clearAnimation() to stop an animation. There is no loadAnimation() on View.

提交回复
热议问题