我已遵循此页面上非常明确的说明:https://build.phonegap.com/docs/config-xml 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] /cdn-cgi/l/email-protection">
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
file:
Note:在这种情况下,我们的应用程序内置于public/
目录。因此,所有样式表和 JavaScript 都已编译并放置在一个文件中。
现在就来观察魔法吧!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)