android程序启动画面-Splash
2012-09-07 12:24:02 来源:WEB开发网核心提示:};@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().requestFeature(Window.FEATURE_PROGRESS); //去标题栏
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().requestFeature(Window.FEATURE_PROGRESS); //去标题栏
setContentView(R.layout.main);
animatinoGone = AnimationUtils.loadAnimation(this,R.anim.alpha_gone); //动画效果
myAnimation_Alpha = AnimationUtils.loadAnimation(this,R.anim.alpha_action); //动画效果
splash = (LinearLayout) findViewById(R.id.splashscreen);
tv = (TextView) findViewById(R.id.info);
tv.setText("正在建立数据连接");
splash.startAnimation(myAnimation_Alpha);
Message msg = new Message();
msg.what = STOPSPLASH;
splashHandler.sendMessageDelayed(msg, SPLASHTIME);
}
更多精彩
赞助商链接