AnimationDrawable don't work in Android 2.2

前端 未结 2 830
迷失自我
迷失自我 2020-12-17 02:12

I using AnimationDrawable like this:

ImageView rocketImage = (ImageView) layout.findViewById(R.id.animation);
rocketImage.setBackgroundResource(R.drawable.pr         


        
2条回答
  •  独厮守ぢ
    2020-12-17 02:49

    view.post(new Runnable() {
            public void run() {
                anim.start();
           }
        });
        view.startAnimation(anim);
    

    this works for me.

提交回复
热议问题