From c5a465944e7128933ae716f112225e4a26ded7f1 Mon Sep 17 00:00:00 2001 From: cat404 <1196525525@qq.com> Date: Thu, 18 Dec 2025 16:41:34 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A3=80=E8=A7=86?= =?UTF-8?q?=E6=84=8F=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/Index.ets | 1 + 1 file changed, 1 insertion(+) diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 2754c69..670d782 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -56,6 +56,7 @@ struct Index { .borderRadius(15) .width('91.1%') .height(48 * this.routes.length) + .constraintSize({maxHeight: '100%'}) .backgroundColor(Color.White) } .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]) -- Gitee From 629e24420dc89eafbd6f2069dd3e496c2cbdd087 Mon Sep 17 00:00:00 2001 From: cat404 <1196525525@qq.com> Date: Wed, 24 Dec 2025 16:34:08 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 14 +++++++++----- entry/src/main/ets/pages/MarqueeDisplayScene.ets | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c65c9c9..d3e6edb 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ - **API版本分支**:通过`deviceInfo.sdkApiVersion`或`deviceInfo.distributionOSApiVersion`判断,选择高版本API或降级实现 - *ActionBar示例*:API 6.0.0+(60000)使用HdsActionBar,低版本用基础组件模拟 - - *Text/Marquee*:仅在API 18+启用跑马灯效果 + - *Text跑马灯效果示例*:仅在API 18+启用跑马灯效果 - **特性按需装配**:Scroll组件通过"特性规格表"动态注册API 12/18/20的不同能力,使用WeakSet避免重复绑定 ### Native层兼容 @@ -98,7 +98,11 @@ ## 约束与限制 -1. 本示例仅支持标准系统上运行,支持设备:华为手机。 -2. HarmonyOS系统:HarmonyOS 6.0.0及以上。 -3. DevEco Studio版本:DevEco Studio 6.0.0及以上。 -4. HarmonyOS SDK版本:HarmonyOS 6.0.0 SDK及以上。 +1. **适用设备**:仅支持在标准系统的华为手机设备上运行。 +2. **系统版本要求**:本示例用于测试多API版本兼容性,需在以下HarmonyOS系统版本上进行验证: + - HarmonyOS 5.0.5 (API 17) + - HarmonyOS 5.1.1 (API 19) + - HarmonyOS 6.0.0 (API 20) +3. **开发环境**: + - DevEco Studio 6.0.0 或更高版本 + - 对应的HarmonyOS SDK版本(5.0.5、5.1.1及6.0.0) \ No newline at end of file diff --git a/entry/src/main/ets/pages/MarqueeDisplayScene.ets b/entry/src/main/ets/pages/MarqueeDisplayScene.ets index 6ee165e..47d8fa6 100644 --- a/entry/src/main/ets/pages/MarqueeDisplayScene.ets +++ b/entry/src/main/ets/pages/MarqueeDisplayScene.ets @@ -36,7 +36,7 @@ function MarqueeDisplayScene() { NavDestination() { Column() { Row() { - Text('This is a simple Code of Text Marquee.') + Text('This is a simple Code of Text Marquee.'.repeat(3)) .fontSize(24) .height(200) .width('100%') -- Gitee From 2c6938895d8b50e20a84713689f7bbe9b0cc6485 Mon Sep 17 00:00:00 2001 From: cat404 <1196525525@qq.com> Date: Wed, 24 Dec 2025 16:59:24 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9Readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d3e6edb..a0e2fda 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ ## 约束与限制 1. **适用设备**:仅支持在标准系统的华为手机设备上运行。 -2. **系统版本要求**:本示例用于测试多API版本兼容性,需在以下HarmonyOS系统版本上进行验证: +2. **系统版本要求**:本示例用于测试多API版本兼容性,可以在以下HarmonyOS系统版本上进行验证(注意最低系统版本为HarmonyOS 5.0.5 (API 17)): - HarmonyOS 5.0.5 (API 17) - HarmonyOS 5.1.1 (API 19) - HarmonyOS 6.0.0 (API 20) -- Gitee