表盘:自定义表盘电池坐标优化
authorCaisking <3449750381@qq.com>
Tue, 15 Oct 2024 08:32:14 +0000 (16:32 +0800)
committerCaisking <3449750381@qq.com>
Tue, 15 Oct 2024 08:32:14 +0000 (16:32 +0800)
code/sdk/application/wearable/fd230app/nativeui/clock/src/MainClockView.cpp

index 00f0037..e19938c 100644 (file)
@@ -371,9 +371,9 @@ namespace OHOS
 
         // 设置位置
         batteryicon->SetPosition(186, 52, 100, 100);
-        batteryiamge->SetPosition(173, 52, 100, 100);
+        batteryiamge->SetPosition(176, 52, 100, 100);
 
-        batteryprogress->SetPosition(180, 58, 30, 18);
+        batteryprogress->SetPosition(182, 58, 30, 18);
         batteryprogress->SetViewId("progress");
         batteryprogress->SetBackgroundStyle(STYLE_BACKGROUND_COLOR, 0xffffffff);
         batteryprogress->SetBackgroundStyle(STYLE_BACKGROUND_OPA, 0x00);