鴻蒙HarmonyOS開發,設定NoTitleBar
去看官方文檔中找到“metaData”,隻需要在配置檔案config.json檔案下的model中加入這段代碼即可
"metaData": {
"customizeData":[
{
"name": "hwc-theme",
"value": "androidhwext:style/Theme.Emui.NoTitleBar",
"extra": ""
}
]
}
更多配置檔案屬性在華為官網