Commit 099fb8a
fix: replace NumberAnimation with XAnimator in notification bubble
The change replaces NumberAnimation with XAnimator for the notification
bubble transition animation. XAnimator is more efficient for animating
x-position changes as it's specifically designed for this purpose and
can leverage hardware acceleration. This improves performance and makes
the animation smoother, especially when multiple notifications appear
in quick succession. The duration and easing type remain the same to
maintain consistent visual behavior.
fix: 在通知气泡中用 XAnimator 替换 NumberAnimation
此次更改将通知气泡的过渡动画从 NumberAnimation 替换为 XAnimator。
XAnimator 专门用于处理 x 轴位置变化的动画,能更好地利用硬件加速,从而提
高性能并使动画更加流畅,特别是在快速连续出现多个通知时。保持相同的持续时
间和缓动类型以确保视觉行为一致。
pms: BUG-2973171 parent f9e204b commit 099fb8a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments