分类: Android平台
2013-02-21 16:59:05
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(); } });