> 文档中心 > openharmony - 去掉应用上方的标题栏

openharmony - 去掉应用上方的标题栏

在config.json文件中,如图位置添加

"metaData": {  "customizeData": [{  "name": "hwc-theme",   "value": "androidhwext:style/Theme.Emui.NoTitleBar"  }]}

其他设置

androidhwext:style/Theme.Emui.NoTitleBar 无Titleandroidhwext:style/Theme.Emui.NoDisplay 无界面androidhwext:style/Theme.Emui.Light.NoTitleBar.Fullscreen 全屏无状态栏/TitleBarandroidhwext:style/Theme.Emui.Dialog 将一个Activity显示为对话框模式androidhwext:style/Theme.Emui.NoTitleBar 不显示应用程序标题栏androidhwext:style/Theme.Emui.NoTitleBar.Fullscreen 不显示应用程序标题栏,并全屏androidhwext:style/Theme.Emui.Light 背景为白色androidhwext:style/Theme.Emui.Light.NoTitleBar 白色背景并无标题栏androidhwext:style/Theme.Emui.Light.NoTitleBar.Fullscreen 白色背景,无标题栏,全屏androidhwext:style/Theme.Emui.Black 背景黑色androidhwext:style/Theme.Emui.Black.NoTitleBar 黑色背景并无标题栏androidhwext:style/Theme.Emui.Black.NoTitleBar.Fullscreen 黑色背景,无标题栏,全屏androidhwext:style/Theme.Emui.Wallpaper 用系统桌面为应用程序背景androidhwext:style/Theme.Emui.Wallpaper.NoTitleBar 用系统桌面为应用程序背景,且无标题栏androidhwext:style/Theme.Emui.Wallpaper.NoTitleBar.Fullscreen 用系统桌面为应用程序背景,无标题栏,全屏androidhwext:style/Emui.Translucent 透明背景androidhwext:style/Theme.Emui.Translucent.NoTitleBar 透明背景并无标题androidhwext:style/Theme.Emui.Translucent.NoTitleBar.Fullscreen 透明背景并无标题,全屏androidhwext:style/Theme.Emui.Panel 面板风格显示androidhwext:style/Theme.Emui.Light.Panel 平板风格显示