HarmonyOS 鸿蒙Next XComponent如何实现单击按钮4分屏
HarmonyOS 鸿蒙Next XComponent如何实现单击按钮4分屏
- XComponent({
- id: ‘xComponentId’,
- type: XComponentType.SURFACE,
- libraryname: ‘nativerender’,
- controller: this.myXComponentController
- })
- .width(this.xc_width)
- .height(this.xc_height)
- .onLoad(() => {
- let surfaceRotation: SurfaceRotationOptions = { lock: this.isLock };
- this.myXComponentController.setXComponentSurfaceRotation(surfaceRotation);
- console.log("Surface getXComponentSurfaceRotation lock = " +
- this.myXComponentController.getXComponentSurfaceRotation().lock);
- })
- <Button>四分屏</Button>
关于HarmonyOS 鸿蒙Next XComponent如何实现单击按钮4分屏的问题,您也可以访问:https://www.itying.com/category-93-b0.html 联系官网客服。
更多关于HarmonyOS 鸿蒙Next XComponent如何实现单击按钮4分屏的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
1 回复
更多关于HarmonyOS 鸿蒙Next XComponent如何实现单击按钮4分屏的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
有要学HarmonyOS AI的同学吗,联系我:https://www.itying.com/goods-1206.html