diff options
author | Michael Jurka <mikejurka@google.com> | 2011-02-03 20:23:50 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-02-03 20:23:50 -0800 |
commit | de4149cf71b3fe8fb4a8e64b372ccd45dfb5fb00 (patch) | |
tree | 2e5142a6830b6989a63d83ff07163ac807aad2ee /src/com/android/launcher2/Launcher.java | |
parent | e6abe6c6a70c1e26b7765217e94b1d46b5388079 (diff) | |
parent | ea57348cc8f4647f6bc35a42cd45662ddb828b92 (diff) | |
download | android_packages_apps_Trebuchet-de4149cf71b3fe8fb4a8e64b372ccd45dfb5fb00.tar.gz android_packages_apps_Trebuchet-de4149cf71b3fe8fb4a8e64b372ccd45dfb5fb00.tar.bz2 android_packages_apps_Trebuchet-de4149cf71b3fe8fb4a8e64b372ccd45dfb5fb00.zip |
Merge "Tweaking feel of All Apps transition" into honeycomb
Diffstat (limited to 'src/com/android/launcher2/Launcher.java')
-rw-r--r-- | src/com/android/launcher2/Launcher.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index b7cad9f01..df6ff366a 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -2537,7 +2537,6 @@ public final class Launcher extends Activity } private void showToolbarButton(View button) { - button.setAlpha(1.0f); button.setVisibility(View.VISIBLE); button.setFocusable(true); button.setClickable(true); @@ -2584,6 +2583,7 @@ public final class Launcher extends Activity } else { if (showing) { showToolbarButton(view); + view.setAlpha(1f); } else { hideToolbarButton(view); } @@ -2638,7 +2638,7 @@ public final class Launcher extends Activity // visible. Modifying initialHeightFactor changes how much of the view is // initially showing, and hence the perceived angle from which the view enters. if (state == State.ALL_APPS) { - final float initialHeightFactor = 0.165f; + final float initialHeightFactor = 0.175f; view.setPivotY((1 - initialHeightFactor) * height); } else { final float initialHeightFactor = 0.2f; @@ -2690,7 +2690,7 @@ public final class Launcher extends Activity if (toAllApps) { toView.setAlpha(0f); ValueAnimator alphaAnim = ValueAnimator.ofFloat(0f, 1f).setDuration(duration); - alphaAnim.setInterpolator(new DecelerateInterpolator(1.0f)); + alphaAnim.setInterpolator(new DecelerateInterpolator(1.5f)); alphaAnim.addUpdateListener(new AnimatorUpdateListener() { public void onAnimationUpdate(ValueAnimator animation) { final float b = (Float) animation.getAnimatedValue(); @@ -2807,7 +2807,7 @@ public final class Launcher extends Activity }); ValueAnimator alphaAnim = ValueAnimator.ofFloat(0f, 1f); alphaAnim.setDuration(res.getInteger(R.integer.config_allAppsFadeOutTime)); - alphaAnim.setInterpolator(new DecelerateInterpolator(2.0f)); + alphaAnim.setInterpolator(new DecelerateInterpolator(1.5f)); alphaAnim.addUpdateListener(new AnimatorUpdateListener() { public void onAnimationUpdate(ValueAnimator animation) { final float b = (Float) animation.getAnimatedValue(); |