#456睡眠界面,紫色进度条外面有刻度未遮挡完全
authorCaisking <3449750381@qq.com>
Wed, 11 Sep 2024 12:46:10 +0000 (20:46 +0800)
committerCaisking <3449750381@qq.com>
Wed, 11 Sep 2024 12:46:10 +0000 (20:46 +0800)
code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepView.cpp

index 1256ec5..22152ab 100644 (file)
@@ -166,28 +166,20 @@ namespace OHOS
             WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "circleProgress new fail");
             return false;
         }
-        circleProgress_->SetPosition(-1, 0);
-        circleProgress_->Resize(466, 466);
-        circleProgress_->SetViewId("circleProgress");
+        circleProgress_->SetPosition(0, 0);        
+        circleProgress_->Resize(466, 466);      
+        circleProgress_->SetViewId("circleProgress1");
         circleProgress_->SetStyle(STYLE_BACKGROUND_OPA, 0x00);
         circleProgress_->SetBackgroundStyle(STYLE_BACKGROUND_COLOR, 0xff000000);
-        circleProgress_->SetBackgroundStyle(STYLE_BACKGROUND_OPA, 0x00);
-        circleProgress_->SetBackgroundStyle(STYLE_LINE_HEIGHT, 200);
-        circleProgress_->SetBackgroundStyle(STYLE_LINE_WIDTH, 21);
-        circleProgress_->SetBackgroundStyle(STYLE_LINE_OPA, 0x00);
         circleProgress_->SetForegroundStyle(STYLE_BACKGROUND_COLOR, 0xff2195F6);
-        circleProgress_->SetForegroundStyle(STYLE_BORDER_WIDTH, 200);
-        circleProgress_->SetForegroundStyle(STYLE_BORDER_RADIUS, 200);
         circleProgress_->SetForegroundStyle(STYLE_BORDER_COLOR, 0xff000000);
-        circleProgress_->SetForegroundStyle(STYLE_LINE_HEIGHT, 35);
-        circleProgress_->SetForegroundStyle(STYLE_LINE_COLOR, 0xff5320E2);
+        circleProgress_->SetForegroundStyle(STYLE_LINE_COLOR, 0xff5320e2);
         circleProgress_->SetForegroundStyle(STYLE_LINE_WIDTH, 20);
         circleProgress_->SetCenterPosition(233, 229);
         circleProgress_->SetRadius(205);
         circleProgress_->SetStartAngle(320);
         circleProgress_->SetEndAngle(40);
-        circleProgress_->SetValue(0);
-        circleProgress_->SetBackgroundImagePosition(36, 26);
+        circleProgress_->SetValue(100);
         /* -------------------------------- 将组件添加到根视图 ------------------------------- */
         Add(progress_image);
         Add(circleProgress_);