diff options
author | Tor Norbye <tnorbye@google.com> | 2011-04-06 20:36:57 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2011-06-01 17:45:53 -0700 |
commit | 429ae88878cf781753d8261d350ad89fe5864169 (patch) | |
tree | b7331e62ede8fb3a1c99277be12cdb21ac0bd675 /eclipse/dictionary.txt | |
parent | 309bf38f0727692ad88b1b5e60bcc417a292c284 (diff) | |
download | sdk-429ae88878cf781753d8261d350ad89fe5864169.zip sdk-429ae88878cf781753d8261d350ad89fe5864169.tar.gz sdk-429ae88878cf781753d8261d350ad89fe5864169.tar.bz2 |
Add Resize Support to the Layout Editor
This changeset adds "resizing" support to the layout editor.
First, the normal selection overlay is replaced with a selection
rectangle which also has "selection handles" in the corners and in the
middle of each edge. Moving the cursor over one of the selection
handle will show a directional resize cursor, and dragging the handle
will initiate a new resizing gesture. (This also made it possible to
remove the selection fill we've used until now, so the layout editor
will "interfere" less with the visual look of the layout.)
During the resizing operation, the current size is displayed in the
Eclipse status bar.
The resizability of widgets is determined by metadata, so for example
a ZoomControls widget is not resizable, a rating bar is only
horizontally resizable, a TableRow is only vertically resizable, and
most widgets are resizable in any direction.
The parent layout is involved in the resizing operation. Currently,
the resizing gestures will only update the width and height properties
(except for absolute layout, which will also set the x and y
properties if you are dragging a left or top edge). In a follow up
changeset this will be extended to for example make RelativeLayout
allow resize dragging to snap to new edges and the resize will be
applied as a set of new constraints on the "resized" widget. Thus,
you'll be able to drag the right hand side of a widget and drag it
over to attach to some other widget or edge, independent of what the
left edge or vertical edges are bound to.
This changeset also adds the ability for ViewRules to provide a
message or error message back to the IDE during a drag or resize
operation. For resizing this is used to display the new size. However,
it is now also used to display more useful messages in a couple of
older scenarios:
* Attempting to drag anything into a ListView will display a message
that AdapterViews much be configured via Java code
* Attempting to drag anything into or within an AbsoluteLayout will
warn that AbsoluteLayouts are deprecated.
Note that resizing will currently set the size to specific pixel (dip)
sizes. In the next changeset I will add guidelines which (in addition
to those described for RelativeLayout above) will add guidelines for
significant sizes such as the parent size, the preferred
(wrap_content) size of the widget, and possibly other hardcoded sizes
in the same layout.
Change-Id: Ie4f3367e81b24259a106c649c944008f4a3d31ec
Diffstat (limited to 'eclipse/dictionary.txt')
-rw-r--r-- | eclipse/dictionary.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/eclipse/dictionary.txt b/eclipse/dictionary.txt index 39e3258..688004c 100644 --- a/eclipse/dictionary.txt +++ b/eclipse/dictionary.txt @@ -70,6 +70,7 @@ dirs discoverable ditto docs +dp dpi drawable drawables @@ -166,6 +167,7 @@ programmatically proguard proxies proxy +px quickfix recompilation rect @@ -181,6 +183,8 @@ reparse reparses rescales residual +resizability +resizable rollback sans scrollable |