diff options
author | Tor Norbye <tnorbye@google.com> | 2011-07-12 14:21:08 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2011-07-27 18:42:19 -0700 |
commit | cb7c663420f00194d14c511d4e5a14e3622200a9 (patch) | |
tree | 0661bde7039a000c061475eb6551766650f35652 /eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/api | |
parent | a7fae9fb391c88c41141df74708e135d2f8ad0c1 (diff) | |
download | sdk-cb7c663420f00194d14c511d4e5a14e3622200a9.zip sdk-cb7c663420f00194d14c511d4e5a14e3622200a9.tar.gz sdk-cb7c663420f00194d14c511d4e5a14e3622200a9.tar.bz2 |
Add tooltip drag feedback for relative layout
This changeset adds tooltip drag feedback for RelativeLayout. During
dragging, the matched edge can quickly change from the left side to
the right side or the top to the bottom edge, so the tooltip support
now allows a client to specify where to align the tooltip not just at
creation but also during updates. This is particularly important for
RelativeLayout where we need to ensure that the tooltips do not
obscure the constraint feedback arrows. And to prevent flicker, it
uses a timer to ensure that there is at least 750 ms between the
repositioning of the tooltip (but it will apply a side change
immediately if it has been 750 ms since the last time the alignment
changed).
Change-Id: I8817db67844ad13c651d343ad310d8646e34dfca
Diffstat (limited to 'eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/api')
-rwxr-xr-x | eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/api/DropFeedback.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/api/DropFeedback.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/api/DropFeedback.java index 551cb3c..4be9c9e 100755 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/api/DropFeedback.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/api/DropFeedback.java @@ -148,6 +148,16 @@ public class DropFeedback { public String tooltip; /** + * Horizontal alignment for the tooltip, or null if no preference + */ + public SegmentType tooltipX; + + /** + * Vertical alignment for the tooltip, or null if no preference + */ + public SegmentType tooltipY; + + /** * A mask of the currently held keyboard modifier keys - some combination of * {@link #MODIFIER1}, {@link #MODIFIER2}, {@link #MODIFIER3}, or none. */ |