OSDN Git Service
Tor Norbye [Fri, 29 Jul 2011 18:48:40 +0000 (11:48 -0700)]
Customize Quick Outline for Layout and Resource editors
The XML editor has a Quick Outline (Cmd-O) but it only displays the
tag name. This means that you only see "Button" instead of ids to
distinguish similar widgets - and it also means that you can't filter
based on the ids or names.
This changeset adds a custom configuration for the XML quick outline
used by the layout editor and the resource editor which includes the
id or name attributes, and it also picks up the palette icons for the
various widgets.
Change-Id: I08e5d8d10f8f2ad0c2633488d3520d48da6c20cb
Tor Norbye [Wed, 27 Jul 2011 23:51:06 +0000 (16:51 -0700)]
Merge "Allow GridLayout to exist in project packages"
Tor Norbye [Fri, 15 Jul 2011 20:04:29 +0000 (13:04 -0700)]
Allow GridLayout to exist in project packages
Change-Id: Ia455a9c9de853dcc0e5152a8b24a09192c39b3b4
Tor Norbye [Wed, 27 Jul 2011 23:48:46 +0000 (16:48 -0700)]
Merge "18623: Adding ImageView in xml file causes crash of Eclipse"
Tor Norbye [Wed, 27 Jul 2011 23:48:25 +0000 (16:48 -0700)]
Merge "Asset Studio wizard"
Tor Norbye [Sat, 16 Jul 2011 04:16:56 +0000 (21:16 -0700)]
Asset Studio wizard
This is an initial integration of the Android Asset Studio into
Eclipse, as a New Asset wizard. It uses the Java port of the Android
Asset Studio to generate the assets:
https://code.google.com/a/google.com/p/android-asset-studio-java/
It only supports launcher icons, and some of the configurable
parameters (file, shape, crop).
To run it, put the AssetStudioLib.jar file into the the adt libs
directory.
There's a new "Asset Set" wizard in the New wizard, which will open up
a two page wizard; the first page lets you select the project (which
it attempts to pick up from context), as well as the type of asset to
create, and the asset output name.
In the second page there are the various widgets to tweak the code
generator, and a preview area on the right which updates as you tweak
the various controls.
The main remaining work is to support additional asset types as
they are added to the assetstudio generator library.
Change-Id: I2e556337f8e5c3bc09e84b35a342ba05110abebc
Xavier Ducrohet [Wed, 27 Jul 2011 23:31:18 +0000 (16:31 -0700)]
Merge "Initial commit for the Asset Studio library in the SDK"
Tor Norbye [Wed, 27 Jul 2011 23:15:21 +0000 (16:15 -0700)]
Merge "Fix undo problems in the XML editor (issue #15901)"
Tor Norbye [Wed, 27 Jul 2011 23:15:08 +0000 (16:15 -0700)]
Merge "Sort XML attributes logically"
Raphael Moll [Wed, 27 Jul 2011 20:23:08 +0000 (13:23 -0700)]
Merge changes I984ae397,I24f74378
* changes:
SDK Man2: Clear local source caches when reloading.
A few minor UI tweaks to SDK Manager 2.
Raphael Moll [Wed, 27 Jul 2011 20:20:25 +0000 (13:20 -0700)]
Merge "SDK Manager2: revamp package diff logic."
Tor Norbye [Wed, 27 Jul 2011 17:18:59 +0000 (10:18 -0700)]
Merge "Fix code completion handling for text selection"
Tor Norbye [Wed, 27 Jul 2011 16:42:51 +0000 (09:42 -0700)]
Merge "Fix 18539: "Extract Android String" mangles the replacement str"
Tor Norbye [Wed, 27 Jul 2011 02:15:32 +0000 (19:15 -0700)]
18623: Adding ImageView in xml file causes crash of Eclipse
Catch exceptions encountered during preview rendering in resource
choosers to ensure that they don't derail the chooser dialog.
Change-Id: I6a0763cea2598b609283d284967c1121b1b18fdb
Tor Norbye [Wed, 27 Jul 2011 01:44:46 +0000 (18:44 -0700)]
Fix 18539: "Extract Android String" mangles the replacement str
The refactoring could end up processing the current Java file twice -
first using the normal code path, and a second time if the "Replace in
All Java Files" checkbox was checked. This second pass would add a
second set of edits which would mangle the file.
Change-Id: I99ed50ab477af12d7fb54a7de6401689dad5d104
Tor Norbye [Wed, 27 Jul 2011 00:43:22 +0000 (17:43 -0700)]
Fix code completion handling for text selection
This CL fixes
18607: ADT 12 problems with xml files
The bug is that if there is a text selection and you invoke code
completion and select an alternative, the wrong number of characters
is deleted as part of the replacement.
The fix is simple: remove the code which adds in the selection count
from the replacement string, since the complete replacement count is
now already computed properly without regard for the selection (we
should -always- replace the complete value token, not just the
selection).
Most of the diffs actually pertain to new unit tests for this because
the testing infrastructure needed some changes to handle references to
selection ranges rather than just caret offsets.
There are also a couple of updates to some test goldenfiles unrelated
to this fix, which updates the golden files to reflect recent changes
like the package name of GestureOverlayViews and the @attr resource
type in completion.
Change-Id: Ie4f680f201930414457a79846f722db6efc89f93
Raphael Moll [Tue, 26 Jul 2011 17:21:00 +0000 (10:21 -0700)]
SDK Man2: Clear local source caches when reloading.
Change-Id: I984ae397ada014ff8869d5775be1bc779ef22319
Raphael Moll [Mon, 25 Jul 2011 22:59:37 +0000 (15:59 -0700)]
A few minor UI tweaks to SDK Manager 2.
- Make the tree filter checkboxes (new, installed, obsolete)
work again but this time by using a proper TreeViewer filter.
- Fix missing name column icons in the TreeViewer.
- Fix display of obsolete items, trimming the duplicated platform
name when possible.
Change-Id: I24f743788b01fe8c9c5f9a7f9b301f725e32f666
Raphael Moll [Thu, 21 Jul 2011 22:53:43 +0000 (15:53 -0700)]
SDK Manager2: revamp package diff logic.
This revamps the diff algorithm used to merge
the local and remote packages found during a
repository load into the PkgItems displayed in
the tree viewer.
FYI all the Package and Archive sub-classes are getting
an equals() and hashCode() methods to make them behave
correctly when put it in a HashTable or Set. These are
the auto-generated stuff from Eclipse.
Change-Id: I1494a0ed44cd768eed252e3a81b9e74bf86d563c
Raphael Moll [Mon, 25 Jul 2011 21:32:36 +0000 (14:32 -0700)]
Merge "SDK Man2: New UTs for install/delete cases."
Raphael Moll [Wed, 20 Jul 2011 21:36:00 +0000 (14:36 -0700)]
SDK Man2: New UTs for install/delete cases.
Change-Id: I1f1e95592f4946ab61ad512f187f87be60ea5834
Xavier Ducrohet [Thu, 21 Jul 2011 19:52:13 +0000 (12:52 -0700)]
Merge "Fix possible NPE in prop page if ProjectState is null."
Josiah Gaskin [Thu, 21 Jul 2011 16:51:17 +0000 (09:51 -0700)]
Merge "Add support for aapt CrunchCache in ADT and Ant"
Josiah Gaskin [Tue, 7 Jun 2011 23:06:06 +0000 (16:06 -0700)]
Add support for aapt CrunchCache in ADT and Ant
This change lets ADT and Ant use the crunch cache system
set up in change I58271fb2. This commit is separate because
sdk and framework are separate git repositories.
Change-Id: If2828d157acad0b5adb812001e777c199e3c62fe
Josiah Gaskin [Thu, 21 Jul 2011 16:48:04 +0000 (09:48 -0700)]
Merge "Add support to Ant for packaging dependency checks"
Xavier Ducrohet [Thu, 21 Jul 2011 00:24:19 +0000 (17:24 -0700)]
Fix possible NPE in prop page if ProjectState is null.
If default.prop is not present then ProjectState is null,
but the property page is required to set the target (to create
the file)...
Change-Id: I8bb9337476c4de1d20feca946a6f2361dc8c9af3
Josiah Gaskin [Wed, 20 Jul 2011 23:00:22 +0000 (16:00 -0700)]
Merge "Fix to avoid NPE in ADT PreCompiler"
Josiah Gaskin [Wed, 20 Jul 2011 22:52:56 +0000 (15:52 -0700)]
Fix to avoid NPE in ADT PreCompiler
This change removes the possibility of throwing an NPE when calling
AAPT from the PreCompilerBuilder.
Change-Id: I521e4088d1f0942e575d6edff91049c78d9c1eb8
Raphael Moll [Wed, 20 Jul 2011 20:41:23 +0000 (13:41 -0700)]
Merge "SDK Manager 2: incremental sort when sorting by source + UT"
Josiah Gaskin [Wed, 20 Jul 2011 17:14:30 +0000 (10:14 -0700)]
Merge "Add support to Ant for dependency checking"
Josiah Gaskin [Wed, 20 Jul 2011 17:14:15 +0000 (10:14 -0700)]
Merge "Adding support to ADT and ant for smart R.java gen"
Xavier Ducrohet [Wed, 20 Jul 2011 00:21:13 +0000 (17:21 -0700)]
Merge "Properly unload the target data when unloading an sdk."
Xavier Ducrohet [Tue, 19 Jul 2011 18:35:23 +0000 (11:35 -0700)]
Properly unload the target data when unloading an sdk.
Change-Id: I927071585db46de12635b483b3a466e671a3bff6
Xavier Ducrohet [Wed, 20 Jul 2011 00:15:45 +0000 (17:15 -0700)]
Merge "Add 7" tablets to device list used in the layout editor."
Xavier Ducrohet [Tue, 19 Jul 2011 00:18:33 +0000 (17:18 -0700)]
Merge "Android project's output for JDT is now bin/classes/"
Xavier Ducrohet [Tue, 25 Jan 2011 18:34:09 +0000 (10:34 -0800)]
Android project's output for JDT is now bin/classes/
This matches the bin structure of the Ant build system where
the javac output is in bin/classes/ and the Android specific files
are in bin/
Also, this will allow us better control of android output files
as they won't conflict with javac's output.
New projects are created with this setup and existing projects
are converted as they are opened.
Change-Id: I83339906b0d43d7a988a75927c60b664c183d27f
Josiah Gaskin [Fri, 24 Jun 2011 21:58:32 +0000 (14:58 -0700)]
Add support to Ant for packaging dependency checks
This change adds in support for making aapt generate a dependency
file for the .ap_ package generated during resource packaging. Ant
will then check this dependency file before calling aapt again and
will only repackage resources if the dependencies have been modified
in some way.
Change-Id: I56462163c5dd064c1416bc43913f044df8ee9be1
Josiah Gaskin [Wed, 22 Jun 2011 21:32:09 +0000 (14:32 -0700)]
Add support to Ant for dependency checking
This change adds dependency checking to the Ant generation of
R.java. If no resources have been changed or added since the
last generation of R.java then that call to aapt will be skipped.
Change-Id: I262b94111316496fac54da8030a6d474dc30b584
Josiah Gaskin [Thu, 9 Jun 2011 22:45:04 +0000 (15:45 -0700)]
Adding support to ADT and ant for smart R.java gen
This change lets ADT and ant make use of the new
--extra-packages flag in aapt to allow for all the R.java
files to be generated using only one call rather than one call
per library.
Change-Id: Ibc060b1218010cfbae108f4f1aba2c25fe69a964
Kenny Root [Mon, 18 Jul 2011 23:57:32 +0000 (16:57 -0700)]
Merge "More features for adb bash_completion"
Xavier Ducrohet [Mon, 18 Jul 2011 22:57:08 +0000 (15:57 -0700)]
Merge "Various fixes to the DDMS Native heap panel."
Xavier Ducrohet [Mon, 18 Jul 2011 22:54:39 +0000 (15:54 -0700)]
Various fixes to the DDMS Native heap panel.
Change-Id: I468be358b937f63adca3528fb66aa5d70e2e6827
Kenny Root [Fri, 15 Jul 2011 23:30:56 +0000 (16:30 -0700)]
More features for adb bash_completion
* Aborts early if "adb" isn't in the path.
* Clean up formatting to be more friendly to vim's syntax highlighter.
* Add vim mode line
* Adds these adb commands:
install
uninstall
push
pull
reboot
* Rename "adb" to "adb.bash" so we can filter out more effectively.
Change-Id: I76cff06a12cd827ba1d901ac3005059635454822
Xavier Ducrohet [Sun, 17 Jul 2011 21:28:40 +0000 (14:28 -0700)]
Merge "Read the default skin from sdk.properties."
Xavier Ducrohet [Sun, 17 Jul 2011 21:19:56 +0000 (14:19 -0700)]
Read the default skin from sdk.properties.
Change-Id: Ifad6f2186e499f579df1608055dda4eca1084830
Raphael Moll [Thu, 14 Jul 2011 04:49:51 +0000 (00:49 -0400)]
SDK Manager 2: incremental sort when sorting by source + UT
Also fixes some edge cases with the sort-by-api and ensure
switching between sorts doesn't mess too much with the
packages shown.
Change-Id: I7da43915f4e48bd6cd80760a6a15d657777fa0f7
Roman Nurik [Fri, 15 Jul 2011 23:39:34 +0000 (16:39 -0700)]
Initial commit for the Asset Studio library in the SDK
Change-Id: I8f0aa6283af03c64c3563530defcf57ee2238bd8
Tor Norbye [Sat, 16 Jul 2011 01:12:34 +0000 (18:12 -0700)]
Merge "Add new InsertType for widget moves within the same layout"
Josiah Gaskin [Fri, 15 Jul 2011 22:15:14 +0000 (15:15 -0700)]
Merge "Fix to build dependencies during delayed PostComp"
Tor Norbye [Fri, 15 Jul 2011 22:09:24 +0000 (15:09 -0700)]
Merge "Adjust API level for phone comparator"
Kenny Root [Fri, 15 Jul 2011 19:34:15 +0000 (12:34 -0700)]
Merge "Add bash_completion scripts for adb"
Kenny Root [Fri, 15 Jul 2011 17:49:53 +0000 (10:49 -0700)]
Add bash_completion scripts for adb
Adds rudimentary support for bash_completion using adb. It supports all
the optional arguments for adb, completion of individual commands, and
support for calling into the "shell" function and filename completion
within the shell.
Change-Id: I8e5ca53f3988140dc169a2e353dd92ff0438d6b7
Tor Norbye [Fri, 15 Jul 2011 03:16:52 +0000 (20:16 -0700)]
Fix undo problems in the XML editor (issue #15901)
We've had a recurring problem where in difficult-to-reproduce
circumstances the Undo button doesn't seem to work: After making some
edits like dropping a button, each press of the Undo button will each
individual edit of the compound operation, such as undoing each
attribute set, each element add, and so on -- just as if the entire
edit operation did not run under an undo lock.
This changeset fixes this issue - or at least one scenario of it
(tracked in http://code.google.com/p/android/issues/detail?id=15901 )
It turns out that Eclipse in some cases decides to "cancel" the current
Undo operation. This is done in reaction to selection changes, and the
logic for that is related to a user using a form editor to switch
between various attribute fields, and expecting each text field edit
to be separate. In the above issue I've listed a thread dump which
shows one such cancellation which is definitely not desirable.
To fix this bug we add a workaround: In our code which sets up the
undo recording, we call "beginRecording" -repeatedly- (say 4 times).
Since undo units are allowed to be nested, this means we're nesting
our own undos 4 times, and when we're finished with the editing
operation we simply call endRecording a corresponding number of
times. This means that when the offending code comes around and calls
StructuredTextUndoManager.forceEndOfPendingCommand it will subtract
the command count by one, but we'll still be in one of our nested
contexts (and the editor does allow extra endRecording calls to be
called).
Change-Id: Ic4dde029efcb18def3c9daa5d3676c49a815d804
Tor Norbye [Thu, 14 Jul 2011 22:35:14 +0000 (15:35 -0700)]
Sort XML attributes logically
This changeset modifies the layout editor such that it writes
attributes in a certain order:
* id
* style
* layout_width
* layout_height
* other layout_ attributes, sorted alphabetically
* other attributes, sorted alphabetically
The layout editor will produce attributes in this order when
- New widgets are dragged into the layout
- Widgets are moved in the layout
- It will also insert attributes in the right place when they are set
as the result of (for example) using the context menu actions.
Note that this ordering is applied unconditionally - there is no user
setting to turn it off. However, note that the current behavior is
random - moving a view for example will scramble the attributes (in an
order which is related to hashkeys in a map), so the option would be
"sort attributes logically" versus "sort attributes randomly"; if we
want an option to "leave attribute order alone" that will need to be
implemented.
Limitations:
- This does not yet modify the formatter to reorganize attributes.
Thus, Ctrl-Shift-F to reformat the XML will not change attribute
order.
- It does not fix the problem that the XML model updater does not
respect the formatting settings (such as one newline per attribute)
when manipulating attributes.
This will be addressed/worked around in subsequent CLs.
Implementation Note:
The Eclipse XML model updater will unconditionally *append* any new
attributes. We take advantage of this to perform attribute sorting by
ensuring that we always insert new attributes in the right order. We
also check for existing attributes and any which fall
lexicographically later than the new attributes are removed and
reinserted in the right sequence. In order to avoid performing these
removals and additions repeatedly on a node when we set multiple
attributes, and to avoid flushing attribute changes *immediately*
(which was the case until this), we now queue up all pending attribute
values in the nodes and apply them at the end when all attribute
changes for a given node are known.
Change-Id: If39f8c29f26e281f7c6622a31e11ba49724d274a
Tor Norbye [Thu, 14 Jul 2011 18:26:45 +0000 (11:26 -0700)]
Add new InsertType for widget moves within the same layout
For some layouts, such as LinearLayout, when you drag widgets into the
layout, we automatically adjust the widths and heights of some
widgets, such as text fields (to make them fill the full width in a
vertical linear layout, and so on).
However, this was also done when dragging a widget from one place to
another within that same layout. In that case, we should leave the
dimensions and weights alone, since the user may have deliberately
changed these.
This requires splitting the InsertType.MOVE into two, since we still
want to apply default sizing when you move a widget from a different
layout into this one. The InsertTypes are now MOVE_INTO and
MOVE_WITHIN, and we only apply default size styling if we are not
moving within the same layout.
Change-Id: I73ace89aff8111417bd6635e13397e7f027bab0a
Xavier Ducrohet [Thu, 14 Jul 2011 01:40:58 +0000 (18:40 -0700)]
Add 7" tablets to device list used in the layout editor.
Change-Id: Ib46d23c1ad85e2b0b4b77040cd3498051c79e926
Raphael Moll [Wed, 13 Jul 2011 23:48:23 +0000 (16:48 -0700)]
Merge "SdkManager: fix issue with double-packages on reload."
Tor Norbye [Wed, 13 Jul 2011 23:29:22 +0000 (16:29 -0700)]
Adjust API level for phone comparator
Change-Id: Ia8220aca9c4bb338d8a26d9878f56449060cd51d
Tor Norbye [Wed, 13 Jul 2011 23:24:39 +0000 (16:24 -0700)]
Merge "Adjust the match position description to be relative to the layout"
Raphael Moll [Fri, 8 Jul 2011 21:12:56 +0000 (17:12 -0400)]
SdkManager: fix issue with double-packages on reload.
Rewrote the merge in place + sort of packages by API.
Did some refactoring + added some unit tests.
Change-Id: I168b306853185866606ed76c324a8db6051b15bb
Tor Norbye [Wed, 13 Jul 2011 15:53:12 +0000 (08:53 -0700)]
Adjust the match position description to be relative to the layout
Currently the matches displayed for absolute X and Y locations will
list the coordinates relative to the entire screen, not to the
surrounding GridLayout. This CL changes the feedback to be relative to
the GridLayout bounds.
Also fix a bug in updating tooltips/messages which would call tooltip
flicker (because the message update method was called too early,
before the message object was ready, causing the tooltip to be
removed, then reshown.)
Change-Id: I665586dbcb1f3f6cdcb3a3f475cf363cd258bf83
Raphael Moll [Wed, 13 Jul 2011 02:38:34 +0000 (19:38 -0700)]
Merge "Fix android.bat for Windows SDK."
Tor Norbye [Wed, 13 Jul 2011 02:38:03 +0000 (19:38 -0700)]
Merge "Support XML closed elements"
Raphael Moll [Wed, 13 Jul 2011 02:23:18 +0000 (19:23 -0700)]
Merge "Properly support spaces in ant project directories."
Tor Norbye [Wed, 13 Jul 2011 01:28:25 +0000 (18:28 -0700)]
Merge "Fix resize feedback for cell spanning mode"
Tor Norbye [Wed, 13 Jul 2011 01:28:18 +0000 (18:28 -0700)]
Merge "Describe GridLayout matches in drag tooltip"
Tor Norbye [Tue, 12 Jul 2011 22:32:26 +0000 (15:32 -0700)]
Support XML closed elements
When you create new elements (by for example dragging a view into a
layout), ADT would *always* create an open element, e.g.
<Button ...></Button>
This CL uses the element descriptors to create closed elements like
this:
<Button .../>
For elements that support children it will continue to create open
elements:
<LinearLayout ...></LinearLayout>
Change-Id: I885fc4bb2611e20d511a3a40c81e202de00b7ac2
Tor Norbye [Tue, 12 Jul 2011 18:11:04 +0000 (11:11 -0700)]
Fix resize feedback for cell spanning mode
When resizing in a GridLayout you can toggle whether you are resizing
the widget or the cell bounds with the Shift key (and the resize
feedback tells you this).
However, the drawn resize feedback was always showing the widget
bounds. This CL fixes this such that when you are resizing the cell
bounds, the current cell bounds are displayed instead.
(Also contains a simple fix to ensure feedback is drawn when you
click and hold (without dragging yet) on a resize handle.)
Change-Id: I7cf24f4508aa5bbafd45f36b13be41e66ecbc6cc
Tor Norbye [Tue, 12 Jul 2011 17:59:59 +0000 (10:59 -0700)]
Describe GridLayout matches in drag tooltip
This CL adds a description of the current best match (horizontal and
vertical) in a drag tooltip, such as "Insert into bottom of row 5" or
"Align right at x=120".
Change-Id: I08d6b158c5e48d1881ec946037389609d8be9d83
Raphael Moll [Tue, 12 Jul 2011 02:11:32 +0000 (22:11 -0400)]
Properly support spaces in ant project directories.
After applying https://review.source.android.com/24515 for
the dalvik/dx change, this allows ant project to build
correctly on Windows if there's a space in their directory
path.
Change-Id: I4c6d5f87fae2dcf2955698633a16a0bde501694f
Tor Norbye [Mon, 11 Jul 2011 23:04:51 +0000 (16:04 -0700)]
Merge "Grid Layout Support."
Tor Norbye [Thu, 7 Jul 2011 19:07:02 +0000 (12:07 -0700)]
Grid Layout Support.
This changeset adds basic support for grid layouts:
- Freeform mode where you can drag & drop anywhere in the layout, and
guidelines are offered to align with other left boundaries, right
boundaries, baseline vertical alignment and center layout horizontal
alingment. In addition, it also offers "preferred spacing"
positioning, using the recommended distance between widgets.
Also, during a drag a regular 16x16 grid is also (faintly) shown and
(when there are no alignment matches as explained above) the
position snaps to this grid.
We also show the grid-structure (rows and columns, not the regular
snapping grid) during drags to make it more obvious that behind the
scenes there is a grid (because some other operations might shift
rows and columns so it's important to present the right user model.)
The freeform grid layout editor will automatically create rows and
columns and size them using spacers which are hidden from the user,
and on deletion these are automatically cleaned up as well.
- Grid mode where you can drag to any given cell, or between any two
rows or columns.
- Some layout actions for manipulating the grid (add/remove row and
column, adjust the gravity, toggle modes.)
This CL also contains various diagnostics code for the grid mode, and
does not yet correctly support dragging multiple views simultaneously.
Change-Id: Ie9ec54805039645e3db78d19095da86b04e44ca0
Tor Norbye [Mon, 11 Jul 2011 22:26:09 +0000 (15:26 -0700)]
Merge "Fix merge error"
Tor Norbye [Mon, 11 Jul 2011 22:25:24 +0000 (15:25 -0700)]
Fix merge error
Change-Id: Iac2dcc3a504ab2dbc500bcd882d61b460879c7eb
Tor Norbye [Mon, 11 Jul 2011 22:18:16 +0000 (15:18 -0700)]
Merge "Add AdapterView handling for Spinners"
Tor Norbye [Mon, 11 Jul 2011 19:53:58 +0000 (12:53 -0700)]
Add AdapterView handling for Spinners
This CL adds AdapterView handling similar to what we already provide
for ListViews and GridViews for Spinners. This means that it will
provide an adapterbinding which provides a layout to use at
designtime. It also adds the ability to pick a different layout to use
at designtime.
More importantly, this fixes rendering of Spinners on Theme.Holo.
Change-Id: I30cef98d22ed57b2e698c4590948e25bf3fecedd
Tor Norbye [Mon, 11 Jul 2011 22:14:07 +0000 (15:14 -0700)]
Merge "Add resize feedback tooltip"
Tor Norbye [Mon, 11 Jul 2011 05:22:08 +0000 (22:22 -0700)]
Add resize feedback tooltip
This changeset adds a "tooltip" during resize operations close to the
mouse cursor which displays feedback about the current resize
dimensions.
The feedback window is similar in appearance to a tooltip, but unlike
SWT tooltips it moves with the cursor and updates the text
dynamically, and appears immediately rather than being tied to mouse
motion timeouts. It is also partially translucent and uses a slightly
smaller font.
Change-Id: I6b663510f078f325d2f7b168c887aeff14de31b8
Josiah Gaskin [Mon, 11 Jul 2011 16:33:14 +0000 (09:33 -0700)]
Fix to build dependencies during delayed PostComp
This patch adds a boolean flag to ProjectHelper.build()
that when set ensures that all projects which are dependencies
of the project being built will be built as well.
This fixes buggy behavior where
a package would not be fully built when its JUnit tests
were built/run.
Change-Id: Iab19299ea980564345f2a7f30bf61a69d77d96ee
Tor Norbye [Mon, 11 Jul 2011 22:07:06 +0000 (15:07 -0700)]
Merge "Only set the text attribute on views that define it"
Tor Norbye [Mon, 11 Jul 2011 22:06:41 +0000 (15:06 -0700)]
Merge "Add support for hidden views"
Tor Norbye [Mon, 11 Jul 2011 22:06:32 +0000 (15:06 -0700)]
Merge "Simple insets support"
Tor Norbye [Mon, 11 Jul 2011 19:49:40 +0000 (12:49 -0700)]
Only set the text attribute on views that define it
Ensure that we only set the text attribute on widgets that define
it. Now that we preserve unknown attributes this meant that we'd end
up setting text attributes on all widgets rather than just those that
define it.
Change-Id: Ief67a777ca40149e0be370b7a561f80fbffa3d5d
Tor Norbye [Sat, 9 Jul 2011 03:36:32 +0000 (20:36 -0700)]
Merge "When using prerelease SDK versions, use codename instead of API level"
Tor Norbye [Thu, 7 Jul 2011 19:05:20 +0000 (12:05 -0700)]
Add support for hidden views
There are some views which should hide in the UI to avoid clutter,
such as <Space> widgets. This changeset adds support for hidden views,
such that they don't show up in the outline, don't show up for hovers,
aren't included in drag selections and so on.
Change-Id: Icb18f4530b8aff584e72280f5bd09e776af9204c
Tor Norbye [Thu, 7 Jul 2011 18:57:59 +0000 (11:57 -0700)]
Simple insets support
This changeset adds the basic plumbing for supporting insets, such
that selection handles can reflect the true bounds of a widget, and
such that guidelines which show adjacent matches can show and measure
the correct visual distance between the widgets.
The actual insets data is not available (though there are some
commented out measurements for some of the most important widgets,
like buttons), so the purpose of this changeset is to put the APIs in
place such that the various view rules can correctly account for these
deltas when they become available.
Change-Id: I326bfa22f0d239d76685b371d38bb8eac594a53b
Tor Norbye [Thu, 7 Jul 2011 18:44:18 +0000 (11:44 -0700)]
When using prerelease SDK versions, use codename instead of API level
The New Project wizard now automatically fills in the Minimum SDK text
field based on the selection in the SDK target chooser. However, it
was hardcoded to always pick the API level number. That's not correct
when using SDK versions with a code name; for example, when used with
a dev SDK build the minimum SDK version should be "AOSP".
Change-Id: I28273007be7e56f3a34b683f01234d5d1046aa0a
Tor Norbye [Sat, 9 Jul 2011 03:17:36 +0000 (20:17 -0700)]
Merge "Change scheme for picking tablet or phone configurations"
Tor Norbye [Sat, 9 Jul 2011 02:57:15 +0000 (19:57 -0700)]
Merge "Add deletion hooks for view rules"
Raphael Moll [Sat, 9 Jul 2011 01:17:48 +0000 (18:17 -0700)]
Merge "Add "android create avd --abi" parameter."
Raphael Moll [Fri, 8 Jul 2011 21:48:17 +0000 (17:48 -0400)]
Add "android create avd --abi" parameter.
SDK bug
4965341
Change-Id: Iaff42d1272a9c10ba62534c5d478e35e6c2df6e5
Xavier Ducrohet [Fri, 8 Jul 2011 20:48:19 +0000 (13:48 -0700)]
Merge "Remove System.exit from traceview code running in Eclipse."
Xavier Ducrohet [Fri, 8 Jul 2011 20:34:12 +0000 (13:34 -0700)]
Remove System.exit from traceview code running in Eclipse.
These are remnants of the standalone traceview version and they
can bring Eclipse down if the trace file can't be read.
Change-Id: Ic9a0171f307bc991cd000fa4d35d5c37b47e93b2
Raphaël Moll [Fri, 8 Jul 2011 17:16:17 +0000 (10:16 -0700)]
Merge "Fix locale handling of linear layout weights"
Tor Norbye [Fri, 8 Jul 2011 00:32:46 +0000 (17:32 -0700)]
Fix locale handling of linear layout weights
Fix 18298: ADT r12 layout editor uses locale specific decimal
separator leading to unparsable XML
Change-Id: Ideae319e41f8a7e34075065c63247d50cdf830c5
Tor Norbye [Thu, 7 Jul 2011 18:38:48 +0000 (11:38 -0700)]
Change scheme for picking tablet or phone configurations
Change the code which automatically picks tablet configurations when
the target SDK is 11+ such that it only does this for API 11 and API
12.
Change-Id: Ic59cdd4d7ac2d616069bf79e517987e5ce2517cc
Tor Norbye [Thu, 7 Jul 2011 18:36:11 +0000 (11:36 -0700)]
Add deletion hooks for view rules
This changeset adds a deletion hook to the view rule interface which
lets specific layouts perform cleanup when some of its children are
removed. This is vital for GridLayout where various rows and columns
need to be cleaned up.
In this changeset, this is used by RelativeLayout to remove constraint
references to widgets that have been deleted. Without this, you could
have Button2 reference Button1, then delete Button1, and when you drop
a new button, it will be assigned the now available name "Button1" and
the old constraint would kick back in!
Change-Id: Ic5829228cff38bfdc291988b1a2ef172e9aa4de5
Raphael Moll [Thu, 7 Jul 2011 11:40:06 +0000 (07:40 -0400)]
Fix android.bat for Windows SDK.
android.bat was not properly copying swtmenbar.jar
to the temp folder, so it wasn't found at runtime.
Also added some debug info wrapping the menu bar usage
and a comment on how to remotely debug the swtmanager.
Change-Id: Ibe3d4ad0534b0e276808a77a051ae279a315da06
Xavier Ducrohet [Thu, 7 Jul 2011 01:18:38 +0000 (18:18 -0700)]
Merge "Fix some override issues."
Xavier Ducrohet [Thu, 7 Jul 2011 00:28:42 +0000 (17:28 -0700)]
Fix some override issues.
SDK tools must compile using Java 1.5
Change-Id: I39b708fcb6f1e225bece6b12c1b5909865825ac9