创建styles.xml文件
内容:
<!-- 全屏主题 -->
<style name="FullScreenTheme" parent="AppTheme.NoActionBar">
<item name="android:windowFullscreen">true</item>
</style>
android:theme="@style/FullScreenTheme"
<!-- 全屏主题 -->
<style name="FullScreenTheme" parent="AppTheme.NoActionBar">
<item name="android:windowFullscreen">true</item>
</style>
android:theme="@style/FullScreenTheme"