Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/193.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Phonegap build和config.xml_Android_Cordova - Fatal编程技术网

Android Phonegap build和config.xml

Android Phonegap build和config.xml,android,cordova,Android,Cordova,我目前正在使用phonegap build来构建我在html文件和一些css和javascript文件中创建的移动应用程序,我想添加一个config.xml文件来使用我的应用程序的一些首选项。但问题是,我不知道将config.xml文件正确放置在哪里。下面是我的应用程序的文件结构 HelloWorld - index.html - css - style.css - js - script.js - app - www - config.xml 目前,这就是

我目前正在使用phonegap build来构建我在html文件和一些css和javascript文件中创建的移动应用程序,我想添加一个config.xml文件来使用我的应用程序的一些首选项。但问题是,我不知道将config.xml文件正确放置在哪里。下面是我的应用程序的文件结构

HelloWorld
 - index.html
 - css
   - style.css
 - js
   - script.js
 - app
   - www
     - config.xml
目前,这就是我的应用程序的文件结构,我将其上传到phonegap build中,然后为其构建apk。我添加config.xml文件的主要原因是为了消除在应用程序中上下滚动时的反弹效果。我使用这个首选项来解决这个问题,但问题是,我不知道我的config.xml文件是否位于正确的位置

<preference name="webviewbounce" value="false" />
<preference name="DisallowOverscroll" value="true"/>

您应该将
config.xml
放入
res>xml>config.xml

如下所示(文件结构

我使用/www/中的config.xml文件。每次编译项目时,平台目录(android或ios)中的目录都会被覆盖
the problem is i don't know where will i put my config.xml file correctly.
     res
     xml folder
     config.xml