From 45289742ee7a753fd6692d24f0f208c64b3df0c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E5=8D=93=E4=BC=A6?= <2658469835@qq.com> Date: Fri, 6 Jun 2025 15:54:44 +0800 Subject: [PATCH] =?UTF-8?q?feat=20(=E6=A0=87=E8=AF=86):=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20UtilizeHWCEfficiently=20=E4=BB=93=E5=BA=93=E6=A0=87?= =?UTF-8?q?=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/ArkUISample.ets | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 entry/src/main/ets/pages/ArkUISample.ets diff --git a/entry/src/main/ets/pages/ArkUISample.ets b/entry/src/main/ets/pages/ArkUISample.ets new file mode 100644 index 0000000..2ee6a68 --- /dev/null +++ b/entry/src/main/ets/pages/ArkUISample.ets @@ -0,0 +1,21 @@ +/** + * 最佳实践:高效利用HWC的低功耗设计 + */ +// [Start ArkUI_sample] +@Entry +@Component +struct ArkUISample { + @State message: string = 'Hello World'; + build() { + Row() { + Column() { + Text(this.message) + .fontSize(50) + .fontWeight(FontWeight.Bold) + } + .width('100%') + } + .height('100%') + } +} +// [End ArkUI_sample] \ No newline at end of file -- Gitee