From: Caisking <3449750381@qq.com> Date: Sun, 3 Mar 2024 03:29:24 +0000 (+0800) Subject: 优化血氧功能的滑动逻辑 X-Git-Tag: release_V1.2.70_20241020_135402~1274^2~40 X-Git-Url: http://git.snicker.com.cn/Users/apple/Desktop/static/gitweb.css?a=commitdiff_plain;h=602eaf5e7ec3b70005a43365a68a46974199cc85;p=mirrors%2FFD230.git 优化血氧功能的滑动逻辑 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodOxygenView.cpp b/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodOxygenView.cpp index 1e4705367..b07675576 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodOxygenView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodOxygenView.cpp @@ -75,7 +75,7 @@ namespace OHOS void BloodOxygenView::Upspo2data() { uint16_t spo2_ = BloodOxygenModel::GetInstance()->GetSPO2data(); - //WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GetSPO2Data %d", spo2_); + // WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GetSPO2Data %d", spo2_); std::string bloodoxygenStr = std::to_string(spo2_); percent->SetText(bloodoxygenStr.c_str()); } @@ -204,6 +204,7 @@ namespace OHOS BloodScrollView[BLOODVIEW]->SetOnDragListener(draglistener); BloodScrollView[BLOODVIEW]->SetTouchable(true); BloodScrollView[BLOODVIEW]->SetDraggable(true); + BloodScrollView[BLOODVIEW]->SetVerticalScrollState(false); // 禁止纵向滑动 /* -------------------------------------------------------------------------- */ if (InitImageDisplay() == false) { diff --git a/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodResultView.cpp b/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodResultView.cpp index 2d107a620..da68c4676 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodResultView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodResultView.cpp @@ -37,7 +37,7 @@ namespace OHOS BloodResultView::BloodResultView() { WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BloodBandoffView::BloodBandoffView"); - + g_pMainView = this; } @@ -181,6 +181,7 @@ namespace OHOS BloodResultScrollView->SetOnDragListener(draglistener); BloodResultScrollView->SetTouchable(true); BloodResultScrollView->SetDraggable(true); + BloodResultScrollView->SetHorizontalScrollState(false); // 禁止横向滑动 /* -------------------------------------------------------------------------- */ if (InitImageDisplay() == false) {