HarmonyOS 鸿蒙Next 如何修改应用的图标
在 HarmonyOS Next 中修改应用图标主要需要修改module.json5 ,其中"icon": “$media:layered_image”,就是应用图标,图片在media目录中
abilities": [
{
"name": "EntryAbility",
"srcEntry": "./ets/entryability/EntryAbility.ets",
"description": "$string:EntryAbility_desc",
"icon": "$media:layered_image", //应用图标
"label": "$string:EntryAbility_label",
"startWindowIcon": "$media:startIcon",
"startWindowBackground": "$color:start_window_background",
"exported": true,
"backgroundModes": [
"location"
], // 后台模式类型
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
}
],
更多关于HarmonyOS 鸿蒙Next 如何修改应用的图标的实战教程也可以访问 https://www.itying.com/category-93-b0.html
1 回复