OSDN Git Service

Refactoring and unifying TaskView animations.
authorWinson <winsonc@google.com>
Tue, 5 Jan 2016 20:11:55 +0000 (12:11 -0800)
committerWinson <winsonc@google.com>
Wed, 6 Jan 2016 22:55:20 +0000 (14:55 -0800)
commitf24f21695f5609d06402cf61e3500d408b99bdcb
tree12c16c793958e24cf2e7f1447489fc82e2a5a7ae
parentef06413afce31800dc8dfee65e5f89bb610f192a
Refactoring and unifying TaskView animations.

- Adding notion of a TaskViewAnimation to animate a TaskView to a
  specific TaskViewTransform
- Refactoring task view enter/exit/launch/delete animations into
  a separate class so that we can improve them easier
- Removing individual TaskView view property animations in favor
  of using the existing TaskStackView stack animation. This ensures that
  we don't have to add separate logic when animating TaskViews.  It is
  all handled by the TaskStackView now.
- Breaking down the TaskStackView synchronize method into binding
  TaskViews and updating them to transforms.  This allows us to
  synchronously update in many cases and is cleaner than the many
  request* calls.

Change-Id: Ib26793568a14e837e6782358155f21158a133992
20 files changed:
packages/SystemUI/res/values/config.xml
packages/SystemUI/src/com/android/systemui/recents/events/activity/DismissRecentsToHomeAnimationStarted.java
packages/SystemUI/src/com/android/systemui/recents/misc/ReferenceCountedTrigger.java
packages/SystemUI/src/com/android/systemui/recents/misc/Utilities.java
packages/SystemUI/src/com/android/systemui/recents/model/RecentsTaskLoadPlan.java
packages/SystemUI/src/com/android/systemui/recents/model/Task.java
packages/SystemUI/src/com/android/systemui/recents/model/TaskStack.java
packages/SystemUI/src/com/android/systemui/recents/views/AnimateableViewBounds.java
packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
packages/SystemUI/src/com/android/systemui/recents/views/RecentsViewTouchHandler.java
packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/recents/views/TaskStackLayoutAlgorithm.java
packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
packages/SystemUI/src/com/android/systemui/recents/views/TaskStackViewScroller.java
packages/SystemUI/src/com/android/systemui/recents/views/TaskStackViewTouchHandler.java
packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
packages/SystemUI/src/com/android/systemui/recents/views/TaskViewAnimation.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
packages/SystemUI/src/com/android/systemui/recents/views/TaskViewTransform.java
packages/SystemUI/src/com/android/systemui/recents/views/ViewAnimation.java [deleted file]