diff options
author | Bobby Georgescu <georgescu@google.com> | 2012-10-15 13:48:08 -0700 |
---|---|---|
committer | Bobby Georgescu <georgescu@google.com> | 2012-10-16 16:30:17 -0700 |
commit | 641b838e49a445592b17e56b11374d92f99789f2 (patch) | |
tree | 1663518062277bad145c2f5d55a907728d51c244 /src/com/android/gallery3d/ui/PositionController.java | |
parent | c057d64b701fc2de9f0d5fec7dbd34779647a442 (diff) | |
download | android_packages_apps_Snap-641b838e49a445592b17e56b11374d92f99789f2.tar.gz android_packages_apps_Snap-641b838e49a445592b17e56b11374d92f99789f2.tar.bz2 android_packages_apps_Snap-641b838e49a445592b17e56b11374d92f99789f2.zip |
Consistent animations & up button behavior in Gallery
Bug: 7302857
Bug: 7295464
This CL makes all of the transition animations throughout
the Gallery app consistent. The animation is the previous
view shrinking and fading out while the new view starts out
bigger than the view port and is coming in to the viewport
size as it fades in. Having consistent animations allows us
to not keep PhotoPage/AlbumPage instances around in certain
cases, making it possible to have consistent up button
behavior when switching between the grid and filmstrip.
Finally, this also makes the transitions in the camera app
filmstrip/grid switching consistent with those in the
gallery app.
Change-Id: I77bac6a0cde1e439738c78f9e16ab15ed5910cfb
Diffstat (limited to 'src/com/android/gallery3d/ui/PositionController.java')
-rw-r--r-- | src/com/android/gallery3d/ui/PositionController.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/ui/PositionController.java b/src/com/android/gallery3d/ui/PositionController.java index fffa7e038..0111847eb 100644 --- a/src/com/android/gallery3d/ui/PositionController.java +++ b/src/com/android/gallery3d/ui/PositionController.java @@ -67,7 +67,7 @@ class PositionController { SNAPBACK_ANIMATION_TIME, // ANIM_KIND_SNAPBACK 400, // ANIM_KIND_SLIDE 300, // ANIM_KIND_ZOOM - PhotoPage.ANIM_TIME_OPENING, // ANIM_KIND_OPENING + GLView.ANIM_TIME_OPENING, // ANIM_KIND_OPENING 0, // ANIM_KIND_FLING (the duration is calculated dynamically) 0, // ANIM_KIND_FLING_X (see the comment above) 0, // ANIM_KIND_DELETE (the duration is calculated dynamically) |