HarmonyOS 设置冷启动的背景图

现在需求是启动页是一张图,冷启动的时候会有一会的白屏。

HarmonyOS
2024-11-01 09:24:37
浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
superinsect

​设置启动背景图与颜色:

在模块的src > main > module.json5文件的abilities数组中,添加startWindowIcon和startWindowBackground字段。其中,startWindowIcon字段索引模块下resources > base > media中的图标资源, startWindowBackground字段索引resources > base > element > color.json中的color,例:​

"startWindowIcon": "$media:startIcon", 
"startWindowBackground": "$color:start_window_background",
  • 1.
  • 2.
分享
微博
QQ
微信
回复
2024-11-01 15:18:20
相关问题
HarmonyOS 启动背景图适配
949浏览 • 1回复 待解决
HarmonyOS 如何让背景图居中
896浏览 • 1回复 待解决
HarmonyOS 启动设置问题
876浏览 • 1回复 待解决
HarmonyOS pad端设置启动
745浏览 • 1回复 待解决
HarmonyOS 冷启动启动实现
1041浏览 • 1回复 待解决
HarmonyOS 对于图片或者背景图拉伸
819浏览 • 1回复 待解决
HarmonyOS APP可以直接设置启动吗?
2011浏览 • 1回复 待解决
HarmonyOS 背景图片如何填充满组件
1601浏览 • 1回复 待解决
HarmonyOS 如何监听应用冷启动
820浏览 • 1回复 待解决
冷启动报错Error message
3011浏览 • 1回复 待解决