方法一: 动态编码的方式
//去掉窗口标题
requestWindowFeature(Window.FEATURE_NO_TITLE);
//隐藏顶部状态栏
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
方法二:
android:theme="@android:style/Theme.Black.NotitleBar"
android:theme="@android:style/Theme.Black.NotitleBar.Fullscreen"
方法三:
<style name="AppTheme" parent="AppBaseTheme">
<item name="android:windowNoTitle">true</item> <!--没有标题-->
</style>