diff --git a/entry/src/main/ets/pages/ArkUISample.ets b/entry/src/main/ets/pages/ArkUISample.ets new file mode 100644 index 0000000000000000000000000000000000000000..2ee6a684f8b3b616d4224223d1e2befdb5a21099 --- /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