第一种方法
1,在style.xml文件中定义theme(如果没有style.xml,在res/values目录下创建)
<resources>
<style name=
"Theme.NoTitle_FullScreen"
> <!--自定义主题名称-->
<item name=
"android:windowNoTitle"
>
true
</item>
<item name=
"android:windowFullscreen"
>
true
</item>
</style>
</resources>
,2, 直接在AndroidManifest.xml中需要全屏显示的Activity属性中添加
android:theme=
"@style/Theme.NoTitle_FullScree"
第二种方法
在清单文件application标签中 修改属性theme为
android:theme="@style/Theme.AppCompat.NoActionBar