解决方法1:
((AnimationDrawable)(someButton.getBackground())).stop();
someButton.setBackgroundDrawable(null);
someButton.setBackgroundResource(R.drawable.animation);
解决方法2:
timerAnimation.stop();
timerAnimation.selectDrawable(0);
解决方法1:
((AnimationDrawable)(someButton.getBackground())).stop();
someButton.setBackgroundDrawable(null);
someButton.setBackgroundResource(R.drawable.animation);
解决方法2:
timerAnimation.stop();
timerAnimation.selectDrawable(0);