History log of /frameworks/base/core/java/com/android/internal/view/TooltipPopup.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bdd2c25ef69148e52dd406615efbd4e5ad41b335 29-Nov-2017 Vladislav Kaznacheev <kaznacheev@google.com> Fix horizontal position of tooltip in a Dialog

When calculating the horizontal offset, use the top level view's width
instead of getWindowVisibleDisplayFrame (which is misleading for Dialog
windows).

Bug: 69911773
Test: manual
Change-Id: I040917d5beb123cc137da5a0c926a45a12e66234
/frameworks/base/core/java/com/android/internal/view/TooltipPopup.java
df6ee1ecbe1d452be1f32bae42871722b2f0de3e 23-Aug-2017 Vladislav Kaznacheev <kaznacheev@google.com> Fix tooltips for views in a popup window

The current implementation is using the anchor view's getWindowToken to
construct the TooltipPopup instance. This does not work if the anchor
view is in a popup window.

Using getApplicationWindowToken fixes the problem.

Bug: 64595364
Test: android.view.cts.TooltipTest#testTooltipInPopup
Change-Id: I1a887c9ae6ac00f2412891f316367acfc56cef94
/frameworks/base/core/java/com/android/internal/view/TooltipPopup.java
dd469d171d7503da3b8602c3ff0317b81792f2c0 16-Jun-2017 Vladislav Kaznacheev <kaznacheev@google.com> Do not update currently open tooltip.

Currently if View.setTooltipText is called while
the tooltip is being shown for that view, it will
update the displayed text. The tooltip then will
resize to wrap around the new text, but not change
its position. This looks confusing if the new text
is significantly shorter or longer.

Removing this functionality until proper
re-positioning is implemented.

Bug: 38491655
Test: android.view.cts.TooltipTest passes
Change-Id: I79689288185888854b992b89e19fe381d3ac50e4
/frameworks/base/core/java/com/android/internal/view/TooltipPopup.java
d85915f78694dc15ee9ca1bbdbccffc183399810 12-Jun-2017 Vladislav Kaznacheev <kaznacheev@google.com> Pass window token when creating a tooltip popup

This allows using tooltips in System UI.

Bug: 62065980
Test: android.view.cts.TooltipTest passes
Change-Id: If0a76d0806aa92efa4be57204c4517242b0ebb99
/frameworks/base/core/java/com/android/internal/view/TooltipPopup.java
7410170ddc2b19d57e33c04217a721a2572d4853 12-Jun-2017 Vladislav Kaznacheev <kaznacheev@google.com> Revert "Use a PopupWindow to show tooltips"

This reverts commit 77e539775b52da55a8b23f1a9765d471ee782013.

Change-Id: Ic4054e0d507ce95ab93282d4da002dd804aeb26d
/frameworks/base/core/java/com/android/internal/view/TooltipPopup.java
77e539775b52da55a8b23f1a9765d471ee782013 01-Jun-2017 Manu Cornet <manucornet@google.com> Use a PopupWindow to show tooltips

This allows tooltips to work even in a context where they don't belong
in any activity (and therefore no window token to use). It also
simplifies a tiny bit the logic of how to get the view to show up.

Test: Checked tooltip behavior in and outside an app
Bug: 62065980
Change-Id: I6c02009c4fdd6d4bc4fa2cf8019955360506f0ee
/frameworks/base/core/java/com/android/internal/view/TooltipPopup.java
7039cbc6f3a596aee6851014019849490f358f13 04-Jan-2017 Vladislav Kaznacheev <kaznacheev@google.com> Add content description and tooltip to menu item

Bug: 34076597
Test: manual
Change-Id: Ide32463252457721286c929ab2f8f7bae241835d
/frameworks/base/core/java/com/android/internal/view/TooltipPopup.java
20a12da3ce5bf1bea6e580ef36e92ce26b21b0ea 06-Dec-2016 Vladislav Kaznacheev <kaznacheev@google.com> Adjust tooltip layout

Position a mouse hover tooltip closer to the target.
Limit tooltip width and make it multiline (maxLines=3).
Show a long press tooltip above the target, not below.

Bug: 33352391
Bug: 33353823
Bug: 33354000

Test: manual
Change-Id: Ie00353d715d73d432b5d892a0a7c04508a003a78
/frameworks/base/core/java/com/android/internal/view/TooltipPopup.java
f847ee3c3d68e58b0a1a545bd7358ebb32f6948a 21-Nov-2016 Vladislav Kaznacheev <kaznacheev@google.com> Implement tooltip support in View

Adding View.setTooltip/getTooltip and 'tooltip' layout attribute.
Following Material Design spec for styles and behavior.

Bug: 31515376
Test: cts-tradefed run singleCommand cts -m CtsViewTestCases
--test android.view.cts.TooltipTest

Change-Id: I2d2527f642cd7446ffc88d4beffc7b81d7a2f6d6
/frameworks/base/core/java/com/android/internal/view/TooltipPopup.java