Android Phonegap build和config.xml
我目前正在使用phonegap build来构建我在html文件和一些css和javascript文件中创建的移动应用程序,我想添加一个config.xml文件来使用我的应用程序的一些首选项。但问题是,我不知道将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 目前,这就是
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