How to reset AnimationDrawable

后端 未结 5 1880
粉色の甜心
粉色の甜心 2020-12-14 15:01

I have to animate a circular count down timer and I\'m doing it by animating the background of an ImageView using AnimationDrawable (each image has the according slice of th

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-14 15:57

    This will send the (AnimationDrawable) timerAnimation to the first frame as soon as stop() has been called:

    timerAnimation.stop();
    timerAnimation.selectDrawable(0);
    

提交回复
热议问题