隐藏某个activity的标题栏:
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
隐藏所有Activity界面的标题栏:
在AndroidManifest.xml 的application 标签中添加android:theme="@android:style/Theme.NoTitleBar"
隐藏某个activity的状态栏:
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
隐藏所有Activity界面的TitleBar 和StatusBar
在AndroidManifest.xml 的application 标签中添加 android:theme="@android:style/Theme.NoTitleBar.Fullscreen"