this.mXComponentController.setXComponentSurfaceRect({
surfaceWidth: 1080,
surfaceHeight: 1920
})
我该如何设置为全屏的大小呢
this.mXComponentController.setXComponentSurfaceRect({
surfaceWidth: 1080,
surfaceHeight: 1920
})
我该如何设置为全屏的大小呢
1 回答1k 阅读✓ 已解决
1 回答1.3k 阅读
1 回答1.1k 阅读
1 回答1.1k 阅读
1 回答1.1k 阅读
1 回答964 阅读
1 回答931 阅读
XComponent无法直接设置铺满屏幕,超过组件大小的部分会被切掉的,https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/arkts-develop-apply-immersive-effects-V5
屏幕先设置全屏铺满
获取屏幕宽高再去设置