HarmonyOS 鸿蒙Next通过startWindowIcon修改启动画面图片
HarmonyOS 鸿蒙Next中如何修改启动画面图片呢,下面小编带大家一起看看,修改启动画面图片和修改应用名称和应用图标在一个地方,需要修改module.json5,图片在media中
"startWindowIcon": "$media:vip", //启动画面图片
"startWindowBackground": "$color:start_window_background", //启动画面背景
"abilities": [
{
"name": "EntryAbility",
"srcEntry": "./ets/entryability/EntryAbility.ets",
"description": "$string:EntryAbility_desc",
"icon": "$media:layered_image",
"label": "$string:EntryAbility_label",
"startWindowIcon": "$media:vip", //启动画面图片
"startWindowBackground": "$color:start_window_background", //启动画面背景
"exported": true,
"backgroundModes": [
"location"
], // 后台模式类型
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
}
],
更多关于HarmonyOS 鸿蒙Next通过startWindowIcon修改启动画面图片的实战教程也可以访问 https://www.itying.com/category-93-b0.html
1 回复