//首先在布局文件里添加一个xml文件,只需添加一个背景图。然后通过线程来控制显示的时间, requestWindowFeature(Window.FEATURE_NO_TITLE);// 填充标题栏 //填充标题栏必须在调用页面布局文件的上面 setContentView(R.layout.home); new Thread(new Runnable() { @Override public void run() { try { Thread.sleep(2000); gotoHome(); } catch (InterruptedException e) { e.printStackTrace(); } } }).start(); private void gotoHome() { // TODO Auto-generated method stub Intent intent = new Intent(this, LoginActivity.class); startActivity(intent); finish(); }[
Android 启动画面跳转和去掉标题栏
猜你喜欢
转载自mrhe.iteye.com/blog/1886746
今日推荐
周排行