From: luozheng <1732036298@qq.com> Date: Thu, 3 Oct 2024 11:57:08 +0000 (+0800) Subject: 解决手电筒下拉出现黑边问题,swipe在非loop状态下通过设置blanksize 为0解决该问题 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=0e9e8b335c1303f27cc0a975680f52bc992e13ba;p=mirrors%2FFD230.git 解决手电筒下拉出现黑边问题,swipe在非loop状态下通过设置blanksize 为0解决该问题 --- 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)