From f3c762240c9f4775fa741784ffd713b6c0da2883 Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Wed, 10 Sep 2025 01:13:36 +0000 Subject: [PATCH 01/19] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/pages/S?= =?UTF-8?q?etWindowPrivacyModeInPage.ets.=20windowUtils=E6=94=B9=E4=B8=BAW?= =?UTF-8?q?indowUtils?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- ArkUI/entry/src/main/ets/pages/SetWindowPrivacyModeInPage.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArkUI/entry/src/main/ets/pages/SetWindowPrivacyModeInPage.ets b/ArkUI/entry/src/main/ets/pages/SetWindowPrivacyModeInPage.ets index 2c9e738a..b205f501 100644 --- a/ArkUI/entry/src/main/ets/pages/SetWindowPrivacyModeInPage.ets +++ b/ArkUI/entry/src/main/ets/pages/SetWindowPrivacyModeInPage.ets @@ -22,7 +22,7 @@ import { BusinessError } from '@kit.BasicServicesKit'; import { common } from '@kit.AbilityKit'; import { window } from '@kit.ArkUI'; -class windowUtils { +class WindowUtils { static setWindowPrivacyModeInPage(context: common.UIAbilityContext, isFlag: boolean) { window.getLastWindow(context).then((lastWindow) => { lastWindow.setWindowPrivacyMode(isFlag, (err: BusinessError) => { @@ -69,7 +69,7 @@ struct Index { .onNavBarStateChange((isVisible: boolean) => { // Callback triggered when navigation bar display state changes console.info('------>isVisible:' + isVisible) - windowUtils.setWindowPrivacyModeInPage(this.context.getHostContext() as common.UIAbilityContext, isVisible); + WindowUtils.setWindowPrivacyModeInPage(this.context.getHostContext() as common.UIAbilityContext, isVisible); }) } } -- Gitee From d702f8bede50d3b5bda1702a0c027ab52ed8058f Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Wed, 10 Sep 2025 01:18:35 +0000 Subject: [PATCH 02/19] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/pages/S?= =?UTF-8?q?etDifferentAttributes.ets.=20Boolean=E6=94=B9=E4=B8=BAboolean?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- ArkUI/entry/src/main/ets/pages/SetDifferentAttributes.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArkUI/entry/src/main/ets/pages/SetDifferentAttributes.ets b/ArkUI/entry/src/main/ets/pages/SetDifferentAttributes.ets index 2583e63f..8908cf95 100644 --- a/ArkUI/entry/src/main/ets/pages/SetDifferentAttributes.ets +++ b/ArkUI/entry/src/main/ets/pages/SetDifferentAttributes.ets @@ -24,7 +24,7 @@ struct TestHeightPage { @State message: string = 'Hello World'; @State myHeight1: number = 30; @State myHeight2: number = 60; - @State flag: Boolean = false + @State flag: boolean = false build() { Column() { -- Gitee From fe249b30ac010f14bceaef99c1412b6c5285c391 Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Wed, 10 Sep 2025 01:21:39 +0000 Subject: [PATCH 03/19] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/pages/S?= =?UTF-8?q?oftKeyboardPopsUp.ets.=20Text=E6=94=B9=E4=B8=BAtext?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- ArkUI/entry/src/main/ets/pages/SoftKeyboardPopsUp.ets | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ArkUI/entry/src/main/ets/pages/SoftKeyboardPopsUp.ets b/ArkUI/entry/src/main/ets/pages/SoftKeyboardPopsUp.ets index 15fa5ca6..c2a5b500 100644 --- a/ArkUI/entry/src/main/ets/pages/SoftKeyboardPopsUp.ets +++ b/ArkUI/entry/src/main/ets/pages/SoftKeyboardPopsUp.ets @@ -23,7 +23,7 @@ @Component struct TextInputExample { scroller: Scroller = new Scroller(); - @State Text: string = ''; + @State text: string = ''; build() { Scroll(this.scroller) { @@ -35,15 +35,15 @@ struct TextInputExample { TextInput({ placeholder: 'Please enter the content.' }) .expandSafeArea([SafeAreaType.KEYBOARD]) .margin({ top: 200 }) - Text(`UserName:${this.Text}`) + Text(`UserName:${this.text}`) .expandSafeArea([SafeAreaType.KEYBOARD]) .width('80%') .margin({ top: 200 }) - TextInput({ placeholder: 'Please enter a user name.', text: this.Text }) + TextInput({ placeholder: 'Please enter a user name.', text: this.text }) .expandSafeArea([SafeAreaType.KEYBOARD]) .margin({ top: 200 }) .onChange((value: string) => { - this.Text = value; + this.text = value; }) } .width('100%') -- Gitee From 06ae842b1484d5846c56f8ceb3f2d309930d9656 Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Wed, 10 Sep 2025 07:34:58 +0000 Subject: [PATCH 04/19] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/pages/G?= =?UTF-8?q?radientTransparencyVaries.ets.=20=E5=8F=98=E9=87=8F=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=9D=83=E9=99=90=E4=BF=AE=E9=A5=B0=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- ArkUI/entry/src/main/ets/pages/GradientTransparencyVaries.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArkUI/entry/src/main/ets/pages/GradientTransparencyVaries.ets b/ArkUI/entry/src/main/ets/pages/GradientTransparencyVaries.ets index 28cf4db7..896c7b00 100644 --- a/ArkUI/entry/src/main/ets/pages/GradientTransparencyVaries.ets +++ b/ArkUI/entry/src/main/ets/pages/GradientTransparencyVaries.ets @@ -22,7 +22,7 @@ @Component struct ColorGradientExample { @State transparent: number | string = '#00333333'; - bool: boolean = true; + private bool: boolean = true; build() { Column({ space: 5 }) { -- Gitee From ed5f328bb54d6f50c6e8e85f367ee0827a92de01 Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Wed, 10 Sep 2025 08:11:59 +0000 Subject: [PATCH 05/19] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/pages/G?= =?UTF-8?q?etHorizontalAndVerticalScreenStatusWindowRotation.ets.=20?= =?UTF-8?q?=E7=BB=93=E5=B0=BE=E8=BF=9E=E7=BB=AD2=E4=B8=AA}=E6=8D=A2?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- .../GetHorizontalAndVerticalScreenStatusWindowRotation.ets | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArkUI/entry/src/main/ets/pages/GetHorizontalAndVerticalScreenStatusWindowRotation.ets b/ArkUI/entry/src/main/ets/pages/GetHorizontalAndVerticalScreenStatusWindowRotation.ets index 7b6af205..a817edae 100644 --- a/ArkUI/entry/src/main/ets/pages/GetHorizontalAndVerticalScreenStatusWindowRotation.ets +++ b/ArkUI/entry/src/main/ets/pages/GetHorizontalAndVerticalScreenStatusWindowRotation.ets @@ -49,5 +49,6 @@ struct windowRotation { } }) }) - }} + } +} // [End get_window_rotation] \ No newline at end of file -- Gitee From 12bf7433206197938c9b41a6ecb5b7fedcb037af Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Wed, 10 Sep 2025 08:15:13 +0000 Subject: [PATCH 06/19] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/pages/G?= =?UTF-8?q?etHorizontalAndVerticalScreenStatusWindowRotation.ets.=20window?= =?UTF-8?q?Rotation=E6=94=B9=E4=B8=BAWindowRotation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- .../GetHorizontalAndVerticalScreenStatusWindowRotation.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArkUI/entry/src/main/ets/pages/GetHorizontalAndVerticalScreenStatusWindowRotation.ets b/ArkUI/entry/src/main/ets/pages/GetHorizontalAndVerticalScreenStatusWindowRotation.ets index a817edae..a1a04bbe 100644 --- a/ArkUI/entry/src/main/ets/pages/GetHorizontalAndVerticalScreenStatusWindowRotation.ets +++ b/ArkUI/entry/src/main/ets/pages/GetHorizontalAndVerticalScreenStatusWindowRotation.ets @@ -22,7 +22,7 @@ import { display, window } from '@kit.ArkUI'; @Entry @Component -struct windowRotation { +struct WindowRotation { build() { Text("Scroll Area") .width("100%") -- Gitee From 291a7acb8ea998b3b87fa3010f778f0d1d9aaa9f Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Wed, 10 Sep 2025 09:00:44 +0000 Subject: [PATCH 07/19] update ArkUI/entry/src/main/ets/pages/ImplementingPageLoading.ets. Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- ArkUI/entry/src/main/ets/pages/ImplementingPageLoading.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArkUI/entry/src/main/ets/pages/ImplementingPageLoading.ets b/ArkUI/entry/src/main/ets/pages/ImplementingPageLoading.ets index 4be3734c..53388acf 100644 --- a/ArkUI/entry/src/main/ets/pages/ImplementingPageLoading.ets +++ b/ArkUI/entry/src/main/ets/pages/ImplementingPageLoading.ets @@ -21,7 +21,7 @@ @Entry @Component struct PageLoading { - @State isLoading: Boolean = true; + @State isLoading: boolean = true; aboutToAppear(): void { // Simulate network request operation, request data from the network 3 seconds later, notify the component, and change the list data -- Gitee From 6d629b2b6372a4bde32352032c13673757cd6453 Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Thu, 11 Sep 2025 01:38:21 +0000 Subject: [PATCH 08/19] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/pages/D?= =?UTF-8?q?ynamicallyControlKeyboardBinding.ets.=201=E3=80=81=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=B3=A8=E9=87=8A=EF=BC=9B2=E3=80=81@Builder=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E9=87=8D=E5=91=BD=E5=90=8D=EF=BC=9AKb=E6=94=B9?= =?UTF-8?q?=E4=B8=BAcustomKeyboardBuilder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- .../src/main/ets/pages/DynamicallyControlKeyboardBinding.ets | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ArkUI/entry/src/main/ets/pages/DynamicallyControlKeyboardBinding.ets b/ArkUI/entry/src/main/ets/pages/DynamicallyControlKeyboardBinding.ets index af565985..8730ac02 100644 --- a/ArkUI/entry/src/main/ets/pages/DynamicallyControlKeyboardBinding.ets +++ b/ArkUI/entry/src/main/ets/pages/DynamicallyControlKeyboardBinding.ets @@ -21,9 +21,10 @@ @Entry @Component struct DynamicControlKeyboard { + // Whether focus is on "key1" TextInput private flag: boolean = true; @Builder - Kb() { + customKeyboardBuilder() { Row() { Text('Customize keyboard') } @@ -42,7 +43,7 @@ struct DynamicControlKeyboard { .defaultFocus(true) TextInput() .key('key2') - .customKeyboard(this.Kb()) + .customKeyboard(this.customKeyboardBuilder()) Button('Switch TextInput') .onClick(() => { if (this.flag) { -- Gitee From 8f91ca2377e1a9e63ee6030e1497905d409ef713 Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Thu, 11 Sep 2025 01:56:24 +0000 Subject: [PATCH 09/19] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/entryab?= =?UTF-8?q?ility/EntryAbilityImmersiveStatusBar.ets.=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E6=8D=95=E8=8E=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- .../ets/entryability/EntryAbilityImmersiveStatusBar.ets | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ArkUI/entry/src/main/ets/entryability/EntryAbilityImmersiveStatusBar.ets b/ArkUI/entry/src/main/ets/entryability/EntryAbilityImmersiveStatusBar.ets index dac00268..751f879c 100644 --- a/ArkUI/entry/src/main/ets/entryability/EntryAbilityImmersiveStatusBar.ets +++ b/ArkUI/entry/src/main/ets/entryability/EntryAbilityImmersiveStatusBar.ets @@ -40,11 +40,15 @@ export default class EntryAbility extends UIAbility { let names = []; windowClass.setWindowSystemBarEnable(names).then(() => { console.info('Succeeded in setting the system bar to be visible.'); + }).catch((err: BusinessError) => { + console.error('Failed to setting the system bar to be visible. Cause: ' + JSON.stringify(err)); }); // 2.Realize immersive effects. Method 2: Set the window to a full screen layout, and coordinate with the transparency, background/text color, and highlighted icons of the navigation bar and status bar to maintain consistency with the main window display. let isLayoutFullScreen = true; windowClass.setWindowLayoutFullScreen(isLayoutFullScreen).then(() => { console.info('Succeeded in setting the window layout to full-screen mode.'); + }).catch((err: BusinessError) => { + console.error('Failed to setting the window layout. Cause: ' + JSON.stringify(err)); }); let sysBarProps: window.SystemBarProperties = { statusBarColor: '#ff00ff', @@ -55,6 +59,8 @@ export default class EntryAbility extends UIAbility { }; windowClass.setWindowSystemBarProperties(sysBarProps).then(() => { console.info('Succeeded in setting the system bar properties.'); + }).catch((err: BusinessError) => { + console.error('Failed to setting the system bar properties. Cause: ' + JSON.stringify(err)); }); }) // 3.Load the corresponding target page for the immersive window. -- Gitee From d504b050830991f3c7ed23a6a6645cf6b525e61a Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Thu, 11 Sep 2025 02:58:52 +0000 Subject: [PATCH 10/19] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/entryab?= =?UTF-8?q?ility/EntryAbilityFocusUnresponsive.ets.=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- .../src/main/ets/entryability/EntryAbilityFocusUnresponsive.ets | 1 + 1 file changed, 1 insertion(+) diff --git a/ArkUI/entry/src/main/ets/entryability/EntryAbilityFocusUnresponsive.ets b/ArkUI/entry/src/main/ets/entryability/EntryAbilityFocusUnresponsive.ets index a02544de..1f772599 100644 --- a/ArkUI/entry/src/main/ets/entryability/EntryAbilityFocusUnresponsive.ets +++ b/ArkUI/entry/src/main/ets/entryability/EntryAbilityFocusUnresponsive.ets @@ -43,6 +43,7 @@ export default class EntryAbility extends UIAbility { windowClass = data; windowClass.setUIContent('pages/Index'); let enabled = true; + // Enable response to back gesture event let promise = windowClass.setDialogBackGestureEnabled(enabled); promise.then(() => { console.info('Succeeded in setting dialog window to respond back gesture.'); -- Gitee From 576ae9d0a19adf5f5e061e7acaf18e6407d76c11 Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Thu, 11 Sep 2025 03:24:27 +0000 Subject: [PATCH 11/19] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/entryab?= =?UTF-8?q?ility/EntryAbilityForHideBar.ets.=20=E8=B0=83=E6=95=B4=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=9D=97=E7=BB=93=E6=9D=9F=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- .../entry/src/main/ets/entryability/EntryAbilityForHideBar.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArkUI/entry/src/main/ets/entryability/EntryAbilityForHideBar.ets b/ArkUI/entry/src/main/ets/entryability/EntryAbilityForHideBar.ets index bfbbad96..2c3bb77e 100644 --- a/ArkUI/entry/src/main/ets/entryability/EntryAbilityForHideBar.ets +++ b/ArkUI/entry/src/main/ets/entryability/EntryAbilityForHideBar.ets @@ -32,8 +32,8 @@ export default class EntryAbility extends UIAbility { hilog.info(DOMAIN, 'testTag', 'Succeeded in loading the content.'); const context = windowStage.getMainWindowSync().getUIContext(); AppStorage.setOrCreate("context", context); - // [EndExclude hide_bar] }); + // [EndExclude hide_bar] } // [End hide_bar] -- Gitee From 3b68d2519c88952a0d6d835b68b6b91273f4290c Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Thu, 11 Sep 2025 03:30:00 +0000 Subject: [PATCH 12/19] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/pages/D?= =?UTF-8?q?oesWidthSupportSettingVariables.ets.=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- .../src/main/ets/pages/DoesWidthSupportSettingVariables.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArkUI/entry/src/main/ets/pages/DoesWidthSupportSettingVariables.ets b/ArkUI/entry/src/main/ets/pages/DoesWidthSupportSettingVariables.ets index 0c6bad08..aa5167c7 100644 --- a/ArkUI/entry/src/main/ets/pages/DoesWidthSupportSettingVariables.ets +++ b/ArkUI/entry/src/main/ets/pages/DoesWidthSupportSettingVariables.ets @@ -22,7 +22,7 @@ @Component struct Page1 { @State message: string = 'Hello'; - @State widNum: number = 300; + @State widthNum: number = 300; build() { Row() { @@ -30,7 +30,7 @@ struct Page1 { Text(this.message) .fontSize(50) .fontWeight(FontWeight.Bold) - .width(this.widNum) + .width(this.widthNum) .backgroundColor(Color.Blue) } .width('100%') -- Gitee From 6bb96ea03666f87ebc1f550b44985f71b8615c48 Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Thu, 11 Sep 2025 03:34:47 +0000 Subject: [PATCH 13/19] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/entryab?= =?UTF-8?q?ility/EntryAbilityForWindow.ets.=20=E4=BB=A3=E7=A0=81=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- .../src/main/ets/entryability/EntryAbilityForWindow.ets | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ArkUI/entry/src/main/ets/entryability/EntryAbilityForWindow.ets b/ArkUI/entry/src/main/ets/entryability/EntryAbilityForWindow.ets index a8684cfc..942ef89a 100644 --- a/ArkUI/entry/src/main/ets/entryability/EntryAbilityForWindow.ets +++ b/ArkUI/entry/src/main/ets/entryability/EntryAbilityForWindow.ets @@ -40,7 +40,7 @@ export default class EntryAbility extends UIAbility { let windowClass: window.Window | undefined = undefined; try { let promise = window.getLastWindow(this.context); - promise.then((data)=> { + promise.then((data) => { //Get window object windowClass = data; try { @@ -52,9 +52,10 @@ export default class EntryAbility extends UIAbility { console.error('Failed to obtain the window properties. Cause: ' + JSON.stringify(exception)); } console.info('Succeeded in obtaining the top window. Data: ' + JSON.stringify(data)); - }).catch((err: BusinessError)=>{ + }).catch((err: BusinessError) => { console.error('Failed to obtain the top window. Cause: ' + JSON.stringify(err)); - });} catch (exception) { + }); + } catch (exception) { console.error('Failed to obtain the top window. Cause: ' + JSON.stringify(exception)); } // [End entry_ability_for_window] -- Gitee From f4374f30b1c9ab147ec769eeeeb4e119d6d844a9 Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Thu, 11 Sep 2025 06:31:10 +0000 Subject: [PATCH 14/19] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/pages/S?= =?UTF-8?q?imilarKeyFramesEffect.ets.=20=E4=BB=A3=E7=A0=81=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- ArkUI/entry/src/main/ets/pages/SimilarKeyFramesEffect.ets | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArkUI/entry/src/main/ets/pages/SimilarKeyFramesEffect.ets b/ArkUI/entry/src/main/ets/pages/SimilarKeyFramesEffect.ets index 754c76bd..c1a2affe 100644 --- a/ArkUI/entry/src/main/ets/pages/SimilarKeyFramesEffect.ets +++ b/ArkUI/entry/src/main/ets/pages/SimilarKeyFramesEffect.ets @@ -36,6 +36,7 @@ struct AnimateToExample { .opacity(this.opacityValue) .onClick(() => { if (this.flag) { + // Implement multi-stage animations by animateTo this.getUIContext().animateTo({ duration: 2000, curve: Curve.EaseOut, @@ -50,10 +51,12 @@ struct AnimateToExample { onFinish: () => { } }, () => { + // Second stage, opacityValue becomes 0.2 this.opacityValue = 0.2; }) } }, () => { + // First stage, opacityValue becomes 0.5 this.opacityValue = 0.5; }) } -- Gitee From 0759e0723b2f8fc2bb22cbb777fc893cccb0fb7d Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Thu, 11 Sep 2025 06:42:11 +0000 Subject: [PATCH 15/19] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/pages/R?= =?UTF-8?q?ealizeTransparentTransmissionOfEvents.ets.=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- .../ets/pages/RealizeTransparentTransmissionOfEvents.ets | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ArkUI/entry/src/main/ets/pages/RealizeTransparentTransmissionOfEvents.ets b/ArkUI/entry/src/main/ets/pages/RealizeTransparentTransmissionOfEvents.ets index d23e9c22..12020135 100644 --- a/ArkUI/entry/src/main/ets/pages/RealizeTransparentTransmissionOfEvents.ets +++ b/ArkUI/entry/src/main/ets/pages/RealizeTransparentTransmissionOfEvents.ets @@ -40,7 +40,10 @@ struct StackExample { .onClick(() => { console.log('1111122222') }) - }.width('100%').height(150).margin({ top: 5 }) + } + .width('100%') + .height(150) + .margin({ top: 5 }) } } // [End realize_transparent_transmission_of_events] \ No newline at end of file -- Gitee From f6c1c663454fcbd1bbcf10fce23a254fbd7c7fa2 Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Thu, 11 Sep 2025 06:46:49 +0000 Subject: [PATCH 16/19] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/pages/R?= =?UTF-8?q?ealizeTransparentTransmissionOfEvents.ets.=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E8=BE=93=E5=87=BA=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- .../main/ets/pages/RealizeTransparentTransmissionOfEvents.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArkUI/entry/src/main/ets/pages/RealizeTransparentTransmissionOfEvents.ets b/ArkUI/entry/src/main/ets/pages/RealizeTransparentTransmissionOfEvents.ets index 12020135..d2210dfa 100644 --- a/ArkUI/entry/src/main/ets/pages/RealizeTransparentTransmissionOfEvents.ets +++ b/ArkUI/entry/src/main/ets/pages/RealizeTransparentTransmissionOfEvents.ets @@ -29,7 +29,7 @@ struct StackExample { .backgroundColor(0xd2cab3) .align(Alignment.Top) .onClick(() => { - console.log('11111') + console.log('TextA click') }) Text('B') .width('70%') @@ -38,7 +38,7 @@ struct StackExample { .align(Alignment.Top) .hitTestBehavior(HitTestMode.None) .onClick(() => { - console.log('1111122222') + console.log('TextB click') }) } .width('100%') -- Gitee From 090df827b7aa71633c45e08c64edf45ee85ef95d Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Thu, 11 Sep 2025 06:57:22 +0000 Subject: [PATCH 17/19] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/pages/W?= =?UTF-8?q?idthNotExceedingTheParentComponent.ets.=20=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E5=A4=9A=E4=BD=99=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- .../src/main/ets/pages/WidthNotExceedingTheParentComponent.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArkUI/entry/src/main/ets/pages/WidthNotExceedingTheParentComponent.ets b/ArkUI/entry/src/main/ets/pages/WidthNotExceedingTheParentComponent.ets index b9492467..a297ad29 100644 --- a/ArkUI/entry/src/main/ets/pages/WidthNotExceedingTheParentComponent.ets +++ b/ArkUI/entry/src/main/ets/pages/WidthNotExceedingTheParentComponent.ets @@ -30,7 +30,7 @@ struct SizeExample { .fontWeight(FontWeight.Bold) .backgroundColor(0xFFFAF0) .textAlign(TextAlign.Center) - .margin( 10) + .margin(10) .size({ width: this.flag ? 60 : 80 }) .onClick(()=>{ this.flag = !this.flag -- Gitee From 668fe7eeb5108e294ad5a17cc8002b2f11db63ca Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Thu, 11 Sep 2025 06:57:57 +0000 Subject: [PATCH 18/19] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/pages/W?= =?UTF-8?q?idthNotExceedingTheParentComponent.ets.=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- .../main/ets/pages/WidthNotExceedingTheParentComponent.ets | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ArkUI/entry/src/main/ets/pages/WidthNotExceedingTheParentComponent.ets b/ArkUI/entry/src/main/ets/pages/WidthNotExceedingTheParentComponent.ets index a297ad29..208dfed2 100644 --- a/ArkUI/entry/src/main/ets/pages/WidthNotExceedingTheParentComponent.ets +++ b/ArkUI/entry/src/main/ets/pages/WidthNotExceedingTheParentComponent.ets @@ -40,7 +40,9 @@ struct SizeExample { .fontWeight(FontWeight.Bold) .backgroundColor(0xFFFAF0) .size({width: this.flag ? 'calc(100% - 60vp)' : 'calc(100% - 80vp)'}) - }.width(500).margin({ top: 5 }) + } + .width(500) + .margin({ top: 5 }) } } // [End width_not_exceeding_the_parent_component] \ No newline at end of file -- Gitee From bb4aa1d5c51cfef7eb4a17b872233bdb9cf3adbb Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Thu, 11 Sep 2025 07:39:28 +0000 Subject: [PATCH 19/19] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/pages/L?= =?UTF-8?q?istItemPlaceholderAnimation.ets.=20String[]=E6=94=B9=E4=B8=BAst?= =?UTF-8?q?ring[]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- ArkUI/entry/src/main/ets/pages/ListItemPlaceholderAnimation.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArkUI/entry/src/main/ets/pages/ListItemPlaceholderAnimation.ets b/ArkUI/entry/src/main/ets/pages/ListItemPlaceholderAnimation.ets index 21225259..ca9f4dfa 100644 --- a/ArkUI/entry/src/main/ets/pages/ListItemPlaceholderAnimation.ets +++ b/ArkUI/entry/src/main/ets/pages/ListItemPlaceholderAnimation.ets @@ -21,7 +21,7 @@ @Entry @Component struct GridExample { - @State numbers: String[] = []; + @State numbers: string[] = []; scroller: Scroller = new Scroller(); @State text: string = 'drag'; -- Gitee