自己的页面是沉浸式显示
所以在 EntryAbility 设置了
windowStage.getMainWindow((err, windowClass) => {
windowClass.setWindowLayoutFullScreen(true)
windowClass.setWindowSystemBarEnable(['navigation'])
})
但是,跳转到app页面后,app页面,也会沉浸式显示,顶部返回按钮都快看不见了,能否手动或者设置让部分页面设置沉浸式显示, 部分页面一般的显示
可以在需要页面的生命周期里设置,不需要时隐藏,代码如下