优化压力错误界面 2582/2
authorluozheng <1732036298@qq.com>
Tue, 21 Oct 2025 12:35:49 +0000 (20:35 +0800)
committerluozheng <1732036298@qq.com>
Tue, 21 Oct 2025 12:35:49 +0000 (20:35 +0800)
code/sdk/application/wearable/fd272/nativeapp/nativeui/stress/include/stressTestModel.h
code/sdk/application/wearable/fd272/nativeapp/nativeui/stress/src/stressTestFailView.cpp

index 29b7ece..66448e7 100644 (file)
@@ -26,7 +26,7 @@ namespace OHOS
         StressTestModel(const StressTestModel &) = delete;
         StressTestModel &operator=(const StressTestModel &) = delete;
         uint8_t currentView{0};
-        uint8_t currentFailType{FAIL_TYPE_INVALID_DATA};//当前错误类型
+        uint8_t currentFailType{FAIL_TYPE_NOT_WORN};//当前错误类型
     };
 }
 
index 6130887..ced9dbe 100644 (file)
@@ -50,6 +50,8 @@ namespace OHOS
             scrollView->SetPosition(0, 0, HORIZONTAL_RESOLUTION, VERTICAL_RESOLUTION);
             scrollView->SetTouchable(true);
             scrollView->SetDraggable(true);
+            scrollView->SetScrollBlankSize(60,UIAbstractScroll::Direction::BOTTOM);
+            scrollView->SetScrollBlankSize(60,UIAbstractScroll::Direction::TOP);
             group->Add(scrollView);
         }
         if (titleLabel == nullptr)