OSDN Git Service

Tweak transition animations
authorBobby Georgescu <georgescu@google.com>
Mon, 22 Oct 2012 03:17:08 +0000 (20:17 -0700)
committerBobby Georgescu <georgescu@google.com>
Mon, 22 Oct 2012 03:17:08 +0000 (20:17 -0700)
Bug: 7376109
Change-Id: I28cc8413bda31ff945e8e48dd75b86b2e9d071a8

src/com/android/gallery3d/anim/StateTransitionAnimation.java

index 8428cb8..2f7a2ec 100644 (file)
@@ -31,7 +31,7 @@ public class StateTransitionAnimation extends Animation {
         public static final Spec INCOMING;
         public static final Spec PHOTO_INCOMING;
 
-        public int duration = 330;
+        public int duration = 250;
         public float backgroundAlphaFrom = 0;
         public float backgroundAlphaTo = 0;
         public float backgroundScaleFrom = 0;
@@ -48,7 +48,7 @@ public class StateTransitionAnimation extends Animation {
 
         static {
             OUTGOING = new Spec();
-            OUTGOING.backgroundAlphaFrom = 1f;
+            OUTGOING.backgroundAlphaFrom = 0.5f;
             OUTGOING.backgroundAlphaTo = 0f;
             OUTGOING.backgroundScaleFrom = 1f;
             OUTGOING.backgroundScaleTo = 0f;