修改训练卡片;增加表盘xml文件
authorCaisking <3449750381@qq.com>
Sat, 30 Mar 2024 09:52:20 +0000 (17:52 +0800)
committerCaisking <3449750381@qq.com>
Sat, 30 Mar 2024 09:52:20 +0000 (17:52 +0800)
14 files changed:
code/sdk/application/wearable/fd230app/nativeui/traing/Training_UiConfig.h
code/sdk/application/wearable/fd230app/nativeui/traing/include/TraingView.h
code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingView.cpp
code/sdk/build/config/target_config/brandy/mk_fs_image/fd230/fs/user/res/Training/modules/More_icon.bin [new file with mode: 0644]
dial_resource_files/Dynamic_cat.xml [new file with mode: 0644]
dial_resource_files/KUMI.xml [new file with mode: 0644]
dial_resource_files/classic.xml [new file with mode: 0644]
dial_resource_files/dial_defult.xml [new file with mode: 0644]
dial_resource_files/dog.xml [new file with mode: 0644]
dial_resource_files/galaxy.xml [new file with mode: 0644]
dial_resource_files/geometry.xml [new file with mode: 0644]
dial_resource_files/jellyfish.xml [new file with mode: 0644]
dial_resource_files/maomao.xml [new file with mode: 0644]
dial_resource_files/panda.xml [new file with mode: 0644]

index 4290b0d..4bf5d9c 100644 (file)
@@ -75,6 +75,7 @@ namespace OHOS
     static constexpr const char *LINE_2_IMAGE = MODULES "/Line_2.bin";
     static constexpr const char *MILEAGE_30_IMAGE = MODULES "/Mileage_30.bin";
     static constexpr const char *MORE_IMAGE = MODULES "/More.bin";
+    static constexpr const char *MORE_ICON_IMAGE = MODULES "/More_icon.bin";
     static constexpr const char *MOREVIEW_IMAGE = MODULES "/MoreView.bin";
     static constexpr const char *NO_IMAGE = MODULES "/No.bin";
     static constexpr const char *NOTE_IMAGE = MODULES "/Note.bin";
index 2d1becd..6029926 100644 (file)
@@ -55,6 +55,7 @@ namespace OHOS
         UIImageView *btn1_image = nullptr;
         UIImageView *btn2_image = nullptr;
         UIImageView *btn3_image = nullptr;
+        UIImageView *btnmore_image = nullptr;
     };
 } // namespace OHOS
 #endif // Traing_PRESENTER_H
index dd97ffb..731dc96 100644 (file)
@@ -42,6 +42,9 @@ namespace OHOS
     static constexpr uint16_t BTN3_IMAGE_X = 129;\r
     static constexpr uint16_t BTN3_IMAGE_Y = 298;\r
 \r
+    static constexpr uint16_t BTNMORE_IMAGE_X = 276;\r
+    static constexpr uint16_t BTNMORE_IMAGE_Y = 324;\r
+\r
     static TraingView *g_pTraingView{nullptr};\r
     static QuickTraining *data = new QuickTraining;\r
 \r
@@ -78,6 +81,7 @@ namespace OHOS
         TraingModel::GetInstance()->InitLabel(btn1_label, BTN1_LABEL_X, BTN1_LABEL_Y, LABEL_X_SIZE, LABEL_Y_SIZE, "btu1_label", dataStr1, DEFAULT_VECTOR_FONT_FILENAME, LABEL_FONT_SIZE);\r
         TraingModel::GetInstance()->InitLabel(btn2_label, BTN2_LABEL_X, BTN2_LABEL_Y, LABEL_X_SIZE, LABEL_Y_SIZE, "btu2_label", dataStr2, DEFAULT_VECTOR_FONT_FILENAME, LABEL_FONT_SIZE);\r
         TraingModel::GetInstance()->InitLabel(btn3_label, BTN3_LABEL_X, BTN3_LABEL_Y, LABEL_X_SIZE, LABEL_Y_SIZE, "btu3_label", dataStr3, DEFAULT_VECTOR_FONT_FILENAME, LABEL_FONT_SIZE);\r
+        TraingModel::GetInstance()->InitLabel(btnmore_label, BTN2_LABEL_X, BTN3_LABEL_Y, LABEL_X_SIZE, LABEL_Y_SIZE, "btumore_label", "更多", DEFAULT_VECTOR_FONT_FILENAME, LABEL_FONT_SIZE);\r
         return true;\r
     }\r
 \r
@@ -94,12 +98,12 @@ namespace OHOS
         button2_->SetOnClickListener(button2Click);\r
 \r
         TraingModel::GetInstance()->InitButton(button3_, BUTTON3_X, BUTTON3_Y, BUTTON_WIDHT, BUTTON_HEIGHT, BUTTON3);\r
-        button3_->SetImageSrc(BUTTONGROUND2_IMAGE, nullptr);\r
+        button3_->SetImageSrc(BOUTTONGROUND_IMAGE, nullptr);\r
         UIView::OnClickListener *button3Click = static_cast<UIView::OnClickListener *>(TraingPresenter::GetInstance());\r
         button3_->SetOnClickListener(button3Click);\r
 \r
         TraingModel::GetInstance()->InitButton(buttonmore_, BUTTONMORE_X, BUTTONMORE_Y, BUTTON_WIDHT, BUTTON_HEIGHT, BUTTONMORE);\r
-        buttonmore_->SetImageSrc(MORE_IMAGE, nullptr);\r
+        buttonmore_->SetImageSrc(BUTTONGROUND2_IMAGE, nullptr);\r
         UIView::OnClickListener *button4Click = static_cast<UIView::OnClickListener *>(TraingPresenter::GetInstance());\r
         buttonmore_->SetOnClickListener(button4Click);\r
 \r
@@ -121,6 +125,7 @@ namespace OHOS
         TraingModel::GetInstance()->InitImageView(btn1_image, BTN1_IMAGE_X, BTN1_IMAGE_Y, BTN_IMAGE_SIZE, BTN_IMAGE_SIZE, "btn1_image", dataStr1);\r
         TraingModel::GetInstance()->InitImageView(btn2_image, BTN2_IMAGE_X, BTN2_IMAGE_Y, BTN_IMAGE_SIZE, BTN_IMAGE_SIZE, "btn2_image", dataStr2);\r
         TraingModel::GetInstance()->InitImageView(btn3_image, BTN3_IMAGE_X, BTN3_IMAGE_Y, BTN_IMAGE_SIZE, BTN_IMAGE_SIZE, "btn3_image", dataStr3);\r
+        TraingModel::GetInstance()->InitImageView(btnmore_image, BTNMORE_IMAGE_X, BTNMORE_IMAGE_Y, BTN_IMAGE_SIZE, BTN_IMAGE_SIZE, "btnmore_image", MORE_ICON_IMAGE);\r
         return true;\r
     }\r
     void TraingView::InitView()\r
@@ -143,13 +148,17 @@ namespace OHOS
         container_->Add(button2_);\r
         container_->Add(button3_);\r
         container_->Add(buttonmore_);\r
+\r
         container_->Add(title_label);\r
         container_->Add(btn1_label);\r
         container_->Add(btn2_label);\r
         container_->Add(btn3_label);\r
+        container_->Add(btnmore_label);\r
+\r
         container_->Add(btn1_image);\r
         container_->Add(btn2_image);\r
         container_->Add(btn3_image);\r
+        container_->Add(btnmore_image);\r
 \r
         WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "TraingModel::InitView");\r
     }\r
@@ -197,6 +206,11 @@ namespace OHOS
             delete btn3_label;\r
             btn3_label = nullptr;\r
         }\r
+        if (btnmore_label != nullptr)\r
+        {\r
+            delete btnmore_label;\r
+            btnmore_label = nullptr;\r
+        }\r
         if (btn1_image != nullptr)\r
         {\r
             delete btn1_image;\r
@@ -212,6 +226,11 @@ namespace OHOS
             delete btn3_image;\r
             btn3_image = nullptr;\r
         }\r
+        if (btnmore_image != nullptr)\r
+        {\r
+            delete btnmore_image;\r
+            btnmore_image = nullptr;\r
+        }\r
         // 删除容器\r
         if (container_ != nullptr)\r
         {\r
diff --git a/code/sdk/build/config/target_config/brandy/mk_fs_image/fd230/fs/user/res/Training/modules/More_icon.bin b/code/sdk/build/config/target_config/brandy/mk_fs_image/fd230/fs/user/res/Training/modules/More_icon.bin
new file mode 100644 (file)
index 0000000..e98798a
Binary files /dev/null and b/code/sdk/build/config/target_config/brandy/mk_fs_image/fd230/fs/user/res/Training/modules/More_icon.bin differ
diff --git a/dial_resource_files/Dynamic_cat.xml b/dial_resource_files/Dynamic_cat.xml
new file mode 100644 (file)
index 0000000..cd608b4
--- /dev/null
@@ -0,0 +1,36 @@
+<dial title="Dynamic_cat" description="Dynamic_cat clock" size="466 466" version="1.0"\r
+    preview_img="./dial_Dynamic_cat/Dynamic_cat.png">\r
+    <sequence_img\r
+        img_names="./dial_Dynamic_cat/background/1.png,./dial_Dynamic_cat/background/6.png,./dial_Dynamic_cat/background/11.png,./dial_Dynamic_cat/background/16.png,./dial_Dynamic_cat/background/21.png,./dial_Dynamic_cat/background/26.png,./dial_Dynamic_cat/background/31.png,./dial_Dynamic_cat/background/36.png,./dial_Dynamic_cat/background/41.png,./dial_Dynamic_cat/background/46.png,./dial_Dynamic_cat/background/51.png,./dial_Dynamic_cat/background/56.png,./dial_Dynamic_cat/background/61.png,./dial_Dynamic_cat/background/66.png,./dial_Dynamic_cat/background/71.png,./dial_Dynamic_cat/background/76.png,./dial_Dynamic_cat/background/81.png,./dial_Dynamic_cat/background/86.png,./dial_Dynamic_cat/background/91.png,./dial_Dynamic_cat/background/96.png,./dial_Dynamic_cat/background/101.png,./dial_Dynamic_cat/background/106.png,./dial_Dynamic_cat/background/111.png,./dial_Dynamic_cat/background/116.png,./dial_Dynamic_cat/background/121.png,./dial_Dynamic_cat/background/126.png,./dial_Dynamic_cat/background/131.png,./dial_Dynamic_cat/background/136.png,./dial_Dynamic_cat/background/141.png,./dial_Dynamic_cat/background/146.png,./dial_Dynamic_cat/background/151.png,./dial_Dynamic_cat/background/156.png,./dial_Dynamic_cat/background/161.png,./dial_Dynamic_cat/background/166.png,./dial_Dynamic_cat/background/171.png,./dial_Dynamic_cat/background/176.png,./dial_Dynamic_cat/background/181.png,./dial_Dynamic_cat/background/186.png,./dial_Dynamic_cat/background/191.png,./dial_Dynamic_cat/background/196.png,./dial_Dynamic_cat/background/201.png"\r
+        position="0 140" repeat="true" interval="100"></sequence_img>\r
+    <label id="month_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="142 390 60 30" text="%2.0f月" font_size="26" align="center"\r
+        bind_data="18" period="10"></label>\r
+    <label id="day_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf" break_mode="adapt"\r
+        rect="185 390 60 30" text="%2.0f号" font_size="26" align="center" bind_data="16" period="10"></label>\r
+    <option_img position="262 390"\r
+        img_names="./dial_Dynamic_cat/week/7.png,./dial_Dynamic_cat/week/1.png,./dial_Dynamic_cat/week/2.png,./dial_Dynamic_cat/week/3.png,./dial_Dynamic_cat/week/4.png,./dial_Dynamic_cat/week/5.png,./dial_Dynamic_cat/week/6.png"\r
+        bind_data="17" period="10"></option_img>\r
+    <!-- <label id="week_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf" -->\r
+    <!-- break_mode="adapt" rect="262 390 60 30" text="星期%2.0f" font_size="26" align="center" -->\r
+    <!-- bind_data="17" period="10"></label> -->\r
+    <box_progress id="battery_progress" rect="180 43 31 19"\r
+        gradient_colors="0xFFFF0000 0xFF00FF00 0xFF0000FF" gradient_stops="0.0 0.67 1.0"\r
+        cap_type="none" direction="left_to_right" background_color="0x00FFFFFF" bind_data="8"\r
+        period="10"></box_progress>\r
+    <option_img position="174 37"\r
+        img_names="./dial_Dynamic_cat/Battery/Battery.png,./dial_Dynamic_cat/Battery/BatteryCharge.png"\r
+        bind_data="20" period="10"></option_img>\r
+    <label id="battery_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="226 35 200 60" text="%2.0f%%" font_size="26" align="center"\r
+        bind_data="8" period="10"></label>\r
+    <label id="hour_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="101 295 200 60" text="%02.0f" font_size="90" align="center"\r
+        bind_data="15" period="10"></label>\r
+    <label id="minute_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="259 295 200 60" text="%02.0f" font_size="90" align="center"\r
+        bind_data="14" period="10"></label>\r
+    <label id="point_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="ellipsis" rect="208 275 50 120" text=":" font_size="105" align="center"\r
+        bind_data="15" period="10"></label>\r
+</dial>
\ No newline at end of file
diff --git a/dial_resource_files/KUMI.xml b/dial_resource_files/KUMI.xml
new file mode 100644 (file)
index 0000000..b1e3b61
--- /dev/null
@@ -0,0 +1,18 @@
+<dial title="KUMI" description="KUMI clock" size="454 454" version="1.0" preview_img="./dial_KUMI/KUMI.png">\r
+    <static_img id="back_ground" position="0 0" img_name="./dial_KUMI/MAIN_FACE_IMAGE.png"></static_img>\r
+    <!-- <label id="week_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf" break_mode="ellipsis" rect="175 360 200 60" text="%4.0f" font_size="26" align="center" bind_data="19" period="10"></label> -->\r
+    <!-- <label id="dateyear_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf" break_mode="adapt" rect="145 365 150 60" text="%4.0f年" font_size="26" align="center" bind_data="19" period="10"></label> -->\r
+    <!-- <label id="datemonth_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf" break_mode="adapt" rect="227 365 90 30" text="%02.0f月" font_size="26" align="center" bind_data="18" period="10"></label> -->\r
+    <label id="dateday_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf" break_mode="adapt" rect="247 362 90 30" text="%02.0f" font_size="26" align="center" bind_data="16" period="10"></label>\r
+    <option_img position="175 365" img_names="./dial_KUMI/week/SUNDAY_IMAGE_PATH.png,./dial_KUMI/week/MONDAY_IMAGE_PATH.png,./dial_KUMI/week/TUESDAY_IMAGE_PATH.png,./dial_KUMI/week/WEDNESDAY_IMAGE_PATH.png,./dial_KUMI/week/THURSDAY_IMAGE_PATH.png,./dial_KUMI/week/FIRDAY_IMAGE_PATH.png,./dial_KUMI/week/SATURDAY_IMAGE_PATH.png" bind_data="17" period="10"></option_img>\r
+\r
+    <box_progress id="battery_progress" rect="180 43 31 19" img_name="./dial_KUMI/Battery/Battery_Nomoal.png" cap_type="none" direction="left_to_right" background_color="0x00FFFFFF" bind_data="8" period="10"></box_progress>\r
+    <!-- <box_progress id="battery_progress" rect="180 43 31 19" gradient_colors="0xFFFF0000 0xFF00FF00 0xFF0000FF" gradient_stops="0.0 0.67 1.0" cap_type="none" direction="left_to_right" background_color="0x00FFFFFF" bind_data="8" period="10"></box_progress> -->\r
+    <option_img position="174 37" img_names="./dial_KUMI/Battery/Battery.png,./dial_KUMI/Battery/BatteryCharge.png" bind_data="20" period="10"></option_img>\r
+    <label id="battery_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf" break_mode="adapt" rect="226 35 200 60" text="%2.0f%%" font_size="26" align="center" bind_data="8" period="10"></label>\r
+\r
+    <label id="hour_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf" break_mode="adapt" rect="161 293 200 60" text="%02.0f" font_size="55" align="center" bind_data="15" period="10"></label>\r
+    <label id="minute_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf" break_mode="adapt" rect="239 293 200 60" text="%02.0f" font_size="55" align="center" bind_data="14" period="10"></label>\r
+    <label id="point_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf" break_mode="adapt" rect="223 286 200 60" text=":" font_size="60" align="center" bind_data="15" period="10"></label>\r
+\r
+</dial>
\ No newline at end of file
diff --git a/dial_resource_files/classic.xml b/dial_resource_files/classic.xml
new file mode 100644 (file)
index 0000000..7dd842f
--- /dev/null
@@ -0,0 +1,36 @@
+<dial title="classic" description="classic clock" size="454 454" version="1.0"\r
+    preview_img="./dial_classic/classic.png">\r
+    <static_img id="back_ground" position="0 0" img_name="./dial_classic/MAIN_FACE_IMAGE.png"></static_img>\r
+    <option_img position="207 400"\r
+        img_names="./dial_classic/week/SUNDAY_IMAGE_PATH.png,./dial_classic/week/MONDAY_IMAGE_PATH.png,./dial_classic/week/TUESDAY_IMAGE_PATH.png,./dial_classic/week/WEDNESDAY_IMAGE_PATH.png,./dial_classic/week/THURSDAY_IMAGE_PATH.png,./dial_classic/week/FIRDAY_IMAGE_PATH.png,./dial_classic/week/SATURDAY_IMAGE_PATH.png"\r
+        bind_data="17" period="10"></option_img>\r
+\r
+    <label id="dateyear_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="136 365 100 30" text="%4.0f年" font_size="26" align="center"\r
+        bind_data="19" period="10"></label>\r
+    <label id="datemonth_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="215 365 60 30" text="%2.0f月" font_size="26" align="center"\r
+        bind_data="18" period="10"></label>\r
+    <label id="dateday_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="260 365 60 30" text="%2.0f日" font_size="26" align="center"\r
+        bind_data="16" period="10"></label>\r
+\r
+    <box_progress id="battery_progress" rect="180 69 31 19"\r
+        gradient_colors="0xFFFF0000 0xFF00FF00 0xFF0000FF" gradient_stops="0.0 0.67 1.0"\r
+        cap_type="none" direction="left_to_right" background_color="0x00FFFFFF" bind_data="8"\r
+        period="10"></box_progress>\r
+    <option_img position="174 62"\r
+        img_names="./dial_classic/Battery/Battery.png,./dial_classic/Battery/BatteryCharge.png"\r
+        bind_data="20" period="10"></option_img>\r
+    <label id="battery_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="226 60 200 62" text="%2.0f%%" font_size="26" align="center"\r
+        bind_data="8" period="10"></label>\r
+\r
+    <rotate_img id="hour" position="221 87" rotate_center="12.0 146.0" rotate_start="0"\r
+        rotate_end="360" img_name="./dial_classic/HOURHAND.png" bind_data="9" period="10"></rotate_img>\r
+    <rotate_img id="minute" position="221 33" rotate_center="12.0 200.0" rotate_start="0"\r
+        rotate_end="360" img_name="./dial_classic/MINUTEHAND.png" bind_data="10" period="10"></rotate_img>\r
+    <rotate_img id="second" position="221 28" rotate_center="12.0 205.0" rotate_start="0"\r
+        rotate_end="360" img_name="./dial_classic/SECONDHAND.png" bind_data="12" period="60"></rotate_img>\r
+\r
+</dial>
\ No newline at end of file
diff --git a/dial_resource_files/dial_defult.xml b/dial_resource_files/dial_defult.xml
new file mode 100644 (file)
index 0000000..3f2a349
--- /dev/null
@@ -0,0 +1,16 @@
+<dial title="clock" description="main clock" size="454 454" version="1.0" preview_img="./dial_clock/clock01.JPG">\r
+    <static_img id="back_ground" position="0 0" img_name="./dial_clock/MAIN_FACE_IMAGE.png"></static_img>\r
+    <option_img position="207 127" img_names="./dial_clock/week/MONDAY_IMAGE_PATH.png,./dial_clock/week/TUESDAY_IMAGE_PATH.png,./dial_clock/week/WEDNESDAY_IMAGE_PATH.png,./dial_clock/week/THURSDAY_IMAGE_PATH.png,./dial_clock/week/FIRDAY_IMAGE_PATH.png,./dial_clock/week/SATURDAY_IMAGE_PATH.png,./dial_clock/week/SUNDAY_IMAGE_PATH.png" bind_data="17" period="10"></option_img>\r
+    <label id="step_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf" break_mode="ellipsis" rect="100 230 75 35" text="%5.0f" font_size="25" align="center" bind_data="1" period="10"></label>\r
+    <static_img id="heart_rate" position="156 260" img_name="./dial_clock/HEARTRATE_IMAGE_PATH.png"></static_img>\r
+    <label id="heart_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf" break_mode="ellipsis" rect="198 330 60 35" text="%3.0f" font_size="25" align="center" bind_data="2" period="10"></label>\r
+    <static_img id="progress" position="53 54" img_name="./dial_clock/PROGRESS_IMAGE_PATH.png"></static_img>\r
+    <label id="battery_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf" break_mode="ellipsis" rect="315 230 60 35" text="%2.0f%%" font_size="25" align="center" bind_data="8" period="10"></label>\r
+    <rotate_img id="hour" position="202 16" rotate_center="25.0 211.0" rotate_start="0" rotate_end="360" img_name="./dial_clock/HOURHAND.png" bind_data="9" period="10"></rotate_img>\r
+    <static_img id="hour_circle" position="202 202" img_name="./dial_clock/BIGCIRCLE_IMAGE_PATH.png"></static_img>\r
+    <rotate_img id="minute" position="202 16" rotate_center="25.0 211.0" rotate_start="0" rotate_end="360" img_name="./dial_clock/MINUTEHAND.png" bind_data="10" period="10"></rotate_img>\r
+    <static_img id="minute_circle" position="202 202" img_name="./dial_clock/MEDCIRCLE_IMAGE_PATH.png"></static_img>\r
+    <rotate_img id="second" position="202 16" rotate_center="25.0 211.0" rotate_start="0" rotate_end="360" img_name="./dial_clock/SECONDHAND.png" bind_data="12" period="60"></rotate_img>\r
+    <static_img id="second_circle" position="215 213" img_name="./dial_clock/SMALLCIRCLE_IMAGE_PATH.png"></static_img>\r
+    <click rect="133 133 200 200" action_slice="4" ></click>\r
+</dial>
\ No newline at end of file
diff --git a/dial_resource_files/dog.xml b/dial_resource_files/dog.xml
new file mode 100644 (file)
index 0000000..563a0ff
--- /dev/null
@@ -0,0 +1,28 @@
+<dial title="dog" description="dog clock" size="454 454" version="1.0"\r
+    preview_img="./dial_dog/dog.png">\r
+    <static_img id="back_ground" position="0 0" img_name="./dial_dog/MAIN_FACE_IMAGE.png"></static_img>\r
+\r
+    <label id="month_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="177 300 60 30" text="%02.0f月" font_size="26" align="center"\r
+        bind_data="18" period="10"></label>\r
+    <label id="day_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf" break_mode="adapt"\r
+        rect="229 300 60 30" text="%02.0f号" font_size="26" align="center" bind_data="16" period="10"></label>\r
+\r
+    <option_img position="209 338"\r
+        img_names="./dial_dog/week/7.png,./dial_dog/week/1.png,./dial_dog/week/2.png,./dial_dog/week/3.png,./dial_dog/week/4.png,./dial_dog/week/5.png,./dial_dog/week/6.png"\r
+        bind_data="17" period="10"></option_img>\r
+\r
+    <label id="battery_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="335 246 200 60" text="%2.0f%%" font_size="28" align="center"\r
+        bind_data="8" period="10"></label>\r
+    <label id="heart_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="68 246 200 60" text="%2.0f%%" font_size="28" align="center"\r
+        bind_data="2" period="10"></label>\r
+    <rotate_img id="hour" position="221 87" rotate_center="12.0 146.0" rotate_start="0"\r
+        rotate_end="360" img_name="./dial_dog/HOURHAND.png" bind_data="9" period="10"></rotate_img>\r
+    <rotate_img id="minute" position="221 33" rotate_center="12.0 200.0" rotate_start="0"\r
+        rotate_end="360" img_name="./dial_dog/MINUTEHAND.png" bind_data="10" period="10"></rotate_img>\r
+    <rotate_img id="second" position="221 28" rotate_center="12.0 205.0" rotate_start="0"\r
+        rotate_end="360" img_name="./dial_dog/SECONDHAND.png" bind_data="12" period="60"></rotate_img>\r
+\r
+</dial>
\ No newline at end of file
diff --git a/dial_resource_files/galaxy.xml b/dial_resource_files/galaxy.xml
new file mode 100644 (file)
index 0000000..d7d3257
--- /dev/null
@@ -0,0 +1,48 @@
+<dial title="galaxy" description="galaxy clock" size="454 454" version="1.0"\r
+    preview_img="./dial_galaxy/galaxy.png">\r
+    <static_img id="back_ground" position="0 0" img_name="./dial_galaxy/MAIN_FACE_IMAGE.png"></static_img>\r
+\r
+    <label id="month_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="128 114 60 30" text="%02.0f月" font_size="26" align="center"\r
+        bind_data="18" period="10"></label>\r
+    <label id="day_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf" break_mode="adapt"\r
+        rect="180 114 60 30" text="%02.0f号" font_size="26" align="center" bind_data="16" period="10"></label>\r
+    <option_img position="250 114"\r
+        img_names="./dial_galaxy/week/7.png,./dial_galaxy/week/1.png,./dial_galaxy/week/2.png,./dial_galaxy/week/3.png,./dial_galaxy/week/4.png,./dial_galaxy/week/5.png,./dial_galaxy/week/6.png"\r
+        bind_data="17" period="10"></option_img>\r
+    <!-- <label id="week_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+    break_mode="adapt" rect="250 114 60 30" text="星期%2.0f" font_size="26" align="center"\r
+    bind_data="17" period="10"></label> -->\r
+\r
+    <label id="spo2_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="100 361 200 60" text="%3.0f%%" font_size="26" align="center"\r
+        bind_data="22" period="10"></label>\r
+    <label id="step_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="197 361 200 60" text="%5.0f" font_size="26" align="center"\r
+        bind_data="1" period="10"></label>\r
+    <label id="heart_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="316 361 200 60" text="%3.0f" font_size="26" align="center"\r
+        bind_data="2" period="10"></label>\r
+\r
+    <box_progress id="battery_progress" rect="180 56 31 19"\r
+        gradient_colors="0xFFFF0000 0xFF00FF00 0xFF0000FF" gradient_stops="0.0 0.67 1.0"\r
+        cap_type="none" direction="left_to_right" background_color="0x00FFFFFF" bind_data="8"\r
+        period="10"></box_progress>\r
+    <option_img position="174 49"\r
+        img_names="./dial_galaxy/Battery/Battery.png,./dial_galaxy/Battery/BatteryCharge.png"\r
+        bind_data="20" period="10"></option_img>\r
+    <label id="battery_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="226 49 200 60" text="%2.0f%%" font_size="26" align="center"\r
+        bind_data="8" period="10"></label>\r
+\r
+    <label id="hour_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="59 160 77 104" text="%02.0f" font_size="120" align="center"\r
+        bind_data="15" period="10"></label>\r
+    <label id="point_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="216 150 28 139" text=":" font_size="120" align="center"></label>\r
+    <label id="minute_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="253 160 77 104" text="%02.0f" font_size="120" align="center"\r
+        bind_data="14" period="10"></label>\r
+\r
+\r
+</dial>
\ No newline at end of file
diff --git a/dial_resource_files/geometry.xml b/dial_resource_files/geometry.xml
new file mode 100644 (file)
index 0000000..902714b
--- /dev/null
@@ -0,0 +1,38 @@
+<dial title="geometry" description="geometry clock" size="466 466" version="1.0"\r
+    preview_img="./dial_geometry/geometry.png">\r
+    <sequence_img\r
+        img_names="./dial_geometry/geometry/1.png,./dial_geometry/geometry/2.png,./dial_geometry/geometry/3.png,./dial_geometry/geometry/4.png,./dial_geometry/geometry/5.png,./dial_geometry/geometry/6.png,./dial_geometry/geometry/7.png,./dial_geometry/geometry/8.png,./dial_geometry/geometry/9.png,./dial_geometry/geometry/10.png,./dial_geometry/geometry/11.png"\r
+        position="138 132" repeat="true" interval="100"></sequence_img>\r
+        \r
+    <label id="month_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="200 365 60 30" text="%2.0f月" font_size="26" align="center"\r
+        bind_data="18" period="10"></label>\r
+    <label id="day_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf" break_mode="adapt"\r
+        rect="245 365 60 30" text="%2.0f号" font_size="26" align="center" bind_data="16" period="10"></label>\r
+\r
+    <option_img position="207 400"\r
+        img_names="./dial_geometry/week/7.png,./dial_geometry/week/1.png,./dial_geometry/week/2.png,./dial_geometry/week/3.png,./dial_geometry/week/4.png,./dial_geometry/week/5.png,./dial_geometry/week/6.png"\r
+        bind_data="17" period="10"></option_img>\r
+    <!-- <label id="week_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf" -->\r
+    <!-- break_mode="adapt" rect="262 390 60 30" text="星期%2.0f" font_size="26" align="center" -->\r
+    <!-- bind_data="17" period="10"></label> -->\r
+\r
+    <box_progress id="battery_progress" rect="180 43 31 19"\r
+        gradient_colors="0xFFFF0000 0xFF00FF00 0xFF0000FF" gradient_stops="0.0 0.67 1.0"\r
+        cap_type="none" direction="left_to_right" background_color="0x00FFFFFF" bind_data="8"\r
+        period="10"></box_progress>\r
+    <option_img position="174 37"\r
+        img_names="./dial_geometry/Battery/Battery.png,./dial_geometry/Battery/BatteryCharge.png"\r
+        bind_data="20" period="10"></option_img>\r
+    <label id="battery_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="226 35 200 60" text="%2.0f%%" font_size="26" align="center"\r
+        bind_data="8" period="10"></label>\r
+\r
+    <label id="hour_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="40 139 200 60" text="%02.0f" font_size="90" align="center"\r
+        bind_data="15" period="10"></label>\r
+\r
+    <label id="minute_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="353 209 200 60" text="%02.0f" font_size="80" align="center"\r
+        bind_data="14" period="10"></label>\r
+</dial>
\ No newline at end of file
diff --git a/dial_resource_files/jellyfish.xml b/dial_resource_files/jellyfish.xml
new file mode 100644 (file)
index 0000000..7895057
--- /dev/null
@@ -0,0 +1,33 @@
+<dial title="jellyfish" description="jellyfish clock" size="466 466" version="1.0"\r
+    preview_img="./dial_jellyfish/jellyfish.png">\r
+    <static_img id="back_ground" position="0 0" img_name="./dial_jellyfish/MAIN_FACE_IMAGE.png"></static_img>\r
+    <label id="month_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="142 390 60 30" text="%2.0f月" font_size="26" align="center"\r
+        bind_data="18" period="10"></label>\r
+    <label id="day_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf" break_mode="adapt"\r
+        rect="185 390 60 30" text="%2.0f号" font_size="26" align="center" bind_data="16" period="10"></label>\r
+    <option_img position="262 390"\r
+        img_names="./dial_jellyfish/week/7.png,./dial_jellyfish/week/1.png,./dial_jellyfish/week/2.png,./dial_jellyfish/week/3.png,./dial_jellyfish/week/4.png,./dial_jellyfish/week/5.png,./dial_jellyfish/week/6.png"\r
+        bind_data="17" period="10"></option_img>\r
+\r
+    <box_progress id="battery_progress" rect="180 56 31 19"\r
+        gradient_colors="0xFFFF0000 0xFF00FF00 0xFF0000FF" gradient_stops="0.0 0.67 1.0"\r
+        cap_type="none" direction="left_to_right" background_color="0x00FFFFFF" bind_data="8"\r
+        period="10"></box_progress>\r
+    <option_img position="174 49"\r
+        img_names="./dial_jellyfish/Battery/Battery.png,./dial_jellyfish/Battery/BatteryCharge.png"\r
+        bind_data="20" period="10"></option_img>\r
+    <label id="battery_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="226 49 200 60" text="%2.0f%%" font_size="26" align="center"\r
+        bind_data="8" period="10"></label>\r
+\r
+    <label id="hour_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="101 295 200 60" text="%02.0f" font_size="90" align="center"\r
+        bind_data="15" period="10"></label>\r
+    <label id="minute_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="259 295 200 60" text="%02.0f" font_size="90" align="center"\r
+        bind_data="14" period="10"></label>\r
+    <label id="point_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="ellipsis" rect="208 275 50 120" text=":" font_size="105" align="center"\r
+        bind_data="15" period="10"></label>\r
+</dial>
\ No newline at end of file
diff --git a/dial_resource_files/maomao.xml b/dial_resource_files/maomao.xml
new file mode 100644 (file)
index 0000000..1d5332a
--- /dev/null
@@ -0,0 +1,33 @@
+<dial title="maomao" description="maomao clock" size="454 454" version="1.0"\r
+    preview_img="./dial_maomao/maomao.png">\r
+    <static_img id="back_ground" position="0 0" img_name="./dial_maomao/MAIN_FACE_IMAGE.png"></static_img>\r
+    <option_img position="207 400"\r
+        img_names="./dial_maomao/week/SUNDAY_IMAGE_PATH.png,./dial_maomao/week/MONDAY_IMAGE_PATH.png,./dial_maomao/week/TUESDAY_IMAGE_PATH.png,./dial_maomao/week/WEDNESDAY_IMAGE_PATH.png,./dial_maomao/week/THURSDAY_IMAGE_PATH.png,./dial_maomao/week/FIRDAY_IMAGE_PATH.png,./dial_maomao/week/SATURDAY_IMAGE_PATH.png"\r
+        bind_data="17" period="10"></option_img>\r
+    <label id="dateyear_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="136 365 100 30" text="%4.0f年" font_size="26" align="center"\r
+        bind_data="19" period="10"></label>\r
+    <label id="datemonth_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="215 365 60 30" text="%2.0f月" font_size="26" align="center"\r
+        bind_data="18" period="10"></label>\r
+    <label id="dateday_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="260 365 60 30" text="%2.0f日" font_size="26" align="center"\r
+        bind_data="16" period="10"></label>\r
+    <label id="battery_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="226 50 200 60" text="%2.0f%%" font_size="26" align="center"\r
+        bind_data="8" period="10"></label>\r
+    <box_progress id="battery_progress" rect="180 58 31 19"\r
+        gradient_colors="0xFFFF0000 0xFF00FF00 0xFF0000FF" gradient_stops="0.0 0.67 1.0"\r
+        cap_type="none" direction="left_to_right" background_color="0x00FFFFFF" bind_data="8"\r
+        period="10"></box_progress>\r
+    <option_img position="174 52"\r
+        img_names="./dial_maomao/Battery/Battery.png,./dial_maomao/Battery/BatteryCharge.png"\r
+        bind_data="20" period="10"></option_img>\r
+    <rotate_img id="hour" position="221 87" rotate_center="12.0 146.0" rotate_start="0"\r
+        rotate_end="360" img_name="./dial_maomao/HOURHAND.png" bind_data="9" period="10"></rotate_img>\r
+    <rotate_img id="minute" position="221 33" rotate_center="12.0 200.0" rotate_start="0"\r
+        rotate_end="360" img_name="./dial_maomao/MINUTEHAND.png" bind_data="10" period="10"></rotate_img>\r
+    <rotate_img id="second" position="221 28" rotate_center="12.0 205.0" rotate_start="0"\r
+        rotate_end="360" img_name="./dial_maomao/SECONDHAND.png" bind_data="12" period="60"></rotate_img>\r
+\r
+</dial>
\ No newline at end of file
diff --git a/dial_resource_files/panda.xml b/dial_resource_files/panda.xml
new file mode 100644 (file)
index 0000000..b249192
--- /dev/null
@@ -0,0 +1,37 @@
+<dial title="panda" description="panda clock" size="466 466" version="1.0"\r
+    preview_img="./dial_panda/panda.png">\r
+    <video rect="0 0 454 454" source="./dial_panda/panda/panda_3.mp4" color_key="0xff202020"></video>\r
+    <label id="month_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="142 390 60 30" text="%2.0f月" font_size="26" align="center"\r
+        bind_data="18" period="10"></label>\r
+    <label id="day_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf" break_mode="adapt"\r
+        rect="179 390 60 30" text="%2.0f号" font_size="26" align="center" bind_data="16" period="10"></label>\r
+\r
+    <!-- <label id="week_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+    break_mode="adapt" rect="262 390 60 30" text="星期%2.0f" font_size="26" align="center"\r
+    bind_data="17" period="10"></label> -->\r
+\r
+    <box_progress id="battery_progress" rect="180 43 31 19"\r
+        gradient_colors="0xFFFF0000 0xFF00FF00 0xFF0000FF" gradient_stops="0.0 0.67 1.0"\r
+        cap_type="none" direction="left_to_right" background_color="0x00FFFFFF" bind_data="8"\r
+        period="10"></box_progress>\r
+    <option_img position="174 37"\r
+        img_names="./dial_panda/Battery/Battery.png,./dial_panda/Battery/BatteryCharge.png"\r
+        bind_data="20" period="10"></option_img>\r
+    <label id="battery_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="226 35 200 60" text="%2.0f%%" font_size="26" align="center"\r
+        bind_data="8" period="10"></label>\r
+    <label id="hour_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="100 300 200 60" text="%02.0f" font_size="90" align="center"\r
+        bind_data="15" period="10"></label>\r
+    <label id="minute_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="adapt" rect="260 306 200 60" text="%02.0f" font_size="90" align="center"\r
+        bind_data="14" period="10"></label>\r
+    <label id="point_label" color="0xFFFFFFFF" font="HarmonyOS_Sans_SC_Regular.ttf"\r
+        break_mode="ellipsis" rect="208 279 50 120" text=":" font_size="105" align="center"\r
+        bind_data="15" period="10"></label>\r
+\r
+    <option_img position="262 390"\r
+        img_names="./dial_panda/week/7.png,./dial_panda/week/1.png,./dial_panda/week/2.png,./dial_panda/week/3.png,./dial_panda/week/4.png,./dial_panda/week/5.png,./dial_panda/week/6.png"\r
+        bind_data="17" period="10"></option_img>\r
+</dial>
\ No newline at end of file