diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml index 5415d196c1719..1b8eeb23075e1 100644 --- a/packages/SystemUI/res/values/dimens.xml +++ b/packages/SystemUI/res/values/dimens.xml @@ -205,10 +205,10 @@ 2dp - 5dp + 25dp - 65dp + 100dp 100dp diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml index 27e58a47ab708..48a031afa69a3 100644 --- a/packages/SystemUI/res/values/styles.xml +++ b/packages/SystemUI/res/values/styles.xml @@ -21,11 +21,23 @@ - + + diff --git a/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackViewLayoutAlgorithm.java b/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackViewLayoutAlgorithm.java index 667faa7dfbc9d..f0bdfa2046e85 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackViewLayoutAlgorithm.java +++ b/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackViewLayoutAlgorithm.java @@ -53,7 +53,7 @@ public class TaskStackViewLayoutAlgorithm { // Log function static final float XScale = 1.75f; // The large the XScale, the longer the flat area of the curve - static final float LogBase = 300; + static final float LogBase = 3000; static final int PrecisionSteps = 250; static float[] xp; static float[] px; @@ -84,7 +84,7 @@ public class TaskStackViewLayoutAlgorithm { left + size, mStackRect.top + size); // Update the affiliation offsets - float visibleTaskPct = 0.55f; + float visibleTaskPct = 0.5f; mWithinAffiliationOffset = mConfig.taskBarHeight; mBetweenAffiliationOffset = (int) (visibleTaskPct * mTaskRect.height()); } @@ -312,4 +312,4 @@ public class TaskStackViewLayoutAlgorithm { } return px[xFloorIndex] + pFraction; } -} \ No newline at end of file +} diff --git a/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java b/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java index 5914b392e6716..a0e5e440e3be8 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java +++ b/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java @@ -57,7 +57,7 @@ public class TaskView extends FrameLayout implements Task.TaskCallbacks, ObjectAnimator mDimAnimator; float mMaxDimScale; int mDim; - AccelerateInterpolator mDimInterpolator = new AccelerateInterpolator(1.25f); + AccelerateInterpolator mDimInterpolator = new AccelerateInterpolator(1f); PorterDuffColorFilter mDimColorFilter = new PorterDuffColorFilter(0, PorterDuff.Mode.MULTIPLY); Task mTask; diff --git a/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java b/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java index 4b095493bd699..dbfd0017ba7b0 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java +++ b/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java @@ -211,13 +211,14 @@ class TaskViewHeader extends FrameLayout { void startEnterRecentsAnimation(int delay, Runnable postAnimRunnable) { // Animate the task bar of the first task view setVisibility(View.VISIBLE); - setTranslationY(-getMeasuredHeight()); + setAlpha(0f); animate() - .translationY(0) + .alpha(1f) .setStartDelay(delay) - .setInterpolator(mConfig.fastOutSlowInInterpolator) + .setInterpolator(mConfig.linearOutSlowInInterpolator) .setDuration(mConfig.taskBarEnterAnimDuration) .withEndAction(postAnimRunnable) + .withLayer() .start(); } @@ -225,9 +226,9 @@ class TaskViewHeader extends FrameLayout { void startLaunchTaskAnimation(Runnable preAnimRunnable, final Runnable postAnimRunnable) { // Animate the task bar out of the first task view animate() - .translationY(-getMeasuredHeight()) + .alpha(0f) .setStartDelay(0) - .setInterpolator(mConfig.fastOutLinearInInterpolator) + .setInterpolator(mConfig.linearOutSlowInInterpolator) .setDuration(mConfig.taskBarExitAnimDuration) .withStartAction(preAnimRunnable) .withEndAction(new Runnable() { @@ -236,6 +237,7 @@ class TaskViewHeader extends FrameLayout { post(postAnimRunnable); } }) + .withLayer() .start(); }