PhoneGap的构建2.7.0版本在Android config.xml中忽略全屏preference [英] PhoneGap Build version 2.7.0 ignoring fullscreen preference in config.xml on Android
问题描述
我按照此页面上的非常明确的指示:
https://build.phonegap.com/docs/config-xml
I have followed the very clear instructions on this page: https://build.phonegap.com/docs/config-xml
我已经包含在我的config.xml文件中的以下行(这的确是设在我的应用程序的顶层):< preference NAME =全屏VALUE =真/>
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>
任何帮助是AP preciated,谢谢!
Any help is appreciated, thanks!
推荐答案
只要将你的 config.xml中
文件,修改,因为你需要在同一目录中,作为 index.html的
文件:
Just place your config.xml
file, modified as you need, at the same directory, as the index.html
file:
注意:在这种情况下,我们有建于公共/
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.
而现在只是观察的魔力!
And now just observe the magic!
这篇关于PhoneGap的构建2.7.0版本在Android config.xml中忽略全屏preference的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!