Tweaking home transitions

Change-Id: I72e292f40043ba6eca749191e2672847c8ec1de5
This commit is contained in:
Adam Cohen committed 2011-01-17 16:51:38 -08:00
1 parent 0d5aad7edb
commit 4904f66da8
2 files changed
+14 -9

No files matched your search

+8 -3
View File
@@ -1482,11 +1482,16 @@ public class Workspace extends SmoothPagedView
PropertyValuesHolder.ofFloat("backgroundAlpha", finalBackgroundAlpha),
PropertyValuesHolder.ofFloat("backgroundAlphaMultiplier",
finalAlphaMultiplierValue),
PropertyValuesHolder.ofFloat("alpha", finalAlphaValue),
PropertyValuesHolder.ofFloat("rotationY", rotation));
PropertyValuesHolder.ofFloat("alpha", finalAlphaValue));
animWithInterpolator.setDuration(duration);
animWithInterpolator.setInterpolator(mZoomInInterpolator);
mAnimator.playTogether(animWithInterpolator);
ObjectAnimator rotationAnim = ObjectAnimator.ofPropertyValuesHolder(cl,
PropertyValuesHolder.ofFloat("rotationY", rotation));
rotationAnim.setDuration(duration);
rotationAnim.setInterpolator(new DecelerateInterpolator(2.0f));
mAnimator.playTogether(animWithInterpolator, rotationAnim);
} else {
cl.setTranslationX(translation);
cl.setTranslationY(0.0f);