关注去掉标题栏的操作setSystemUiVisibility
以及sendEmptyMessageDelayed方法
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
LinearLayout mMain=findViewById(R.id.id_main_linearlayout);
mMain.setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN);
new Handler(new Handler.Callback() {
@Override
public boolean handleMessage(Message message) {
startActivity(new Intent(getApplicationContext(),LoginActivity.class));
finish();
return false;
}
}).sendEmptyMessageDelayed(0,1000);
}
}