Merge "Ensure view translationY is set back to 0 on staggered animation end." into ub-launcher3-rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7d2011bfe0
+6
@@ -202,6 +202,12 @@ public class StaggeredWorkspaceAnim {
|
||||
.setStartVelocity(mVelocity)
|
||||
.build(v, VIEW_TRANSLATE_Y);
|
||||
springTransY.setStartDelay(startDelay);
|
||||
springTransY.addListener(new AnimatorListenerAdapter() {
|
||||
@Override
|
||||
public void onAnimationEnd(Animator animation) {
|
||||
v.setTranslationY(0f);
|
||||
}
|
||||
});
|
||||
mAnimators.play(springTransY);
|
||||
|
||||
v.setAlpha(0);
|
||||
|
||||
Reference in New Issue
Block a user