1.在styles中添加如下主题
<style name="FullScreen" parent="Theme.AppCompat.Light.NoActionBar"> <item name="windowNoTitle">true</item> <item name="windowActionBar">false</item> <item name="android:windowFullscreen">true</item> </style>
2.在Manifest中使用上面的主题
android:theme="@style/FullScreen"