修复血压测量结束界面的icon显示
authorCaisking <Casiking@zhihuishixun.com>
Wed, 18 Jun 2025 06:37:15 +0000 (14:37 +0800)
committerCaisking <Casiking@zhihuishixun.com>
Wed, 18 Jun 2025 06:37:15 +0000 (14:37 +0800)
code/sdk/application/wearable/fd230app/nativeui/bloodpressure/include/detection/BPDetectBeginView.h
code/sdk/application/wearable/fd230app/nativeui/bloodpressure/src/BPUnderCalibrationView.cpp
code/sdk/application/wearable/fd230app/nativeui/bloodpressure/src/detection/BPDetectBeginView.cpp
code/sdk/application/wearable/fd230app/nativeui/bloodpressure/src/detection/BPDetectEndView.cpp

index 426a913..5c130bf 100644 (file)
@@ -29,6 +29,8 @@ namespace OHOS
 
     private:
         UIImageView *background = nullptr;
+        UIImageView *lineground = nullptr;
+
         UILabelExt *calibrationLabel = nullptr;
         UILabelExt *remindLabel = nullptr;
         UILabelExt *timeLabel = nullptr;
index 50dd80a..a4ff442 100644 (file)
@@ -16,8 +16,8 @@
 namespace OHOS
 {
     static BPUnderCalibrationView *g_pBPUnderCalibrationView{nullptr};
-    static const char *BPBACKPATH = "/user/res/BPCalibration//W.bin";
-    static const char *BPLINEPATH = "/user/res/BPCalibration//Q.bin";
+    static const char *BPBACKPATH = "/user/res/BPCalibration/W.bin";
+    static const char *BPLINEPATH = "/user/res/BPCalibration/Q.bin";
     BPUnderCalibrationView::BPUnderCalibrationView()
     {
         WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPUnderCalibrationView::BPUnderCalibrationView");
index d89cef4..f5368f2 100644 (file)
@@ -16,7 +16,9 @@
 namespace OHOS
 {
     static BPDetectBeginView *g_pBPDetectBeginView{nullptr};
-    static const char *BPBACKPATH = "/user/res/BPCalibration/calibration_background.bin";
+    static const char *BPBACKPATH = "/user/res/BPCalibration/W.bin";
+    static const char *BPLINEPATH = "/user/res/BPCalibration/Q.bin";
+
     BPDetectBeginView::BPDetectBeginView()
     {
         WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPDetectBeginView::BPDetectBeginView");
@@ -42,6 +44,11 @@ namespace OHOS
                 delete background;
                 background = nullptr;
             }
+            if (lineground != nullptr)
+            {
+                delete lineground;
+                lineground = nullptr;
+            }
             if (calibrationLabel != nullptr)
             {
                 delete calibrationLabel;
@@ -106,10 +113,15 @@ namespace OHOS
     bool BPDetectBeginView::Initbackground()
     {
         background = new UIImageView();
-        background->SetPosition(0, 0, 466, 466);
+        background->SetPosition(0, 62, 466, 342);
         background->SetSrc(BPBACKPATH);
 
+        lineground = new UIImageView();
+        lineground->SetPosition(49, 95, 356, 161);
+        lineground->SetSrc(BPLINEPATH);
+
         group->Add(background);
+        group->Add(lineground);
         return true;
     }
     /***
index 7e601e2..6374ef2 100644 (file)
@@ -172,6 +172,8 @@ namespace OHOS
         group->Add(BPImageView);
         group->Add(BgWImageView);
         group->Add(BgUImageView);
+        group->Add(IconImageView);
+        
         group->Add(ReCheckButton);
 
         UpdateText();