我遵循了本页非常明确的指示:
https://build.phonegap.com/docs/config-xml
我在config.xml文件中包含了以下行(它确实位于我的应用程序的顶层):<preference name="fullscreen" value="true" />
但屏幕顶部的状态栏仍然存在。
这是我的完整config.xml文件,如果有帮助的话..
<?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="[email protected]">
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
文件放在同一目录中:
注意:在这种情况下,我们的应用程序内置在public/
目录中。所以所有的样式表和javascripts都已经编译并放在一个里面了。
现在就观察魔法吧!