解决手电筒下拉出现黑边问题,swipe在非loop状态下通过设置blanksize 为0解决该问题
authorluozheng <1732036298@qq.com>
Thu, 3 Oct 2024 11:57:08 +0000 (19:57 +0800)
committerluozheng <1732036298@qq.com>
Thu, 3 Oct 2024 11:57:08 +0000 (19:57 +0800)
code/sdk/application/wearable/fd230app/nativeui/alarm/src/MainAlarmView.cpp
code/sdk/application/wearable/fd230app/nativeui/flashlight/src/FlashlightView.cpp

index f94c0a0..fa10d61 100644 (file)
@@ -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);
index 1099bf1..64eb424 100644 (file)
@@ -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)