From 86b3563ae5234fcd2202a88da975ffc27ecdc9a7 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Thu, 3 Oct 2024 19:57:08 +0800 Subject: [PATCH] =?utf8?q?=E8=A7=A3=E5=86=B3=E6=89=8B=E7=94=B5=E7=AD=92?= =?utf8?q?=E4=B8=8B=E6=8B=89=E5=87=BA=E7=8E=B0=E9=BB=91=E8=BE=B9=E9=97=AE?= =?utf8?q?=E9=A2=98=EF=BC=8Cswipe=E5=9C=A8=E9=9D=9Eloop=E7=8A=B6=E6=80=81?= =?utf8?q?=E4=B8=8B=E9=80=9A=E8=BF=87=E8=AE=BE=E7=BD=AEblanksize=20?= =?utf8?q?=E4=B8=BA0=E8=A7=A3=E5=86=B3=E8=AF=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativeui/alarm/src/MainAlarmView.cpp | 1 + .../fd230app/nativeui/flashlight/src/FlashlightView.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/alarm/src/MainAlarmView.cpp b/code/sdk/application/wearable/fd230app/nativeui/alarm/src/MainAlarmView.cpp index f94c0a00f..fa10d610c 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/alarm/src/MainAlarmView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/alarm/src/MainAlarmView.cpp @@ -382,6 +382,7 @@ void MainAlarmView::NewClockCtl(int16_t alarmNum) SwipeView_[alarmNum]->SetStyle(STYLE_BACKGROUND_COLOR, Color::Black().full); SwipeView_[alarmNum]->SetStyle(STYLE_BACKGROUND_OPA, OPA_OPAQUE); SwipeView_[alarmNum]->SetStyle(STYLE_BORDER_RADIUS, 100); + SwipeView_[alarmNum]->SetBlankSize(0); // SwipeView_[alarmNum]->SetBlankSize(0); // SwipeView_[alarmNum]->SetReboundSize(30); // 200: rebound size // SwipeView_[alarmNum]->SetElastic(true); diff --git a/code/sdk/application/wearable/fd230app/nativeui/flashlight/src/FlashlightView.cpp b/code/sdk/application/wearable/fd230app/nativeui/flashlight/src/FlashlightView.cpp index 1099bf1b3..64eb42422 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/flashlight/src/FlashlightView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/flashlight/src/FlashlightView.cpp @@ -2,7 +2,7 @@ * @Author: luozheng 1732036298@qq.com * @Date: 2024-04-10 17:32:08 * @LastEditors: luozheng 1732036298@qq.com - * @LastEditTime: 2024-09-23 11:15:33 + * @LastEditTime: 2024-10-03 19:51:39 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/flashligh/src/FlashlightView.cpp */ #include "flashlight/include/FlashlightView.h" @@ -119,6 +119,7 @@ namespace OHOS SwipeView_->SetStyle(STYLE_BACKGROUND_COLOR, Color::Black().full); SwipeView_->SetStyle(STYLE_BACKGROUND_OPA, OPA_OPAQUE); SwipeView_->SetStyle(STYLE_BORDER_RADIUS, 100); + SwipeView_->SetBlankSize(0); UIViewGroup * temp_0 = InitViewMainData(); if(nullptr == temp_0) -- 2.17.1