我有一个AnimationDrawable,我在启动动画之前初始化它,并在它完成时正确地回收它。问题是,当我想再次启动动画时,我会重新初始化所有内容,但仍然会出现异常。= (AnimationDrawable) radarImageView.getBackground();
}public void animationStop() {
for (int i
setTypeface(font2);
// set its background to our AnimationDrawableimg.setBackgroundResource(R.drawable.spin_animation);
// Get the background, which has been compiled to an AnimationDrawable<
在完成动画后,我很困惑地绘制文本,我尝试在完成动画后绘制出可绘制的Drawable temp = animationDrawable.getCurrent();,然后发送给方法setDrawble(Drawable也建议其他方式 ImageView imageview;publicin which we will store all frames of the
// anima