Change overview animation to scale instead of translationX

As you swipe up to overview from home, workspace scales down and fades out as before,
and now recents scales down from 1.2f on top of it. The interpolators are set such
that the workspace animation is seen before the recents animation. Also, we don't
scale down all of recents, only the visible pages (current and adjacent).

Change-Id: I5f8bfe8cafeaa41d26873c63549735d7bdff2bce
This commit is contained in:
Tony
2018-04-04 10:23:36 -07:00
parent c2b64829a7
commit 0c95559cbc
12 changed files with 143 additions and 103 deletions

View File

@@ -58,8 +58,8 @@ public class OverviewState extends LauncherState {
}
@Override
public float[] getOverviewTranslationFactor(Launcher launcher) {
return new float[] {0f, 0f};
public float[] getOverviewScaleAndTranslationYFactor(Launcher launcher) {
return new float[] {1f, 0f};
}
@Override