From f92c2d12af6ce64f1613a206df73fd24bba274e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E8=A2=81=E6=B8=85=E6=A2=A6?= <3449750381@qq.com> Date: Thu, 2 Apr 2026 10:33:26 +0000 Subject: [PATCH] Merge #3328 into fd272 from refs/changes/3328/head MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 优化活动界面 * refs/changes/3328/head: (1 commits squashed) - 优化活动界面 Signed-off-by: Caisking <3449750381@qq.com> Merged-by: 薛文强 CR-link: https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230/change/3328 --- .../fd272/nativeapp/nativeui/goal/src/goalview.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/goalview.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/goalview.cpp index ba1269bdb..74aa1f28d 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/goalview.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/goalview.cpp @@ -19,6 +19,7 @@ namespace OHOS static constexpr const char *stepPaths = "/user/res/step/"; + static constexpr const char *prossimagePath = "/user/res/step/step_b.bin"; const char *stepPathsArray[] = { "/user/res/step/1.bin", @@ -178,16 +179,9 @@ namespace OHOS goalstepLabel->SetRollSpeed(0); goalstepLabel->SetFont(DEFAULT_VECTOR_FONT_FILENAME_EN, 40); /*----------------------------------------------------------------------------- */ - if (circleProgressimage == nullptr) - { - circleProgressimage = new UIImageView(); - } - circleProgressimage->SetPosition(28, 80); - circleProgressimage->Resize(100, 100); - char *image5imagesPath = "/user/res/step/step_b.bin"; - ImageInfo *info = ImageCacheManager::GetInstance().LoadSingleRes(image5imagesPath); - circleProgressimage->SetSrc(info); - circleProgressimage->SetVisible(true); + + InitImageView(circleProgressimage, 28, 80, 100, 100, "image", prossimagePath); + if (circleProgress1_ == nullptr) { circleProgress1_ = new UICircleProgress(); -- 2.17.1