OSDN Git Service

[QS] Add header tooltip for long press
authorRohan Shah <shahrk@google.com>
Tue, 30 Jan 2018 19:24:42 +0000 (11:24 -0800)
committerRohan Shah <shahrk@google.com>
Mon, 12 Feb 2018 19:50:03 +0000 (11:50 -0800)
commit22caf078e493ff49e021a8f5af80ac10d4926feb
tree35f25c2d15169938b5e7746017060a6ca657b8e6
parentc9bb8570260c0ca194883a98d270b8a7595646b0
[QS] Add header tooltip for long press

Added some hooks in animator to pass along expanded/animating/collapsed
state in a more clear manner. Added tooltip view with the teaser text to
animate in at the top of the view (and fade out either when we start
animating or automatically after 5 seconds).

Added prefs for tracking how often tooltip is shown/hiding it based on
that number.

Updated dimensions for correct spacing (based on redlines).

Test: Visually
Bug: 72528203
Change-Id: Ided991da43fbede43c84c53ef22688d21aabe291
13 files changed:
packages/SystemUI/res/layout/quick_settings_header.xml [new file with mode: 0644]
packages/SystemUI/res/values-sw600dp-land/dimens.xml
packages/SystemUI/res/values/dimens.xml
packages/SystemUI/res/values/strings.xml
packages/SystemUI/src/com/android/systemui/Prefs.java
packages/SystemUI/src/com/android/systemui/qs/QSAnimator.java
packages/SystemUI/src/com/android/systemui/qs/QSPanel.java
packages/SystemUI/src/com/android/systemui/qs/QSTooltipView.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/qs/QuickQSPanel.java
packages/SystemUI/src/com/android/systemui/qs/TileLayout.java
packages/SystemUI/src/com/android/systemui/qs/TouchAnimator.java
packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileImpl.java
packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/QSTileImplTest.java