From: luozheng <1732036298@qq.com> Date: Tue, 21 Oct 2025 12:35:49 +0000 (+0800) Subject: 优化压力错误界面 X-Git-Tag: V1.0.9_20251128_194606_LN~180^2~16 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=refs%2Fchanges%2F2582%2F2;p=mirrors%2FFD230.git 优化压力错误界面 --- diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/stress/include/stressTestModel.h b/code/sdk/application/wearable/fd272/nativeapp/nativeui/stress/include/stressTestModel.h index 29b7ece91..66448e722 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/stress/include/stressTestModel.h +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/stress/include/stressTestModel.h @@ -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};//当前错误类型 }; } diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/stress/src/stressTestFailView.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/stress/src/stressTestFailView.cpp index 613088727..ced9dbeb5 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/stress/src/stressTestFailView.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/stress/src/stressTestFailView.cpp @@ -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)