WEB开发网
开发学院手机开发Android 开发 android程序启动画面-Splash 阅读

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);

}
 

上一页  1 2 3 4 

Tags:android 程序 启动

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接