diff options
| author | 2023-09-26 16:09:52 -0700 | |
|---|---|---|
| committer | 2023-10-09 10:55:38 -0700 | |
| commit | 85bc534d87812efd4f1848f35e98fea4155abc62 (patch) | |
| tree | 6ab96942c3a2d953226d693dc546114e286a5078 /libs/androidfw/ZipFileRO.cpp | |
| parent | 1c716268870024ce3be7983a0c44ce9daecfec2b (diff) | |
Use ViewHierarchyAnimator to animate media container layout.
Instead of LayoutTransition.
- The main advantage over LayoutTransition: no need for the second
OnLayoutChangeListener. With LayoutTransition, the second
OnLayoutChangeListener is necessary in order to disable the
LayoutTransition.CHANGING.
- The main disadvantage is testing. It's tricky to verify the usage of
ViewHierarchyAnimator.Companion methods. But it's still achievable,
via java reflect. (ViewHierarchyAnimator.Companion is essentially
a singleton.)
The transition basially looks the same as with LayoutTransition. It does
use a different interpolator: Interpolators.STANDARD vs DECELERATE.
Other transitions tested include:
- Same transition not in split shade
- AOD <-> Lockscreen <-> Launcher
- Fold / unfold, and rotate
- Pick a different wallpaper/clock
Bug: 296907535
Test: On split shade with media, turn on/off flashlight via shortcut.
Test: With CHANGING duration = 10000, test other transitions with media.
Test: KeyguardStatusViewControllerTest
Change-Id: I9f41d75edd54196706e9f6009c9089148ffe7707
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions