As far as i know, thats a Bug in 2.1, 2.2
A possible workaround could be:
ImageView rocketImage = (ImageView) layout.findViewById(R.id.animation);
rocketImage.setBackgroundResource(R.drawable.progress_blue_animation);
rocketAnimation = (AnimationDrawable) rocketImage.getBackground();
rocketImage.post(new Runnable(){
public void run(){
rocketAnimation.start();
}
});
(But i didn't try it in Targets >2.1)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…