PhoneGap Android: How to force Application to use icons from asset\www\res instead res\drawable folder?

后端 未结 1 1661
我寻月下人不归
我寻月下人不归 2020-11-30 09:11

I have created new Android phonegap project using eclipse and put my existing WWW folder of my iphone phonegap project.

I have all the icons and screen added for an

相关标签:
1条回答
  • 2020-11-30 09:34

    config.xml is used only by the PhoneGap Build service.

    - Building locally, this file is ignored and the files in your res/drawable directory are used.
    - Building with PGBuild, the service looks for this file at the root of your project (next to index.html) and uses it to identify what images should be copied into the res/drawable folder on their end to generate an apk with the right images (in the case of Android).

    Since PGBuild builds for a lot of platforms, config.xml is their way of offering as much customisation capabilites as they can outside of the html/js/css. Some of this is just for picking your icons/splash images for each platform but you can do a lot more with too. PGBuild does each of the natively required actions for each platform based on the contents of the uploaded file.

    I hope this is clear enough.

    0 讨论(0)
提交回复
热议问题