全屏的自定义主题 [英] Full Screen in customize theme
本文介绍了全屏的自定义主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的应用程序需要显示为全屏幕,现在我知道如何使用,以增加这个功能到应用程序标签在Mainfest
My app need to show as full screen, now I know how to add this feature into application tag in Mainfest using
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
不过,我有我自己的主题名为codeFONT,而我不能使用两个主题,在相同的应用程序。我怎么能在我的资源文件中添加此功能为我自己的风格标签?有没有这样的机器人:风格标签。 plz帮助。 THX。
However, I have my own theme called "CodeFont", and I cannot use two themes at the same application. How I can add this feature into my own style tag in my resources file? there is no such android:style tag. plz help. thx.
推荐答案
通过使用默认的主题,像这样创建自定义主题
Create your custom theme by using default theme, like this
与全屏窗口
<style name="generalnotitle" parent="general">
<item name="android:windowFullscreen">true</item>
</style>
与 NoTitle
<style name="generalnotitle" parent="general">
<item name="android:windowNoTitle">true</item>
</style>
这篇关于全屏的自定义主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文