OSDN Git Service

[QS] Add header tooltip for long press
authorRohan Shah <shahrk@google.com>
Tue, 20 Feb 2018 19:27:22 +0000 (11:27 -0800)
committerRohan Shah <shahrk@google.com>
Wed, 21 Feb 2018 18:12:33 +0000 (10:12 -0800)
commitdb2cfa36097e01a94c75d11c913424816c92b447
treeb458b425ee53bf7180a7875563c48fe9c10484b5
parent29f1cdd5d3acc79a787e372cac02f7e216ea033e
[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: I70e4654ed95057fac6d8dbb890d575c2a5d9f215
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