From: luozheng <1732036298@qq.com> Date: Mon, 2 Sep 2024 12:07:37 +0000 (+0800) Subject: 通过设置图像大小为固定为视图大小。解决在拖动scrolView过程中动画上下移动问题 X-Git-Tag: release_V1.2.70_20241020_135402~529^2~28 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=389420c5470c93a72c8ab03daf60df5edf77dbd6;p=mirrors%2FFD230.git 通过设置图像大小为固定为视图大小。解决在拖动scrolView过程中动画上下移动问题 --- diff --git a/code/sdk/application/wearable/service/msg_center/src/notify/pairing_notification.cpp b/code/sdk/application/wearable/service/msg_center/src/notify/pairing_notification.cpp index 054bc06a3..f6b41db73 100644 --- a/code/sdk/application/wearable/service/msg_center/src/notify/pairing_notification.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/notify/pairing_notification.cpp @@ -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 ---------------------- */