OSDN Git Service

Make the flyout dismissable with a gesture.
authorJoshua Tsuji <tsuji@google.com>
Thu, 2 May 2019 17:13:16 +0000 (13:13 -0400)
committerJoshua Tsuji <tsuji@google.com>
Mon, 13 May 2019 22:47:54 +0000 (18:47 -0400)
commit6549e70afc624dc85b9001a99ca3a8c44b864083
tree727e013f59af5fdcfe92883a61701733d34612e5
parent5bc29e371ce138892f3bca89edaeb7b81e913872
Make the flyout dismissable with a gesture.

This adds the flyout-to-dot transition, and encapulates the flyout logic in a custom view. This also adds support for the 'new' dot changing sides (previously unimplemented) and animates it changing sides when the stack changes sides.

Test: atest SystemUITests
Fixes: 129768381
Bugs: 129768381
Change-Id: I90697b437cf14e5c5a211c87ed2c131a12e697e7
12 files changed:
packages/SystemUI/res/drawable/bubble_flyout.xml [deleted file]
packages/SystemUI/res/layout/bubble_flyout.xml
packages/SystemUI/src/com/android/systemui/bubbles/BadgeRenderer.java
packages/SystemUI/src/com/android/systemui/bubbles/BadgedImageView.java
packages/SystemUI/src/com/android/systemui/bubbles/Bubble.java
packages/SystemUI/src/com/android/systemui/bubbles/BubbleFlyoutView.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java
packages/SystemUI/src/com/android/systemui/bubbles/BubbleTouchHandler.java
packages/SystemUI/src/com/android/systemui/bubbles/BubbleView.java
packages/SystemUI/src/com/android/systemui/bubbles/animation/StackAnimationController.java
packages/SystemUI/tests/src/com/android/systemui/bubbles/BubbleFlyoutViewTest.java [new file with mode: 0644]
packages/SystemUI/tests/src/com/android/systemui/bubbles/BubbleStackViewTest.java [deleted file]