animation 动画的状态重置

来源:互联网 发布:淘宝脱胶险怎么设置 编辑:程序博客网 时间:2024/06/04 00:40

解决方法1:

((AnimationDrawable)(someButton.getBackground())).stop();someButton.setBackgroundDrawable(null);someButton.setBackgroundResource(R.drawable.animation);

 

 

解决方法2:

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