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:
Sunny Goyal
2017-10-27 11:05:26 -07:00
parent 9d341964a0
commit 031022029b
11 changed files with 391 additions and 314 deletions
+1
View File
@@ -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);
}