OSDN Git Service

Update PIP dismiss to show scrim + info text at the bottom of the screen
authorMady Mellor <madym@google.com>
Wed, 29 Mar 2017 22:27:37 +0000 (15:27 -0700)
committerMady Mellor <madym@google.com>
Fri, 31 Mar 2017 00:30:38 +0000 (17:30 -0700)
commit60421c9d451afa85abc6621fe97828857012a054
tree36e73628d15fb8402b22165788b440798821154f
parent76d779374a92f502579e72f822cf815e54be33ea
Update PIP dismiss to show scrim + info text at the bottom of the screen

- Rather than testing how far off screen the PIP is, instead tests how far
  past the nav bar / on screen bars the PIP is to determine if it is a
  dismiss
- When dragging PIP around screen, display info text + scrim at bottom
  these are above the PIP in z-order
- On lift up or when PIP is dismissed, info text + scrim also hide
- Alters dismiss animation to use end point on trajectory of finger and
  use FlingAnimationUtils when flinging

Test: Drag PIP around screen, notice dismiss scrim + text appear, dismiss
      PIP and scrim / text also disappear
Bug: 35358628
Change-Id: Ibc0f6a884903f7d1b3ca2fd5c20647b4acf15a71
13 files changed:
packages/SystemUI/res/drawable-hdpi/pip_dismiss_scrim.9.png [new file with mode: 0644]
packages/SystemUI/res/drawable-mdpi/pip_dismiss_scrim.9.png [new file with mode: 0644]
packages/SystemUI/res/drawable-xhdpi/pip_dismiss_scrim.9.png [new file with mode: 0644]
packages/SystemUI/res/drawable-xxhdpi/pip_dismiss_scrim.9.png [new file with mode: 0644]
packages/SystemUI/res/drawable-xxxhdpi/pip_dismiss_scrim.9.png [new file with mode: 0644]
packages/SystemUI/res/drawable/pip_dismiss_background.xml [deleted file]
packages/SystemUI/res/layout/pip_dismiss_view.xml
packages/SystemUI/res/values/dimens.xml
packages/SystemUI/res/values/strings.xml
packages/SystemUI/src/com/android/systemui/pip/phone/PipDismissViewController.java
packages/SystemUI/src/com/android/systemui/pip/phone/PipMenuActivity.java
packages/SystemUI/src/com/android/systemui/pip/phone/PipMotionHelper.java
packages/SystemUI/src/com/android/systemui/pip/phone/PipTouchHandler.java