mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Animate launcher when launching recent tasks
- Scale up adjacent recent tasks and translate away from center - Workspace card instead recenters in the screen - Translate hotseat offscreen Clicking on one of the adjacent tasks will scale it up to the center of the screen while the center and other adjacent task parallax to the right beneath it. Change-Id: If96eec987c100458b8444a6cd698ec7bf6e6ba6b
This commit is contained in:
@@ -34,6 +34,7 @@ import com.android.launcher3.anim.AnimatorSetBuilder;
|
||||
import com.android.launcher3.anim.Interpolators;
|
||||
import com.android.quickstep.AnimatedFloat;
|
||||
import com.android.quickstep.RecentsView;
|
||||
import com.android.quickstep.TaskView;
|
||||
|
||||
public class RecentsViewStateController implements StateHandler {
|
||||
|
||||
@@ -62,6 +63,12 @@ public class RecentsViewStateController implements StateHandler {
|
||||
mWorkspaceCard.setWorkspaceScrollingEnabled(state == OVERVIEW);
|
||||
setVisibility(state == OVERVIEW);
|
||||
setTransitionProgress(state == OVERVIEW ? 1 : 0);
|
||||
if (state == OVERVIEW) {
|
||||
for (int i = mRecentsView.getFirstTaskIndex(); i < mRecentsView.getPageCount(); i++) {
|
||||
((TaskView) mRecentsView.getPageAt(i)).resetVisualProperties();
|
||||
}
|
||||
mRecentsView.updateCurveProperties();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user