简体   繁体   English

如何在config.xml中更改此App图标?

[英]How can i change this App Icon in config.xml?

PhoneGap图标

How can i change this PhoneGap App Icon marked in the picture? 如何更改图片中标记的PhoneGap App图标?

Add an icon in the www root folder (say icon.png) and add this line in your config.xml file: 在www根文件夹中添加一个图标(例如icon.png)并在config.xml文件中添加以下行:

<icon src="icon.png" />

It is recommended to provided several icons for different resolutions and different platforms, but the above line will get you started. 建议为不同的分辨率和不同的平台提供几个图标,但上面的内容将帮助您入门。

For example, to provided icons for iOS devices, you can add something like: 例如,要为iOS设备提供图标,您可以添加以下内容:

<icon src="icon.png" />
<platform name="ios">
  <icon src="res/icon/ios/icon.png" width="57" height="57" />
  <icon src="res/icon/ios/icon@2x.png" width="114" height="114" />
  <icon src="res/icon/ios/icon-72.png" width="72" height="72" />
  <icon src="res/icon/ios/icon-72@2x.png" width="144" height="144" />
  <icon src="res/icon/ios/icon-60.png" width="60" height="60" />
  <icon src="res/icon/ios/icon-60@2x.png" width="120" height="120" />
  <icon src="res/icon/ios/icon-60@3x.png" width="180" height="180" />
  <icon src="res/icon/ios/icon-76.png" width="76" height="76" />
  <icon src="res/icon/ios/icon-76@2x.png" width="152" height="152" />
</platform>

Those paths are relative to the www root. 那些路径是相对于www根。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在config.xml中指定cordova android版本? - How can I specify cordova android version in config.xml? PhoneGap config.xml iOS应用程序图标问题 - PhoneGap config.xml iOS app icon issues 如何更改 Android 低 memory 杀手的“config.xml”值 - How to change Android "config.xml" values for low memory killer 使用phonegap build构建应用程序时如何修改config.xml - How to modify config.xml when app is built with phonegap build 在meteor app中如何在cordova config.xml中添加orgin = *? - In meteor app how to add orgin=* in cordova config.xml? 如何在混合应用程序中请求权限(没有AndroiManifest,只有config.xml)? - How to ask for permissions in an hybrid app (no AndroiManifest, only config.xml)? Cordova 权限,如何在 config.xml 中处理? - Cordova Permissions, how to handle in config.xml? 我可以在Cordova应用程序中将配置从config.xml写入AndroidManifest.xml吗? - Can I write configuration from config.xml to AndroidManifest.xml in cordova applications 我应该使用ibm watson chatbot在android应用程序的config.xml中写入什么数据? - what is the data I should write in config.xml of an android app using ibm watson chatbot? 每次我使用Terminal命令构建项目时,cordova项目本机应用程序中的config.xml都会更新 - config.xml in native app of cordova project gets updated everytime I build the project using Terminal command
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM