diff options
author | Selim Cinek <cinek@google.com> | 2015-04-10 14:24:20 -0700 |
---|---|---|
committer | Selim Cinek <cinek@google.com> | 2015-04-15 12:58:38 -0700 |
commit | a7840af09d808ecd3f7547bbdea58d4422bd4d8f (patch) | |
tree | 3e87ea77bcf46f88d7b350c3726dbf90b8a66376 /packages/SystemUI/src/com/android/systemui/statusbar | |
parent | 8d490d427c0b0cc321ae61987bb3cfc1c23ff930 (diff) | |
download | frameworks_base-a7840af09d808ecd3f7547bbdea58d4422bd4d8f.zip frameworks_base-a7840af09d808ecd3f7547bbdea58d4422bd4d8f.tar.gz frameworks_base-a7840af09d808ecd3f7547bbdea58d4422bd4d8f.tar.bz2 |
Adapted the interpolator of the heads up appear motion
Change-Id: Ic67f481c7a14a4aa4c965f4739f7574f8f4f05a7
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java index b869c27..75b4117 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java @@ -46,7 +46,7 @@ public class StackStateAnimator { public static final int ANIMATION_DURATION_APPEAR_DISAPPEAR = 464; public static final int ANIMATION_DURATION_EXPAND_CLICKED = 360; public static final int ANIMATION_DURATION_DIMMED_ACTIVATED = 220; - public static final int ANIMATION_DURATION_HEADS_UP_APPEAR = 280; + public static final int ANIMATION_DURATION_HEADS_UP_APPEAR = 650; public static final int ANIMATION_DURATION_HEADS_UP_DISAPPEAR = 230; public static final int ANIMATION_DELAY_PER_ELEMENT_INTERRUPTING = 80; public static final int ANIMATION_DELAY_PER_ELEMENT_EXPAND_CHILDREN = 54; @@ -108,7 +108,22 @@ public class StackStateAnimator { R.dimen.go_to_full_shade_appearing_translation); Path path = new Path(); path.moveTo(0, 0); - path.cubicTo(0.8f, 0, 0.8f, 1.2f, 1f, 1f); + float x1 = 250f; + float x2 = 150f; + float x3 = 100f; + float y1 = 90f; + float y2 = 78f; + float y3 = 80f; + float xTot = (x1 + x2 + x3); + path.cubicTo(x1 * 0.9f / xTot, 0f, + x1 * 0.8f / xTot, y1 / y3, + x1 / xTot , y1 / y3); + path.cubicTo((x1 + x2 * 0.4f) / xTot, y1 / y3, + (x1 + x2 * 0.2f) / xTot, y2 / y3, + (x1 + x2) / xTot, y2 / y3); + path.cubicTo((x1 + x2 + x3 * 0.4f) / xTot, y2 / y3, + (x1 + x2 + x3 * 0.2f) / xTot, 1f, + 1f, 1f); mHeadsUpAppearInterpolator = new PathInterpolator(path); } |