From 45f90bd7a08a81f9e32f5e0c0155c71ef9f7cd86 Mon Sep 17 00:00:00 2001 From: adslk Date: Fri, 15 Oct 2021 17:29:51 +0800 Subject: [PATCH 1/2] Clean up the alarm Signed-off-by: adslk --- .../layout/animator_frame_slice_layout.xml | 4 +- .../layout/animator_group_slice_layout.xml | 9 ++- .../layout/animator_property_slice_layout.xml | 16 ++-- .../layout/animator_value_slice_layout.xml | 24 +++--- .../base/layout/main_ability_slice.xml | 12 ++- .../layout/dependentlayout_ability_slice.xml | 17 ++-- .../directionalLayout_ability_slice.xml | 42 +++++----- .../base/layout/main_ability_slice.xml | 6 +- .../base/layout/button_example_slice.xml | 20 ++--- .../base/layout/button_main_ability.xml | 31 ++++--- .../base/layout/main_ability_slice.xml | 6 +- .../base/layout/text_example_slice.xml | 24 +++--- .../base/layout/text_main_ability.xml | 28 ++++--- .../samples/customlayout/MyApplication.java | 30 ------- .../customlayout/component/CustomLayout.java | 4 +- .../src/main/js/default/pages/index/index.hml | 2 +- .../src/main/js/default/pages/index/index.hml | 24 +++--- .../src/main/js/default/pages/index/index.js | 1 + .../cardtargetpage/cardtargetpage.css | 2 +- .../cardtargetpage/cardtargetpage.hml | 2 +- .../src/main/js/default/common/css/common.css | 6 -- .../src/main/js/default/pages/index/index.js | 8 +- .../ohos/samples/jsfacard/ClockAbility.java | 4 +- .../ohos/samples/jsfacard/MainAbility.java | 2 +- .../ohos/samples/jsfacard/TimerAbility.java | 2 +- .../jsfacard/slice/ClockAbilitySlice.java | 6 +- .../samples/jsfacard/utils/DateUtils.java | 3 +- .../src/main/js/default/pages/index/index.hml | 1 - UI/JsList/build.gradle | 11 +++ UI/JsList/settings.gradle | 1 + .../pages/homePage/microAmoy/microAmoy.hml | 2 +- .../main/resources/base/layout/list_item.xml | 3 +- .../samples/multimodeinput/MyApplication.java | 30 ------- .../base/layout/first_main_ability_slice.xml | 8 +- .../base/layout/key_main_ability_slice.xml | 8 +- .../base/layout/main_ability_slice.xml | 32 ++++---- .../base/layout/mouse_ability_slice.xml | 8 +- .../base/layout/second_main_ability_slice.xml | 8 +- .../multimodalevent/MyApplication.java | 30 ------- .../layout/common_event_ability_slice.xml | 8 +- .../base/layout/main_ability_slice.xml | 48 +++++------ .../base/layout/tel_event_ability_slice.xml | 20 ++--- .../base/layout/touch_event_ability_slice.xml | 8 +- .../resources/base/layout/position_layout.xml | 43 ++++++---- .../ohos/samples/progress/utils/LogUtil.java | 29 ------- .../base/layout/main_ability_slice.xml | 34 ++++---- .../main/resources/base/element/string.json | 4 +- UI/UiComponents/entry/package.json | 1 - .../samples/uicomponents/utils/LogUtil.java | 10 --- UI/UserRegistration/entry/package.json | 1 - .../main/js/default/pages/success/success.js | 1 - .../src/main/js/default/pages/index/index.hml | 6 +- .../js/default/common/RemoteDeviceModel.js | 8 +- .../src/main/js/default/pages/calc/calc.js | 2 +- .../src/main/js/default/pages/index/index.js | 2 +- .../samples/downloadsample/MainAbility.java | 3 +- .../slice/DownloadStateSlice.java | 4 +- .../slice/MainAbilitySlice.java | 4 +- .../samples/downloadsample/utils/LogUtil.java | 22 ----- .../main/resources/base/element/string.json | 80 +++++++++++++++++++ .../base/layout/download_config_slice.xml | 80 +++++++++---------- .../base/layout/download_operation_slice.xml | 24 +++--- .../base/layout/download_state_slice.xml | 66 +++++++-------- .../base/layout/main_ability_slice.xml | 18 ++--- .../src/main/js/default/pages/index/index.js | 2 + .../helloworld/slice/MainAbilitySlice.java | 2 - .../base/layout/main_ability_slice.xml | 4 +- .../timerpluginutils/CountDownTimer.java | 14 +--- .../timer/timerpluginutils/CountDownUtil.java | 16 ---- .../timer/timerpluginutils/TimerPlugin.java | 5 -- .../main/java/ohos/timer/utils/Constant.java | 5 -- .../base/layout/main_ability_slice.xml | 3 +- 72 files changed, 496 insertions(+), 558 deletions(-) delete mode 100644 UI/CustomLayout/entry/src/main/java/ohos/samples/customlayout/MyApplication.java create mode 100644 UI/JsList/settings.gradle delete mode 100644 UI/MultiModeInput/entry/src/main/java/ohos/samples/multimodeinput/MyApplication.java delete mode 100644 UI/MultimodalEvent/entry/src/main/java/ohos/samples/multimodalevent/MyApplication.java delete mode 100644 UI/UiComponents/entry/package.json delete mode 100644 UI/UserRegistration/entry/package.json diff --git a/UI/Animation/entry/src/main/resources/base/layout/animator_frame_slice_layout.xml b/UI/Animation/entry/src/main/resources/base/layout/animator_frame_slice_layout.xml index 7d0b29853a..cf19fd5932 100644 --- a/UI/Animation/entry/src/main/resources/base/layout/animator_frame_slice_layout.xml +++ b/UI/Animation/entry/src/main/resources/base/layout/animator_frame_slice_layout.xml @@ -33,8 +33,8 @@ ohos:width="match_parent" ohos:background_element="$graphic:button_background" ohos:padding="10vp" - ohos:left_margin="24vp" - ohos:right_margin="24vp" + ohos:start_margin="24vp" + ohos:end_margin="24vp" ohos:text="$string:start" ohos:text_size="16vp" ohos:top_margin="20vp"/> diff --git a/UI/Animation/entry/src/main/resources/base/layout/animator_group_slice_layout.xml b/UI/Animation/entry/src/main/resources/base/layout/animator_group_slice_layout.xml index e547182967..7f9209b2f0 100644 --- a/UI/Animation/entry/src/main/resources/base/layout/animator_group_slice_layout.xml +++ b/UI/Animation/entry/src/main/resources/base/layout/animator_group_slice_layout.xml @@ -39,21 +39,24 @@ ohos:height="60vp" ohos:width="60vp" ohos:background_element="#00ffff" - ohos:left_margin="10vp"/> + ohos:start_margin="10vp" + ohos:end_margin="10vp"/> + ohos:start_margin="10vp" + ohos:end_margin="10vp"/> + ohos:start_margin="10vp" + ohos:end_margin="10vp"/> @@ -44,9 +44,9 @@ ohos:height="match_content" ohos:width="match_parent" ohos:background_element="$graphic:button_background" - ohos:left_margin="24vp" + ohos:start_margin="24vp" ohos:padding="10vp" - ohos:right_margin="24vp" + ohos:end_margin="24vp" ohos:text="$string:rotate" ohos:text_size="16fp" ohos:top_margin="30vp"/> @@ -56,9 +56,9 @@ ohos:height="match_content" ohos:width="match_parent" ohos:background_element="$graphic:button_background" - ohos:left_margin="24vp" + ohos:start_margin="24vp" ohos:padding="10vp" - ohos:right_margin="24vp" + ohos:end_margin="24vp" ohos:text="$string:alpha" ohos:text_size="16fp" ohos:top_margin="30vp"/> @@ -68,9 +68,9 @@ ohos:height="match_content" ohos:width="match_parent" ohos:background_element="$graphic:button_background" - ohos:left_margin="24vp" + ohos:start_margin="24vp" ohos:padding="10vp" - ohos:right_margin="24vp" + ohos:end_margin="24vp" ohos:text="$string:translate" ohos:text_size="16fp" ohos:top_margin="30vp"/> diff --git a/UI/Animation/entry/src/main/resources/base/layout/animator_value_slice_layout.xml b/UI/Animation/entry/src/main/resources/base/layout/animator_value_slice_layout.xml index faab0d95bd..8843b06f91 100644 --- a/UI/Animation/entry/src/main/resources/base/layout/animator_value_slice_layout.xml +++ b/UI/Animation/entry/src/main/resources/base/layout/animator_value_slice_layout.xml @@ -31,9 +31,9 @@ ohos:height="match_content" ohos:width="match_parent" ohos:background_element="$graphic:button_background" - ohos:left_margin="24vp" + ohos:start_margin="24vp" ohos:padding="10vp" - ohos:right_margin="24vp" + ohos:end_margin="24vp" ohos:text="$string:spring" ohos:text_size="16vp" ohos:top_margin="30vp"/> @@ -43,9 +43,9 @@ ohos:height="match_content" ohos:width="match_parent" ohos:background_element="$graphic:button_background" - ohos:left_margin="24vp" + ohos:start_margin="24vp" ohos:padding="10vp" - ohos:right_margin="24vp" + ohos:end_margin="24vp" ohos:text="$string:anticipate" ohos:text_size="16vp" ohos:top_margin="30vp"/> @@ -55,9 +55,9 @@ ohos:height="match_content" ohos:width="match_parent" ohos:background_element="$graphic:button_background" - ohos:left_margin="24vp" + ohos:start_margin="24vp" ohos:padding="10vp" - ohos:right_margin="24vp" + ohos:end_margin="24vp" ohos:text="$string:cycle" ohos:text_size="16vp" ohos:top_margin="30vp"/> @@ -67,9 +67,9 @@ ohos:height="match_content" ohos:width="match_parent" ohos:background_element="$graphic:button_background" - ohos:left_margin="24vp" + ohos:start_margin="24vp" ohos:padding="10vp" - ohos:right_margin="24vp" + ohos:end_margin="24vp" ohos:text="$string:Overshoot" ohos:text_size="16vp" ohos:top_margin="30vp"/> @@ -79,9 +79,9 @@ ohos:height="match_content" ohos:width="match_parent" ohos:background_element="$graphic:button_background" - ohos:left_margin="24vp" + ohos:start_margin="24vp" ohos:padding="10vp" - ohos:right_margin="24vp" + ohos:end_margin="24vp" ohos:text="$string:smooth_step" ohos:text_size="16vp" ohos:top_margin="30vp"/> @@ -91,9 +91,9 @@ ohos:height="match_content" ohos:width="match_parent" ohos:background_element="$graphic:button_background" - ohos:left_margin="24vp" + ohos:start_margin="24vp" ohos:padding="10vp" - ohos:right_margin="24vp" + ohos:end_margin="24vp" ohos:text="$string:cubic_hermit" ohos:text_size="16vp" ohos:top_margin="30vp"/> diff --git a/UI/Animation/entry/src/main/resources/base/layout/main_ability_slice.xml b/UI/Animation/entry/src/main/resources/base/layout/main_ability_slice.xml index 57e3430541..a02320e591 100644 --- a/UI/Animation/entry/src/main/resources/base/layout/main_ability_slice.xml +++ b/UI/Animation/entry/src/main/resources/base/layout/main_ability_slice.xml @@ -24,7 +24,8 @@ ohos:height="match_content" ohos:width="match_parent" ohos:element_right="$media:ic_arrow_right" - ohos:left_padding="24vp" + ohos:start_padding="24vp" + ohos:end_padding="24vp" ohos:padding="10vp" ohos:text="$string:animator_framet" ohos:text_alignment="left" @@ -35,7 +36,8 @@ ohos:height="match_content" ohos:width="match_parent" ohos:element_right="$media:ic_arrow_right" - ohos:left_padding="24vp" + ohos:start_padding="24vp" + ohos:end_padding="24vp" ohos:padding="10vp" ohos:text="$string:animator_value" ohos:text_alignment="left" @@ -46,7 +48,8 @@ ohos:height="match_content" ohos:width="match_parent" ohos:element_right="$media:ic_arrow_right" - ohos:left_padding="24vp" + ohos:start_padding="24vp" + ohos:end_padding="24vp" ohos:padding="10vp" ohos:text="$string:animator_property" ohos:text_alignment="left" @@ -57,7 +60,8 @@ ohos:height="match_content" ohos:width="match_parent" ohos:element_right="$media:ic_arrow_right" - ohos:left_padding="24vp" + ohos:start_padding="24vp" + ohos:end_padding="24vp" ohos:padding="10vp" ohos:text="$string:animator_group" ohos:text_alignment="left" diff --git a/UI/CommonLayout/entry/src/main/resources/base/layout/dependentlayout_ability_slice.xml b/UI/CommonLayout/entry/src/main/resources/base/layout/dependentlayout_ability_slice.xml index 487dfc59bd..13aa25e370 100644 --- a/UI/CommonLayout/entry/src/main/resources/base/layout/dependentlayout_ability_slice.xml +++ b/UI/CommonLayout/entry/src/main/resources/base/layout/dependentlayout_ability_slice.xml @@ -25,8 +25,8 @@ ohos:height="match_content" ohos:width="match_parent" ohos:background_element="$graphic:color_gray_element" - ohos:left_margin="15vp" - ohos:right_margin="15vp" + ohos:start_margin="15vp" + ohos:end_margin="15vp" ohos:text="$string:title" ohos:text_alignment="horizontal_center" ohos:text_size="25fp" @@ -41,9 +41,9 @@ ohos:background_element="$graphic:color_gray_element" ohos:below="$id:title_text" ohos:bottom_margin="15vp" - ohos:left_margin="15vp" + ohos:start_margin="15vp" + ohos:end_margin="15vp" ohos:multiple_lines="true" - ohos:right_margin="15vp" ohos:text="$string:catalog" ohos:text_alignment="center" ohos:text_font="$string:serif" @@ -58,7 +58,8 @@ ohos:below="$id:title_text" ohos:bottom_margin="15vp" ohos:end_of="$id:catalog_text" - ohos:right_margin="15vp" + ohos:start_margin="0vp" + ohos:end_margin="15vp" ohos:text="$string:content" ohos:text_alignment="center" ohos:text_font="$string:serif" @@ -74,7 +75,8 @@ ohos:bottom_margin="15vp" ohos:italic="false" ohos:left_of="$id:next_button" - ohos:right_margin="15vp" + ohos:start_margin="0vp" + ohos:end_margin="15vp" ohos:text="$string:previous" ohos:text_font="$string:serif" ohos:text_size="15fp" @@ -89,7 +91,8 @@ ohos:below="$id:content_text" ohos:bottom_margin="15vp" ohos:italic="false" - ohos:right_margin="15vp" + ohos:start_margin="0vp" + ohos:end_margin="15vp" ohos:text="$string:Next" ohos:text_font="$string:serif" ohos:text_size="15fp" diff --git a/UI/CommonLayout/entry/src/main/resources/base/layout/directionalLayout_ability_slice.xml b/UI/CommonLayout/entry/src/main/resources/base/layout/directionalLayout_ability_slice.xml index d839df851f..32f0e998c3 100644 --- a/UI/CommonLayout/entry/src/main/resources/base/layout/directionalLayout_ability_slice.xml +++ b/UI/CommonLayout/entry/src/main/resources/base/layout/directionalLayout_ability_slice.xml @@ -26,8 +26,8 @@ ohos:background_element="#0d000000" ohos:bottom_margin="10vp" ohos:layout_alignment="horizontal_center" - ohos:left_margin="15vp" - ohos:right_margin="15vp" + ohos:start_margin="15vp" + ohos:end_margin="15vp" ohos:text="$string:vertical" ohos:text_size="16fp" ohos:top_margin="10vp"/> @@ -42,7 +42,8 @@ ohos:width="100vp" ohos:background_element="$graphic:color_light_gray_element" ohos:bottom_margin="3vp" - ohos:left_margin="15vp" + ohos:start_margin="15vp" + ohos:end_margin="0vp" ohos:text="$string:btn_1" ohos:text_size="16fp"/> @@ -51,7 +52,8 @@ ohos:width="100vp" ohos:background_element="$graphic:color_light_gray_element" ohos:bottom_margin="3vp" - ohos:left_margin="15vp" + ohos:start_margin="15vp" + ohos:end_margin="0vp" ohos:text="$string:btn_2" ohos:text_size="16fp"/> @@ -60,7 +62,8 @@ ohos:width="100vp" ohos:background_element="$graphic:color_light_gray_element" ohos:bottom_margin="3vp" - ohos:left_margin="15vp" + ohos:start_margin="15vp" + ohos:end_margin="0vp" ohos:text="$string:btn_3" ohos:text_size="16fp"/> @@ -72,8 +75,8 @@ ohos:background_element="#0d000000" ohos:bottom_margin="10vp" ohos:layout_alignment="horizontal_center" - ohos:left_margin="15vp" - ohos:right_margin="15vp" + ohos:start_margin="15vp" + ohos:end_margin="15vp" ohos:text="$string:horizontal" ohos:text_size="16fp" ohos:top_margin="20vp"/> @@ -87,7 +90,8 @@ ohos:height="30vp" ohos:width="100vp" ohos:background_element="$graphic:color_light_gray_element" - ohos:left_margin="15vp" + ohos:start_margin="15vp" + ohos:end_margin="0vp" ohos:text="$string:btn_1" ohos:text_size="16fp"/> @@ -95,7 +99,8 @@ ohos:height="30vp" ohos:width="100vp" ohos:background_element="$graphic:color_light_gray_element" - ohos:left_margin="15vp" + ohos:start_margin="15vp" + ohos:end_margin="0vp" ohos:text="$string:btn_2" ohos:text_size="16fp"/> @@ -103,7 +108,8 @@ ohos:height="30vp" ohos:width="100vp" ohos:background_element="$graphic:color_light_gray_element" - ohos:left_margin="15vp" + ohos:start_margin="15vp" + ohos:end_margin="0vp" ohos:text="$string:btn_3" ohos:text_size="16fp"/> @@ -115,8 +121,8 @@ ohos:background_element="#0d000000" ohos:bottom_margin="10vp" ohos:layout_alignment="horizontal_center" - ohos:left_margin="15vp" - ohos:right_margin="15vp" + ohos:start_margin="15vp" + ohos:end_margin="15vp" ohos:text="$string:alignment" ohos:text_size="16fp" ohos:top_margin="20vp"/> @@ -124,8 +130,8 @@ + ohos:start_margin="15vp" + ohos:end_margin="15vp">