单位网站建设申请,网站内容建设的布局,网站建设图库,网站流量统计表这篇很有用#xff1a;玩转HarmonyOS 状态栏标题栏导航栏相关操作方法整理
配置页面全屏显示(在config.json中配置)#xff1a;
metaData: {customizeData: [{name: hwc-theme,value: androi…这篇很有用玩转HarmonyOS 状态栏标题栏导航栏相关操作方法整理
配置页面全屏显示(在config.json中配置)
metaData: {customizeData: [{name: hwc-theme,value: androidhwext:style/Theme.Emui.Wallpaper.NoTitleBar.Fullscreen}]
}
配置页面NoTitleBar显示(在config.json中配置) metaData: {customizeData: [{name: hwc-theme,value: androidhwext:style/Theme.Emui.Light.NoTitleBar}]
}
标题栏、状态栏、导航栏的设置
更改系统标题栏的样式在entry模块下的config.json文件添加配置如下代码无标题栏。
1、在module下配置是改变应用的样式在 metaData节点中配置
2、abilities下配置是改变对应的页面样式。
{name: com.x.honet.LoginAbility,description: $string:loginability_description,icon: $media:icon,label: $string:pro_honet_LoginAbility,launchType: standard,orientation: unspecified,type: page,metaData: {customizeData: [{name: hwc-theme,value: androidhwext:style/Theme.Emui.Dark.NoActionBar}]}}
name: hwc-theme固定写法不能更改
value: androidhwext:style/Theme.Emui.Light白色样式有标题栏状态栏和导航栏字体颜色黑色
value: androidhwext:style/Theme.Emui.Light.NoTitleBar白色样式无标题栏状态栏和导航栏字体颜色黑色
value: androidhwext:style/Theme.Emui.Dark黑色样式有标题栏状态栏和导航栏字体颜色白色
value: androidhwext:style/Theme.Emui.Dark.NoActionBar黑色样式无标题栏状态栏和导航栏字体颜色白色
参考华为开发者博客
参考文档中心