The main idea of implementing the welcome page is to create an activity, lay out the welcome interface in XML, set a handler message mechanism in the main java file, define a time, automatically jump to the main page and close the current page (PS: the page should be set to start page)
// 用handler定时,完成启动页面
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
startActivity(new Intent(ActionActivity.this,MainActivity.class));
finish();
}
}, 2000);