How to reset AnimationDrawable

后端 未结 5 1878
粉色の甜心
粉色の甜心 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:54

    You can try public boolean setVisible (boolean visible, boolean restart) and it will play the animation once. For example:

    animationDrawable.setVisible(false, true);
    

提交回复
热议问题