protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//全屏显示
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
this.setContentView(R.layout.logo);
//获取界面上的图片
ImageView logoView = (ImageView) this.findViewById(R.id.logoImage);
//实例化动画实例
Animation logoAnimation = AnimationUtils.loadAnimation(this, R.anim.logo);
logoView.startAnimation(logoAnimation);
//动画监听
logoAnimation.setAnimationListener(new AnimationListener() {
public void onAnimationStart(Animation animation) {
}
@Override
public void onAnimationRepeat(Animation animation) {
// TODO Auto-generated method stub
}
public void onAnimationEnd(Animation animation) {
Intent intent = new Intent(LogoActivity.this, LoginActivity.class);
startActivity(intent);
finish();
}
});
}