Update animations for TM-QPR: OverviewSplitSelect > Home transition

The animation from OverviewSplitSelect to Home is now updated to the latest spec. See bug for details.
- New timings
- FloatingTaskView now translates out, instead of fading
- FloatingTaskView and SplitInstructionsView now disappear concurrently with the rest of Overview, instead of afterward

Fixes: 236761067
Test: Manual on tablet and phone
Change-Id: Iaa1c804a60859232f331950098b67968cc187e82
This commit is contained in:
Jeremy Sim
2022-07-08 17:24:06 -07:00
parent d963c70df3
commit e5ba8fa7a5
9 changed files with 214 additions and 10 deletions

View File

@@ -580,4 +580,22 @@ public class LandscapePagedViewHandler implements PagedOrientationHandler {
FloatProperty secondary, DeviceProfile deviceProfile) {
return new Pair<>(primary, secondary);
}
@Override
public float getFloatingTaskOffscreenTranslationTarget(View floatingTask, RectF onScreenRect,
@StagePosition int stagePosition, DeviceProfile dp) {
float currentTranslationY = floatingTask.getTranslationY();
return currentTranslationY - onScreenRect.height();
}
@Override
public void setFloatingTaskPrimaryTranslation(View floatingTask, float translation,
DeviceProfile dp) {
floatingTask.setTranslationY(translation);
}
@Override
public Float getFloatingTaskPrimaryTranslation(View floatingTask, DeviceProfile dp) {
return floatingTask.getTranslationY();
}
}