我对 Android 很陌生,我找不到关于如何在动画结束时开始新活动的线程。
这是我的代码:
public class Intro extends Activity {
AnimationDrawable anim = new AnimationDrawable();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.intro);
ImageView iv =(ImageView) findViewById(R.id.imageView1);
iv.setBackgroundResource(R.anim.animation);
anim = (AnimationDrawable) iv.getBackground();
iv.post(new Runnable(){
public void run(){
anim.start();
}
});
}
}