HarmonyOS 鸿蒙Next XComponent如何实现单击按钮4分屏
HarmonyOS 鸿蒙Next XComponent如何实现单击按钮4分屏
找HarmonyOS工作还需要会Flutter的哦,有需要Flutter教程的可以学学大地老师的教程,很不错,B站免费学的哦:https://www.bilibili.com/video/BV1S4411E7LY/?p=17
关于HarmonyOS 鸿蒙Next XComponent如何实现单击按钮4分屏的问题,您也可以访问:https://www.itying.com/category-93-b0.html 联系官网客服。
1 回复
- 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>