//隐藏标题栏
1.this.requestWindowFeature(Window.FEATURE_NO_TITLE);
<!-- Application theme. --> <style name="AppTheme"parent="AppBaseTheme"> <item name="android:windowNoTitle">true</item> </style>
//隐藏状态栏
2.this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
3.去掉所有Activity界面的标题栏
修改AndroidManifest.xml
在application 标签中添加android:theme="@android:style/Theme.NoTitleBar"
4.去掉所有Activity界面的TitleBar 和StatusBar
修改AndroidManifest.xml
在application 标签中添加
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"