|
@@ -17,41 +17,39 @@ license: >
|
|
|
specific language governing permissions and limitations
|
|
|
under the License.
|
|
|
|
|
|
-title: Customize app icons
|
|
|
-toc_title: Customize icons
|
|
|
-description: Learn how to customize icons for your Cordova application.
|
|
|
+标题:自定义应用图标
|
|
|
+Toc_标题:自定义图标
|
|
|
+说明:了解如何为您的 Cordova 应用程序自定义图标。
|
|
|
---
|
|
|
+• 自定义图标
|
|
|
|
|
|
-# Customize Icons
|
|
|
+本节演示如何为各种平台配置应用程序的图标。有关初始屏幕图像的文档可以在 Cordova-Plugin-Splash 屏幕文档 [飞溅屏幕插件文档] [飞溅屏幕]插件]中找到。
|
|
|
|
|
|
-This section shows how to configure an application's icon for various platforms. Documentation about splash screen images can be found in the Cordova-Plugin-Splashscreen documentation [Splashscreen plugin docs][splashscreen_plugin].
|
|
|
+• 配置 CLI 中的图标
|
|
|
|
|
|
-## Configuring Icons in the CLI
|
|
|
+在 CLI 中工作时,您可以通过"<icon>"元素 (' Config.xml') 定义应用程序图标 (s)。
|
|
|
+如果不指定图标,则使用 Apache Cordova 徽标。
|
|
|
|
|
|
-When working in the CLI you can define application icon(s) via the `<icon>` element (`config.xml`).
|
|
|
-If you do not specify an icon, the Apache Cordova logo is used.
|
|
|
-
|
|
|
-```xml
|
|
|
- <icon src="res/ios/icon.png" platform="ios" width="57" height="57" density="mdpi" />
|
|
|
+' XML
|
|
|
+ • 图标 src = " RES/iOS/icon.png" 平台 • " ios" 宽度 • " 57" 高度 • " 57" 密度 = " mdpi/]
|
|
|
```
|
|
|
|
|
|
-Attributes | Description
|
|
|
+属性 |描述
|
|
|
--------------|--------------------------------------------------------------------------------
|
|
|
-src | *Required* <br/> Location of the image file, relative to your project directory
|
|
|
-platform | *Optional* <br/> Target platform
|
|
|
-width | *Optional* <br/> Icon width in pixels
|
|
|
-height | *Optional* <br/> Icon height in pixels
|
|
|
-density | *Optional* <br/> ==Android== <br/> Specified icon density
|
|
|
-target | *Optional* <br/> ==Windows== <br/> Destination filename for the image file and all its' MRT companions
|
|
|
-
|
|
|
-
|
|
|
-The following configuration can be used to define a single default icon
|
|
|
-which will be used for all platforms.
|
|
|
-```xml
|
|
|
- <icon src="res/icon.png" />
|
|
|
+Src |• 所需 = <br/>图像文件的位置,相对于您的项目目录
|
|
|
+平台 |• 可选 • <br/>目标平台
|
|
|
+宽度 |• 可选 = <br/>图标宽度(以像素为单位)
|
|
|
+高度 |• 可选 • <br/>图标高度(以像素为单位)
|
|
|
+密度 |• 可选 • <br/> • • • 安卓 • <br/>指定的图标密度
|
|
|
+目标 |• 可选 = <br/> • • Windows = 图像文件及其所有 MRT 配套<br/>目标文件名
|
|
|
+
|
|
|
+以下配置可用于定义单个默认图标
|
|
|
+它将用于所有平台。
|
|
|
+' XML
|
|
|
+ • 图标 src = = "RES/图标.png"/*
|
|
|
```
|
|
|
-For each platform, you can also define a pixel-perfect icon set to fit
|
|
|
-different screen resolutions.
|
|
|
+对于每个平台,您还可以定义一个像素完美的图标集,以适合
|
|
|
+不同的屏幕分辨率。
|
|
|
|
|
|
##Android
|
|
|
```xml
|