summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2010-09-13 18:19:55 -0700
committerAdam Cohen <adamcohen@google.com>2010-09-13 18:19:55 -0700
commite54cec82a915c2bc8a7d719228c5d907f3fe14ec (patch)
treea2e752ffdc4f0b8fca474c6993e12574407e99f4 /src
parent5f1c509d5ad1954a7e38e77db4d5f27c7345fd39 (diff)
downloadandroid_packages_apps_Trebuchet-e54cec82a915c2bc8a7d719228c5d907f3fe14ec.tar.gz
android_packages_apps_Trebuchet-e54cec82a915c2bc8a7d719228c5d907f3fe14ec.tar.bz2
android_packages_apps_Trebuchet-e54cec82a915c2bc8a7d719228c5d907f3fe14ec.zip
Re-adding the perspective shift on mini screens
Change-Id: If4acc0cbfc66305e9abe024529a69553df2f9ef2
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher2/Workspace.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java
index 7ce7ea999..0eaa91342 100644
--- a/src/com/android/launcher2/Workspace.java
+++ b/src/com/android/launcher2/Workspace.java
@@ -72,7 +72,7 @@ public class Workspace extends SmoothPagedView
// so as to achieve the desired transform
private static final float EXTRA_SCALE_FACTOR_0 = 0.97f;
private static final float EXTRA_SCALE_FACTOR_1 = 1.0f;
- private static final float EXTRA_SCALE_FACTOR_2 = 1.13f;
+ private static final float EXTRA_SCALE_FACTOR_2 = 1.08f;
private enum ShrinkPosition { SHRINK_TO_TOP, SHRINK_TO_MIDDLE, SHRINK_TO_BOTTOM };
@@ -671,8 +671,8 @@ public class Workspace extends SmoothPagedView
new ObjectAnimator<Float>(duration, cl,
new PropertyValuesHolder<Float>("x", newX),
new PropertyValuesHolder<Float>("y", newY),
- new PropertyValuesHolder<Float>("scaleX", SHRINK_FACTOR),
- new PropertyValuesHolder<Float>("scaleY", SHRINK_FACTOR),
+ new PropertyValuesHolder<Float>("scaleX", SHRINK_FACTOR * rotationScaleX),
+ new PropertyValuesHolder<Float>("scaleY", SHRINK_FACTOR * rotationScaleY),
new PropertyValuesHolder<Float>("backgroundAlpha", 1.0f),
new PropertyValuesHolder<Float>("alpha", 0.0f),
new PropertyValuesHolder<Float>("rotationY", rotation)).start();