summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/anim/Interpolators.java
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2018-05-16 12:23:12 -0700
committerTony Wickham <twickham@google.com>2018-05-16 15:59:31 -0700
commitb2ddf10041c80d26012469dfd3bb1b259da1bd94 (patch)
tree3777af607adcb610bf08c822ec5805afbae93b83 /src/com/android/launcher3/anim/Interpolators.java
parent07b8b0b1f091ef7de2a8b706f90f503298932658 (diff)
downloadandroid_packages_apps_Trebuchet-b2ddf10041c80d26012469dfd3bb1b259da1bd94.tar.gz
android_packages_apps_Trebuchet-b2ddf10041c80d26012469dfd3bb1b259da1bd94.tar.bz2
android_packages_apps_Trebuchet-b2ddf10041c80d26012469dfd3bb1b259da1bd94.zip
Update interpolators and durations for state animations
When we enter overview (overview appears, workspace disappears): - Workspace scales down from 1f to .8f with OvershootInterpolator(1.2f) at 200 ms - Workspace fades from 1f to 0 with OvershootInterpolator(1.2f) at 200 ms - Overview scales down from 1.33f to 1f with OvershootInterpolator(1.2f) at 200 ms - Overview fades from 0 to 1f with OvershootInterpolator(1.2f) at 200 ms When we exit overview (overview disappears, workspace appears): - Workspace scales up from .92f to .1f with DecelerateInterpolator() at 200 ms - Workspace fades from 0 to 1f with AccelerateInterpolator() at 200 ms - Overview scales up from 1f to 1.1f with AccelerateInterpolator() at 180ms - Overview fades from 1f to 0 with DecelerateInterpolator(1.7f) at 200 ms Parallax while the finger moves: Workspace translates half the distance as the shelf Bug: 79776746 Change-Id: I319d982cf202bcd6dbbcd68ffc5c0c7853629c7e
Diffstat (limited to 'src/com/android/launcher3/anim/Interpolators.java')
-rw-r--r--src/com/android/launcher3/anim/Interpolators.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/anim/Interpolators.java b/src/com/android/launcher3/anim/Interpolators.java
index 8374f98cc..bace7df57 100644
--- a/src/com/android/launcher3/anim/Interpolators.java
+++ b/src/com/android/launcher3/anim/Interpolators.java
@@ -58,7 +58,7 @@ public class Interpolators {
EXAGGERATED_EASE = new PathInterpolator(exaggeratedEase);
}
- public static final Interpolator OVERSHOOT_0 = new OvershootInterpolator(0);
+ public static final Interpolator OVERSHOOT_1_2 = new OvershootInterpolator(1.2f);
public static final Interpolator TOUCH_RESPONSE_INTERPOLATOR =
new PathInterpolator(0.3f, 0f, 0.1f, 1f);