问题描述
我已遵循此页面上的非常清楚的说明:
I have followed the very clear instructions on this page:https://build.phonegap.com/docs/config-xml
我在我的config.xml文件中包含了下面一行(确实位于顶层的应用程式):
< preference name =fullscreenvalue =true/>
I have included the following line in my config.xml file (which is indeed located at the top level of my app):<preference name="fullscreen" value="true" />
但是屏幕顶部的状态栏仍然保留。
And yet the status bar at the top of the screen remains.
这是我的完整config.xml文件,如果它有帮助..
Here is my full config.xml file if it helps..
<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.universeprojects.voidspace"
versionCode="10"
version = "0.1.2b">
<!-- versionCode is optional and Android only -->
<name>VoidSpace - DevServer</name>
<description>
This is a special version of VoidSpace that connects to the development server.
</description>
<author href="https://voidspace.ca" email="support@universeprojects.com">
Nikolas Gauvreau
</author>
<preference name="EnableViewportScale" value="true" />
<preference name="fullscreen" value="true" />
<preference name="webviewbounce" value="false" />
<icon src="icon.png" />
<gap:splash src="splash.png" />
</widget>
感谢任何帮助。
推荐答案
只需将 config.xml
文件放在同一目录下, index.html 文件:
Just place your config.xml
file, modified as you need, at the same directory, as the index.html
file:
注意:在这种情况下,我们的应用程序内置了 public /
dir。所以所有的样式表和javascript已经编译并放置在一个。
Note: in this case, we have our application built in the public/
dir. So all the stylesheets and javascripts are already compiled and placed within one.
现在只是观察神奇!
这篇关于PhoneGap Build版本2.7.0忽略Android上的config.xml中的全屏首选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!