Android SplashScreen 欢迎界面

释放双眼,带上耳机,听听看~!

App 启动的欢迎界面

public class SplashScreenActivity extends AppCompatActivity {
/**
     * Called when the activity is first created.
     */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
getWindow().setFormat(PixelFormat.RGB_565);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);//
setContentView(R.layout.welcome);
        new Handler().postDelayed(new Runnable() {
public void run() {
/* Create an Intent that will start the Main WordPress Activity. */
Intent mainIntent = new Intent(SplashScreenActivity.this, MainActivity.class);
startActivity(mainIntent);
finish();
}
}, 1200); //2900 for release
}
}

 

人已赞赏
Android文章

Android 权限申请

2020-3-31 15:31:50

Android文章

Android GridView

2020-3-31 17:18:02

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
有新消息 消息中心
搜索