mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-05 10:26:52 +00:00
Maintaining separate alpha for x and y translations
Bug: 29504823 Change-Id: I6150fec43653c8da4c5841ddbd6c5de739f205b8
This commit is contained in:
@@ -20,6 +20,7 @@ import com.android.launcher3.Launcher;
|
||||
import com.android.launcher3.LauncherAnimUtils;
|
||||
import com.android.launcher3.PagedView;
|
||||
import com.android.launcher3.Workspace;
|
||||
import com.android.launcher3.Workspace.Direction;
|
||||
import com.android.launcher3.util.TouchController;
|
||||
|
||||
/**
|
||||
@@ -239,10 +240,10 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
|
||||
mDecelInterpolator.getInterpolation(alpha))));
|
||||
mAppsView.getContentView().setAlpha(alpha);
|
||||
mAppsView.setTranslationY(progress);
|
||||
mWorkspace.setWorkspaceTranslation(View.TRANSLATION_Y,
|
||||
mWorkspace.setWorkspaceTranslation(Direction.Y,
|
||||
PARALLAX_COEFFICIENT *(-mTranslation + progress),
|
||||
mAccelInterpolator.getInterpolation(workspaceHotseatAlpha));
|
||||
mWorkspace.setHotseatTranslation(View.TRANSLATION_Y, -mTranslation + progress,
|
||||
mWorkspace.setHotseatTranslation(Direction.Y, -mTranslation + progress,
|
||||
mAccelInterpolator.getInterpolation(workspaceHotseatAlpha));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user