Using state animation to control all-apps transition
> Separating all-apps transtions control and vertical shift touch handling > Creating separate spring handler for search box (to avoid adding and removing spring) > Driving all-apps vertical shift using state AnimatorSet Bug: 67678570 Change-Id: I3b6a4d1f43275a5f485b399444742b6b9a8c4bb9
This commit is contained in:
@@ -1582,6 +1582,7 @@ public class Workspace extends PagedView
|
||||
|
||||
ValueAnimator stepAnimator = ValueAnimator.ofFloat(0, 1);
|
||||
stepAnimator.addUpdateListener(listener);
|
||||
stepAnimator.setDuration(config.duration);
|
||||
anim.play(stepAnimator);
|
||||
anim.addListener(listener);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user