通过设置图像大小为固定为视图大小。解决在拖动scrolView过程中动画上下移动问题 857/1 857/head
authorluozheng <1732036298@qq.com>
Mon, 2 Sep 2024 12:07:37 +0000 (20:07 +0800)
committerluozheng <1732036298@qq.com>
Mon, 2 Sep 2024 12:07:37 +0000 (20:07 +0800)
code/sdk/application/wearable/service/msg_center/src/notify/pairing_notification.cpp

index 054bc06..f6b41db 100644 (file)
@@ -2,7 +2,7 @@
  * @Author: luozheng 1732036298@qq.com
  * @Date: 2024-03-22 10:04:36
  * @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-09-02 17:27:00
+ * @LastEditTime: 2024-09-02 20:03:45
  * @FilePath: /FD230/code/sdk/application/wearable/service/msg_center/src/notify/pairing_notification.cpp
  */
 #include "notification_manager.h"
@@ -292,6 +292,7 @@ namespace OHOS
                 DeviceBindingAnimatorView->SetAutoEnable(false);
                 DeviceBindingAnimatorView->SetResizeMode(UIImageAnimatorView::CENTER);
                 DeviceBindingAnimatorView->Start();
+                DeviceBindingAnimatorView->SetSizeFixed(true);
             }
             /* ---------------------------- DeviceBindingName --------------------------- */
             if (DeviceBindingName == nullptr)
@@ -433,6 +434,7 @@ namespace OHOS
                 DeviceUnBindingAnimatorView->SetStyle(STYLE_BACKGROUND_OPA, 0xff);
                 DeviceUnBindingAnimatorView->SetImageAnimatorSrc(UnBindImageInfo, UNBIND_IMAGE_ANIMATOR_VIEW_NUM_FRAMES, UNBIND_IMAGE_ANIMATOR_VIEW_TIMEOFUPDATE);
                 DeviceUnBindingAnimatorView->SetRepeat(true);
+                DeviceUnBindingAnimatorView->SetSizeFixed(true);
                 DeviceUnBindingAnimatorView->Start();
             }
             /* ----------------------- DeviceUnBindingViewTitleLabel ---------------------- */