Move scrim from DragLayer to LauncherRootView.
This change will make opening/closing animations a lot cleaner. Change-Id: I7f8ae301a9a126023833e282d6654bebd09bb306
This commit is contained in:
1 parent
69057173a7
commit
de43a71b06
7 files changed
+15
-21
No files matched your search
@@ -88,7 +88,6 @@ public class LauncherAppTransitionManager {
|
||||
|
||||
mDragLayer.setAlpha(1f);
|
||||
mDragLayer.setTranslationY(0f);
|
||||
mDragLayer.getBackground().setAlpha(255);
|
||||
finishedCallback.run();
|
||||
}
|
||||
});
|
||||
@@ -118,12 +117,6 @@ public class LauncherAppTransitionManager {
|
||||
private AnimatorSet getHideLauncherAnimator() {
|
||||
AnimatorSet hideLauncher = new AnimatorSet();
|
||||
|
||||
// Fade out the scrim fast to avoid the hard line
|
||||
ObjectAnimator scrimAlpha = ObjectAnimator.ofInt(mDragLayer.getBackground(),
|
||||
LauncherAnimUtils.DRAWABLE_ALPHA, 255, 0);
|
||||
scrimAlpha.setDuration(130);
|
||||
scrimAlpha.setInterpolator(Interpolators.AGGRESSIVE_EASE);
|
||||
|
||||
// Animate Launcher so that it moves downwards and fades out.
|
||||
ObjectAnimator dragLayerAlpha = ObjectAnimator.ofFloat(mDragLayer, View.ALPHA, 1f, 0f);
|
||||
dragLayerAlpha.setDuration(217);
|
||||
@@ -133,7 +126,6 @@ public class LauncherAppTransitionManager {
|
||||
dragLayerTransY.setInterpolator(Interpolators.AGGRESSIVE_EASE);
|
||||
dragLayerTransY.setDuration(350);
|
||||
|
||||
hideLauncher.play(scrimAlpha);
|
||||
hideLauncher.play(dragLayerAlpha);
|
||||
hideLauncher.play(dragLayerTransY);
|
||||
return hideLauncher;
|
||||
|
||||
Reference in new issue
Block a user