一、标题栏
1.隐藏标题栏
继承Activity的
// 一定要写在onCreate()方法中setContentView()之前!!
requestWindowFeature(Window.FEATURE_NO_TITLE);
继承AppCompatActivity的
// 一定要写在onCreate()方法中!!
if (getSupportActionBar() != null){
getSupportActionBar().hide();
}
// 一定要写在onCreate()方法中setContentView()之前!!
requestWindowFeature(Window.FEATURE_NO_TITLE);
// 一定要写在onCreate()方法中!!
if (getSupportActionBar() != null){
getSupportActionBar().hide();
}