一、隐藏标题栏

 

//隐藏标题栏
this.requestWindowFeature(Window.FEATURE_NO_TITLE);

 

 

 

二、隐藏状态栏

 

//隐藏状态栏
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

 

 

 

三、去掉所有Activity界面的标题栏

  修改AndroidManifest.xml 
  在application 标签中添加android:theme="@android:style/Theme.NoTitleBar"

 

四、去掉所有Activity界面的TitleBar 和StatusBar 

  修改AndroidManifest.xml 

  在application 标签中添加 
  android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

相关文章:

  • 2021-11-19
  • 2022-12-23
  • 2021-12-18
  • 2021-12-18
  • 2021-12-18
  • 2021-09-25
猜你喜欢
  • 2021-11-27
  • 2022-01-24
  • 2022-02-07
  • 2021-07-23
  • 2021-10-20
  • 2022-02-07
  • 2022-02-07
相关资源
相似解决方案