OSDN Git Service

android-x86/sdk.git
13 years agoMerge "Add support for addon providing their own layoutlib and/or res."
Xavier Ducrohet [Wed, 25 May 2011 22:47:52 +0000 (15:47 -0700)]
Merge "Add support for addon providing their own layoutlib and/or res."

13 years agoAdd support for addon providing their own layoutlib and/or res.
Xavier Ducrohet [Thu, 21 Apr 2011 17:02:35 +0000 (10:02 -0700)]
Add support for addon providing their own layoutlib and/or res.

During addon parsing, the SDK Manager will detect whether the addon
has:
- data/layoutlib.jar
- data/res/
- data/fonts/

if the first one is present, then it is used during rendering.
if *both* the 2nd and 3rd ones are present, then addon resources
are used during rendering.

On the GLE side, all that's needed is adding addons to the list
of rendering targets if they have either library or resources (or
both).

Change-Id: Id16925eea2c98b9fbaaa884ac6fd8c1c1c444db2

13 years agoMerge "Fix flaky SdkRepository test."
Raphael Moll [Wed, 25 May 2011 18:20:16 +0000 (11:20 -0700)]
Merge "Fix flaky SdkRepository test."

13 years agoFix flaky SdkRepository test.
Raphael Moll [Wed, 25 May 2011 17:38:31 +0000 (10:38 -0700)]
Fix flaky SdkRepository test.

It seems like class.getResourceAsStream throws a
NullPointerException on the test machines whereas
it returns null (as documented) other times when
the resource is not found.

This patch refactors 2 duplicated getXsdStream
methods in the base RepoConstants and adjusts to
take both behaviors into account.

Change-Id: Ieefd92a006efda30828b8043e39f6b7e904bc53f

13 years agoMerge "Prevent 'make sdk_repo' from picking up future schemas."
Raphael Moll [Wed, 25 May 2011 05:48:26 +0000 (22:48 -0700)]
Merge "Prevent 'make sdk_repo' from picking up future schemas."

13 years agoPrevent 'make sdk_repo' from picking up future schemas.
Raphael Moll [Wed, 25 May 2011 05:43:37 +0000 (22:43 -0700)]
Prevent 'make sdk_repo' from picking up future schemas.

Change-Id: I749f4727b4c257ef5a6177b05727f5944d5d81ed

13 years agoMerge "New Repository XSD for R12."
Raphael Moll [Wed, 25 May 2011 02:02:14 +0000 (19:02 -0700)]
Merge "New Repository XSD for R12."

13 years agoMerge "Prevent NPE when server is not running."
Xavier Ducrohet [Wed, 25 May 2011 01:25:35 +0000 (18:25 -0700)]
Merge "Prevent NPE when server is not running."

13 years agoPrevent NPE when server is not running.
Romain Guy [Wed, 25 May 2011 00:38:06 +0000 (17:38 -0700)]
Prevent NPE when server is not running.

Change-Id: Iea1ba8fd78aca61611e73a29fe8b08b96783b248

13 years agoMerge "Use sdklib.OsHelper in AddCompatibilityJarAction."
Raphael Moll [Wed, 25 May 2011 00:20:18 +0000 (17:20 -0700)]
Merge "Use sdklib.OsHelper in AddCompatibilityJarAction."

13 years agoUse sdklib.OsHelper in AddCompatibilityJarAction.
Raphael Moll [Tue, 24 May 2011 23:28:15 +0000 (16:28 -0700)]
Use sdklib.OsHelper in AddCompatibilityJarAction.

ADT's AddCompatibilityJarAction defined 2 new generic
useful methods, copyFile and isSameFile. SdkLib already
had an OsHelper.copyFile, so I moved that class to a
more generic sdklib.io package and added the new method
isSameFile.

Another suitable candidate would have been io.FileWrapper
in the common project.

Change-Id: If310e09af112c5f4d87a253b35e67e4f5adb34da

13 years agoNew Repository XSD for R12.
Raphael Moll [Mon, 23 May 2011 20:17:14 +0000 (13:17 -0700)]
New Repository XSD for R12.

This add a new schema sdk-repository-4 with the following
changes:

- <extra> element now has a <project-files> element that
contains 1 or or more <path>, each indicating the relative
path of a file that this package can contribute to
installed projects.

- <platform> element now has a mandatory <layoutlib>
that indicates the API and revision of that layout library
for this particular platform.

There's also a matching sdk-addon-2 schema with the same
modification to the <extra> element.

Change-Id: Id74a5d09dfa36d65f11b9d60a82fe8ba4119eb34

13 years agomerge from tools-adt_r11
The Android Open-Source Project [Tue, 24 May 2011 19:28:08 +0000 (12:28 -0700)]
merge from tools-adt_r11

Change-Id: I45f882507745c3375e2fed88a9f401e4ddc1adda

13 years agoMerge "Don't apply default attributes in a move/copy. DO NOT MERGE" into tools-adt_r11
Tor Norbye [Tue, 24 May 2011 19:27:43 +0000 (12:27 -0700)]
Merge "Don't apply default attributes in a move/copy. DO NOT MERGE" into tools-adt_r11

13 years agoDon't apply default attributes in a move/copy. DO NOT MERGE
Tor Norbye [Tue, 24 May 2011 17:48:55 +0000 (10:48 -0700)]
Don't apply default attributes in a move/copy. DO NOT MERGE

There is a method in the layout editor which fills in required default
attributes like id, width and height, as well as some optional
attributes like a default text attribute.

This code was called unconditionally whenever a new child is added to
a layout. However, this should only be done when a new widget is
created, not during moves or copies from existing elements.

Change-Id: I2b437ef609a168f1bb1b7698d3a954a4d2f5faa0

13 years agoMerge "Disable palette preview for some widgets on some platforms. DO NOT MERGE"...
Tor Norbye [Tue, 24 May 2011 19:25:17 +0000 (12:25 -0700)]
Merge "Disable palette preview for some widgets on some platforms. DO NOT MERGE" into tools-adt_r11

13 years agoDisable palette preview for some widgets on some platforms. DO NOT MERGE
Tor Norbye [Tue, 24 May 2011 17:58:29 +0000 (10:58 -0700)]
Disable palette preview for some widgets on some platforms. DO NOT MERGE

ListView palette preview requires adapterview support in layoutlib,
and DatePicker and TimePicker require Holo themes on Honeycomb. This
changeset adds some conditional logic to the palette preview code to
drop rendering of these widgets based on the current render target,
layout library and theme.

Change-Id: I3ed30682485655ca7463baa8ea1133fddebe7091

13 years agoMerge "Don't apply default attributes in a move/copy"
Tor Norbye [Tue, 24 May 2011 18:39:03 +0000 (11:39 -0700)]
Merge "Don't apply default attributes in a move/copy"

13 years agoMerge "Disable palette preview for some widgets on some platforms"
Tor Norbye [Tue, 24 May 2011 18:38:53 +0000 (11:38 -0700)]
Merge "Disable palette preview for some widgets on some platforms"

13 years agoDisable palette preview for some widgets on some platforms
Tor Norbye [Tue, 24 May 2011 17:58:29 +0000 (10:58 -0700)]
Disable palette preview for some widgets on some platforms

ListView palette preview requires adapterview support in layoutlib,
and DatePicker and TimePicker require Holo themes on Honeycomb. This
changeset adds some conditional logic to the palette preview code to
drop rendering of these widgets based on the current render target,
layout library and theme.

Change-Id: Ic42a40faf817e60525485e0a46b7ad967ed1c363

13 years agoDon't apply default attributes in a move/copy
Tor Norbye [Tue, 24 May 2011 17:48:55 +0000 (10:48 -0700)]
Don't apply default attributes in a move/copy

There is a method in the layout editor which fills in required default
attributes like id, width and height, as well as some optional
attributes like a default text attribute.

This code was called unconditionally whenever a new child is added to
a layout. However, this should only be done when a new widget is
created, not during moves or copies from existing elements.

Change-Id: Ic04dec746c70359eca38454bacfdcdb87891719f

13 years agoMerge "Make instrumentation test failure message more verbose."
Brett Chabot [Tue, 24 May 2011 01:44:22 +0000 (18:44 -0700)]
Merge "Make instrumentation test failure message more verbose."

13 years agomerge from tools-adt_r11
The Android Open Source Project [Tue, 24 May 2011 01:03:12 +0000 (18:03 -0700)]
merge from tools-adt_r11

Change-Id: I74cedd09950ed16041cb5c6e18c8f367878cd390

13 years agoMerge "List project themes, if any, before framework themes. DO NOT MERGE" into tools...
Tor Norbye [Mon, 23 May 2011 22:43:31 +0000 (15:43 -0700)]
Merge "List project themes, if any, before framework themes. DO NOT MERGE" into tools-adt_r11

13 years agoMerge "Detect and add special warning for wrong themes. DO NOT MERGE" into tools...
Tor Norbye [Mon, 23 May 2011 22:43:09 +0000 (15:43 -0700)]
Merge "Detect and add special warning for wrong themes. DO NOT MERGE" into tools-adt_r11

13 years agoList project themes, if any, before framework themes. DO NOT MERGE
Tor Norbye [Sat, 21 May 2011 03:18:50 +0000 (20:18 -0700)]
List project themes, if any, before framework themes. DO NOT MERGE

This changeset moves the project-themes in the combobox up above the
framework themes, since
(a) it's likely that the user wants to frequently choose these, and
(b) the list of project themes is usually much smaller than the
    framework list, so it brings these items up to the visible part of
    the combo

Change-Id: I1cb29fffc289fc594c9e6cedc4461b4dd76808ea

13 years agoDetect and add special warning for wrong themes. DO NOT MERGE
Tor Norbye [Sat, 21 May 2011 03:41:35 +0000 (20:41 -0700)]
Detect and add special warning for wrong themes. DO NOT MERGE

If you open a layout designed for a particular theme in another theme,
you can get many confusing error messages. Instead of "attribute
missing" it may tell you that it failed to convert a resource to a
color or drawable, and so on.

To help guide users to the root problem (wrong theme chosen) this
changeset detects the scenario where theme attributes can't be
resolved, and when these are found the top of the error log will start
with a bold message stating that theme resources were not found and to
check whether the correct theme is chosen.

To do this, the resource resolver emits a new sub-type of the resource
missing tag into the error log, which is used in the IDE to prefix the
errors with the special error message.

Change-Id: Ifa188cd67412e4536bc10bda64716a62dfa9695d

13 years agoMerge "List project themes, if any, before framework themes"
Tor Norbye [Mon, 23 May 2011 22:39:31 +0000 (15:39 -0700)]
Merge "List project themes, if any, before framework themes"

13 years agoMerge "Detect and add special warning for wrong themes"
Tor Norbye [Mon, 23 May 2011 22:39:16 +0000 (15:39 -0700)]
Merge "Detect and add special warning for wrong themes"

13 years agoMerge "Allow HV to work on user builds."
Xavier Ducrohet [Mon, 23 May 2011 21:09:46 +0000 (14:09 -0700)]
Merge "Allow HV to work on user builds."

13 years agoDetect and add special warning for wrong themes
Tor Norbye [Sat, 21 May 2011 03:41:35 +0000 (20:41 -0700)]
Detect and add special warning for wrong themes

If you open a layout designed for a particular theme in another theme,
you can get many confusing error messages. Instead of "attribute
missing" it may tell you that it failed to convert a resource to a
color or drawable, and so on.

To help guide users to the root problem (wrong theme chosen) this
changeset detects the scenario where theme attributes can't be
resolved, and when these are found the top of the error log will start
with a bold message stating that theme resources were not found and to
check whether the correct theme is chosen.

To do this, the resource resolver emits a new sub-type of the resource
missing tag into the error log, which is used in the IDE to prefix the
errors with the special error message.

Change-Id: Ic29c9af37da4b5cc2c9fb1ca5670c8b8f79bf852

13 years agoMerge "NPE safeguard. DO NOT MERGE" into tools-adt_r11
Tor Norbye [Mon, 23 May 2011 19:27:32 +0000 (12:27 -0700)]
Merge "NPE safeguard. DO NOT MERGE" into tools-adt_r11

13 years agoNPE safeguard. DO NOT MERGE
Tor Norbye [Sat, 21 May 2011 03:28:56 +0000 (20:28 -0700)]
NPE safeguard. DO NOT MERGE

Change-Id: I4d7a3d449a120e1e1ab86f99254daf0e58165ab4

13 years agoMerge "NPE safeguard"
Tor Norbye [Mon, 23 May 2011 18:27:44 +0000 (11:27 -0700)]
Merge "NPE safeguard"

13 years agoNPE safeguard
Tor Norbye [Sat, 21 May 2011 03:28:56 +0000 (20:28 -0700)]
NPE safeguard

Change-Id: I3f55c21f79ad66bed1329a2f5882deb94e93be62

13 years agoList project themes, if any, before framework themes
Tor Norbye [Sat, 21 May 2011 03:18:50 +0000 (20:18 -0700)]
List project themes, if any, before framework themes

This changeset moves the project-themes in the combobox up above the
framework themes, since
(a) it's likely that the user wants to frequently choose these, and
(b) the list of project themes is usually much smaller than the
    framework list, so it brings these items up to the visible part of
    the combo

Change-Id: Idb989d388f5cb1f5cc6a302a6c5796db69e78c8e

13 years agoMerge "Merge AdtUpdateDialog CL on top of latest SdkMan2"
Raphael Moll [Sat, 21 May 2011 01:13:35 +0000 (18:13 -0700)]
Merge "Merge AdtUpdateDialog CL on top of latest SdkMan2"

13 years agoMerge "SdkMan2: Use IDE's log when available."
Raphael Moll [Sat, 21 May 2011 01:13:22 +0000 (18:13 -0700)]
Merge "SdkMan2: Use IDE's log when available."

13 years agoMerge "SdkMan2: don't display update packages as sub-items."
Raphael Moll [Sat, 21 May 2011 01:13:14 +0000 (18:13 -0700)]
Merge "SdkMan2: don't display update packages as sub-items."

13 years agoMerge "Mechanism to disable SwtMenuBar in SdkMan2"
Raphael Moll [Sat, 21 May 2011 01:13:05 +0000 (18:13 -0700)]
Merge "Mechanism to disable SwtMenuBar in SdkMan2"

13 years agoMerge "Cleanup IUpdaterWindow in SdkManager."
Raphael Moll [Sat, 21 May 2011 01:12:48 +0000 (18:12 -0700)]
Merge "Cleanup IUpdaterWindow in SdkManager."

13 years agoMerge "SDK Manager dialog to perform specific updates from ADT. DO NOT MERGE." into...
Raphael Moll [Sat, 21 May 2011 01:12:23 +0000 (18:12 -0700)]
Merge "SDK Manager dialog to perform specific updates from ADT. DO NOT MERGE." into tools-adt_r11

13 years agoMerge "Move Grid{Data,Layout}Builder to SDK UI Lib. DO NOT MERGE." into tools-adt_r11
Raphael Moll [Sat, 21 May 2011 01:12:00 +0000 (18:12 -0700)]
Merge "Move Grid{Data,Layout}Builder to SDK UI Lib. DO NOT MERGE." into tools-adt_r11

13 years agoMerge "Merge d4166974 from master. do not merge. Fix issue with resource repository...
Xavier Ducrohet [Fri, 20 May 2011 23:10:59 +0000 (16:10 -0700)]
Merge "Merge d4166974 from  do not merge. Fix issue with resource repository when using libraries" into tools-adt_r11

13 years agoMerge d4166974 from master. do not merge.
Xavier Ducrohet [Fri, 20 May 2011 22:44:49 +0000 (15:44 -0700)]
Merge d4166974 from master. do not merge.
Fix issue with resource repository when using libraries

Change-Id: I45c8af34020f047f08a53ddd6ada3a8be4061a52

13 years agoMerge "Fix issue with resource repository when using libraries"
Xavier Ducrohet [Fri, 20 May 2011 23:05:29 +0000 (16:05 -0700)]
Merge "Fix issue with resource repository when using libraries"

13 years agoSDK Manager dialog to perform specific updates from ADT. DO NOT MERGE.
Raphael Moll [Thu, 19 May 2011 04:16:38 +0000 (21:16 -0700)]
SDK Manager dialog to perform specific updates from ADT. DO NOT MERGE.

As a working case example, this adds an ADT project
context menu to add the Android Compatibility JAR
to an android project.

Change-Id: Icd86930b72558240dc9f5a6f732478253b8cb0fb

13 years agoMove Grid{Data,Layout}Builder to SDK UI Lib. DO NOT MERGE.
Raphael Moll [Fri, 13 May 2011 18:27:20 +0000 (11:27 -0700)]
Move Grid{Data,Layout}Builder to SDK UI Lib. DO NOT MERGE.

(cherry picked from commit 7f7cdef2e2c1741114588f4f8c774fabb9567dde)

Change-Id: I6301730b125aab3c22e0893e9adb46003a4a2315

13 years agoFix issue with resource repository when using libraries
Xavier Ducrohet [Fri, 20 May 2011 22:44:49 +0000 (15:44 -0700)]
Fix issue with resource repository when using libraries

Change-Id: I1a3e5ba9ac6e930d4be2daedff9691862f975408

13 years agoMerge "Offer to install fragment compatibility library"
Tor Norbye [Fri, 20 May 2011 22:12:20 +0000 (15:12 -0700)]
Merge "Offer to install fragment compatibility library"

13 years agoOffer to install fragment compatibility library
Tor Norbye [Fri, 20 May 2011 22:01:33 +0000 (15:01 -0700)]
Offer to install fragment compatibility library

This changeset changes the popup displayed when you drop a fragment
tag in a pre-API-11 project.  Instead of just displaying an error
message, you now get a dialog which asks if you want to install the
project, and if you click the "Install" button it invokes the SDK
manager to install the right package, and then copies it into the
project.

In addition, the fragment selector now has a "Create New" action which
invokes the New Class wizard pre-configured with the right fragment
class.

Change-Id: I4ce1b51fbfe939a21e91379eb6b77ff722c13f0f

13 years agoAllow HV to work on user builds.
Romain Guy [Thu, 19 May 2011 22:00:26 +0000 (15:00 -0700)]
Allow HV to work on user builds.

Change-Id: If0f2a79b54abf9a9d8782827b083f10d5d2f2a7e

13 years agoMerge AdtUpdateDialog CL on top of latest SdkMan2
Raphael Moll [Fri, 20 May 2011 19:26:02 +0000 (12:26 -0700)]
Merge AdtUpdateDialog CL on top of latest SdkMan2

This is a merge/conflict resolution to correctly
merge the recent AdtUpdateDialog CL on top of the
recent SdkMan2 changes.

Change-Id: If3461381bfae3d820465a51107b1bcca0896f611

13 years agoSdkMan2: Use IDE's log when available.
Raphael Moll [Wed, 18 May 2011 16:38:39 +0000 (09:38 -0700)]
SdkMan2: Use IDE's log when available.

Change-Id: Iede7f4f9c1a7bbfbdcbb096f489616478ba94465

13 years agoMake instrumentation test failure message more verbose.
Brett Chabot [Wed, 11 May 2011 02:43:15 +0000 (19:43 -0700)]
Make instrumentation test failure message more verbose.

Bug 3443053

Change-Id: I12ed20ac93db92ea5cf7dcb1984bc81be242ad9b

13 years agoSdkMan2: don't display update packages as sub-items.
Raphael Moll [Wed, 18 May 2011 16:36:38 +0000 (09:36 -0700)]
SdkMan2: don't display update packages as sub-items.

Change-Id: I3261be52c637a49dbeba7b373947eb27807a05f9

13 years agoMechanism to disable SwtMenuBar in SdkMan2
Raphael Moll [Tue, 17 May 2011 21:34:34 +0000 (14:34 -0700)]
Mechanism to disable SwtMenuBar in SdkMan2

The SDK Manager 2 should not try to change the
menu bar when invoked from Eclipse. Actually it
can't because the SwtMenuBar lib isn't even present
to it crashes with a NoClassDef exception.

This CL adds the notion of "invocation context" so
that we know what is invoking the manager and we can
change the UI accordingly.

Change-Id: I606850a20fbc5f9d2d1d4fd0e16aa0bd71ef41c7

13 years agoCleanup IUpdaterWindow in SdkManager.
Raphael Moll [Tue, 17 May 2011 19:59:04 +0000 (12:59 -0700)]
Cleanup IUpdaterWindow in SdkManager.

The interface was supposed to be for the internal
window implementation. The public UpdaterWindow
does not need this interface.

Change-Id: Iddeb46fd7ac6988e9b880fb9fadace4d4d8693a4

13 years agoMerge "SDK Manager dialog to perform specific updates from ADT."
Raphael Moll [Fri, 20 May 2011 19:00:59 +0000 (12:00 -0700)]
Merge "SDK Manager dialog to perform specific updates from ADT."

13 years agoSDK Manager dialog to perform specific updates from ADT.
Raphael Moll [Thu, 19 May 2011 04:16:38 +0000 (21:16 -0700)]
SDK Manager dialog to perform specific updates from ADT.

As a working case example, this adds an ADT project
context menu to add the Android Compatibility JAR
to an android project.

Change-Id: Icd86930b72558240dc9f5a6f732478253b8cb0fb

13 years agomerge from tools-adt_r11
The Android Open Source Project [Fri, 20 May 2011 00:21:35 +0000 (17:21 -0700)]
merge from tools-adt_r11

Change-Id: Ieeac609b8cee528188cd05a39da1f31c2bd83880

13 years agoMerge "Update changes.txt" into tools-adt_r11
Tor Norbye [Fri, 20 May 2011 00:15:42 +0000 (17:15 -0700)]
Merge "Update changes.txt" into tools-adt_r11

13 years agoUpdate changes.txt
Tor Norbye [Thu, 19 May 2011 20:52:31 +0000 (13:52 -0700)]
Update changes.txt

Change-Id: I30fde6f00a967dd3cee5c02b4f4fb95409a125a0

13 years agoMerge "Update changes.txt"
Tor Norbye [Fri, 20 May 2011 00:03:48 +0000 (17:03 -0700)]
Merge "Update changes.txt"

13 years agoMerge "Fix potential stackoverflow in theme detection."
Xavier Ducrohet [Thu, 19 May 2011 22:46:09 +0000 (15:46 -0700)]
Merge "Fix potential stackoverflow in theme detection."

13 years agoFix potential stackoverflow in theme detection.
Xavier Ducrohet [Thu, 19 May 2011 21:44:02 +0000 (14:44 -0700)]
Fix potential stackoverflow in theme detection.

Change-Id: I19d2a3c9c6802b3e1c065ca36828d2b672130630

13 years agomerge from tools-adt_r11
The Android Open Source Project [Thu, 19 May 2011 21:21:58 +0000 (14:21 -0700)]
merge from tools-adt_r11

Change-Id: Iaf1edd6850ad25451d8d5aa54642cc0eb56184da

13 years agoMerge "Merge 3586fef5 from master. do not merge." into tools-adt_r11
Xavier Ducrohet [Thu, 19 May 2011 21:20:07 +0000 (14:20 -0700)]
Merge "Merge 3586fef5 from  do not merge." into tools-adt_r11

13 years agoMerge "Merge 677a2489 from master. do not merge." into tools-adt_r11
Xavier Ducrohet [Thu, 19 May 2011 21:19:55 +0000 (14:19 -0700)]
Merge "Merge 677a2489 from  do not merge." into tools-adt_r11

13 years agomerge from tools-adt_r11
The Android Open Source Project [Thu, 19 May 2011 21:07:38 +0000 (14:07 -0700)]
merge from tools-adt_r11

Change-Id: I7a5957245c3e386eecada94b3b929eeb21bb5d1b

13 years agomerge from tools-adt_r11
The Android Open Source Project [Thu, 19 May 2011 21:00:15 +0000 (14:00 -0700)]
merge from tools-adt_r11

Change-Id: I32b744486356a0ad48afb9d0f4d99174c2fdfea1

13 years agoUpdate changes.txt
Tor Norbye [Thu, 19 May 2011 20:52:31 +0000 (13:52 -0700)]
Update changes.txt

Change-Id: Ic53c7174d4ed74b94cc24680e00737ddeaad024b

13 years agoMerge 3586fef5 from master. do not merge.
Xavier Ducrohet [Thu, 19 May 2011 18:29:32 +0000 (11:29 -0700)]
Merge 3586fef5 from master. do not merge.

Add method to LayoutLibrary to query layoutlib api level and rev.

Change-Id: Ib34251b690c18167f69a5b389fcabddbf8bb0aa1

13 years agoMerge 677a2489 from master. do not merge.
Xavier Ducrohet [Thu, 19 May 2011 00:11:35 +0000 (17:11 -0700)]
Merge 677a2489 from master. do not merge.

Add revision number to the layoutlib.

Change-Id: Icfceb6b6328ed445ecc1bdefe7fc14192ba39328

13 years agoMerge "Add method to LayoutLibrary to query layoutlib api level and rev."
Xavier Ducrohet [Thu, 19 May 2011 18:39:24 +0000 (11:39 -0700)]
Merge "Add method to LayoutLibrary to query layoutlib api level and rev."

13 years agoAdd method to LayoutLibrary to query layoutlib api level and rev.
Xavier Ducrohet [Thu, 19 May 2011 18:29:32 +0000 (11:29 -0700)]
Add method to LayoutLibrary to query layoutlib api level and rev.

Change-Id: Ib70e560e7d0be88305383aac18726858d91990ae

13 years agoMerge "Add revision number to the layoutlib."
Xavier Ducrohet [Thu, 19 May 2011 18:19:47 +0000 (11:19 -0700)]
Merge "Add revision number to the layoutlib."

13 years agoMerge "Migrate render target settings to released versions" into tools-adt_r11
Tor Norbye [Thu, 19 May 2011 15:58:33 +0000 (08:58 -0700)]
Merge "Migrate render target settings to released versions" into tools-adt_r11

13 years agoMigrate render target settings to released versions
Tor Norbye [Tue, 17 May 2011 23:34:16 +0000 (16:34 -0700)]
Migrate render target settings to released versions

When loading the project's render target setting (which as of ADT 11
is per project rather than per layout), check to see if it has a code
name, and if so, see if the user has the final version of the platform
installed as well. If so, migrate the render target to the final
version instead since the user probably did not intentionally want to
stay with the pre-release version after installing the final version.

Change-Id: I4cdfbb9670a042cf342d2c371ef123eff3959ff2

13 years agoMerge "Improve the choice of default configuration" into tools-adt_r11
Tor Norbye [Thu, 19 May 2011 15:54:12 +0000 (08:54 -0700)]
Merge "Improve the choice of default configuration" into tools-adt_r11

13 years agoImprove the choice of default configuration
Tor Norbye [Tue, 17 May 2011 22:49:50 +0000 (15:49 -0700)]
Improve the choice of default configuration

When you open a new layout, the layout editor needs to pick an initial
configuration for the layout.  Currently, the choice of layout is
based on the project API level (such that it picks tablet screen and
landscape orientation for API 11, and phone and portrait for lower
APIs).

This changeset adds another factor: the currently used configuration.
If you have another layout visible and you open a new layout, then the
configuration for the current layout will be used for the new layout
(if it is a compatible match).

Change-Id: I66302e7ffb13c9b66e6fd0f7f347ebf4df142f77

13 years agoMerge "Fix merge error" into tools-adt_r11
Tor Norbye [Thu, 19 May 2011 15:44:01 +0000 (08:44 -0700)]
Merge "Fix merge error" into tools-adt_r11

13 years agoFix merge error
Tor Norbye [Thu, 19 May 2011 15:42:33 +0000 (08:42 -0700)]
Fix merge error

Change-Id: I8b21078fe6486e2ee40ec5beb50de4046e1623f7

13 years agoMerge "Add preview support for GridViews"
Tor Norbye [Thu, 19 May 2011 15:36:12 +0000 (08:36 -0700)]
Merge "Add preview support for GridViews"

13 years agoAdd preview support for GridViews
Tor Norbye [Mon, 2 May 2011 20:38:51 +0000 (13:38 -0700)]
Add preview support for GridViews

GridViews are another AdapterView subclass. This changeset adds
preview support for GridViews by modifying the ListView preview
support to also accommodate GridViews.

Change-Id: I5af0a4c7e270cfa23c609be316d01dfb188a051b

13 years agoMerge "Fix auto-merge"
Tor Norbye [Thu, 19 May 2011 15:24:05 +0000 (08:24 -0700)]
Merge "Fix auto-merge"

13 years agoFix auto-merge
Tor Norbye [Thu, 19 May 2011 15:22:04 +0000 (08:22 -0700)]
Fix auto-merge

A change that was cherrypicked from the external master into the
tools-r11 branch was automerged back into the external master in such
a way that a method and a field got duplicated. This CL fixes the
merge.

Change-Id: I5b05c8a9477b4afb669efd1904c1415925d25307

13 years agoAdd revision number to the layoutlib.
Xavier Ducrohet [Thu, 19 May 2011 00:11:35 +0000 (17:11 -0700)]
Add revision number to the layoutlib.

Change-Id: I9a990c41c46ce9901a241b18aee00d1fc4c84383

13 years agomerge from tools-adt_r11
The Android Open Source Project [Thu, 19 May 2011 00:33:56 +0000 (17:33 -0700)]
merge from tools-adt_r11

Change-Id: Ic374b2d4185f1c3c4dbad2ea81b901fe9b07666a

13 years agoMerge "Add Request Focus to textfields" into tools-adt_r11
Tor Norbye [Thu, 19 May 2011 00:21:52 +0000 (17:21 -0700)]
Merge "Add Request Focus to textfields" into tools-adt_r11

13 years agomerge from tools-adt_r11
The Android Open Source Project [Wed, 18 May 2011 22:07:57 +0000 (15:07 -0700)]
merge from tools-adt_r11

Change-Id: I0f0b1896177b21444622b048e77e594c18cb12d2

13 years agoMerge "Migrate render target settings to released versions"
Tor Norbye [Wed, 18 May 2011 20:02:06 +0000 (13:02 -0700)]
Merge "Migrate render target settings to released versions"

13 years agoMigrate render target settings to released versions
Tor Norbye [Tue, 17 May 2011 23:34:16 +0000 (16:34 -0700)]
Migrate render target settings to released versions

When loading the project's render target setting (which as of ADT 11
is per project rather than per layout), check to see if it has a code
name, and if so, see if the user has the final version of the platform
installed as well. If so, migrate the render target to the final
version instead since the user probably did not intentionally want to
stay with the pre-release version after installing the final version.

Change-Id: Ic45232b5dc691b770045c3281f2c36b580347784

13 years agoMerge "Improve the choice of default configuration"
Tor Norbye [Wed, 18 May 2011 19:58:26 +0000 (12:58 -0700)]
Merge "Improve the choice of default configuration"

13 years agoAdd Request Focus to textfields
Tor Norbye [Mon, 2 May 2011 22:57:02 +0000 (15:57 -0700)]
Add Request Focus to textfields

This changeset adds a couple of focus related changes:

1) When the first text field is added into a layout, it is
  automatically requesting focus

2) There is a new context menu item available on textfields to request
   focus. When invoked on a text field, it will both add
   <requestFocus> to itself and remove it from any other text fields
   that have set it in the layout. When invoked on a text field which
   already has focus, it will offer to clear the focus.

3) The Advanced section of the palette also contains the
   <requestFocus> tag.

Change-Id: Ie9e1ab07c4f7ea701e9fac17f6c82e52656bc755

13 years agoImprove the choice of default configuration
Tor Norbye [Tue, 17 May 2011 22:49:50 +0000 (15:49 -0700)]
Improve the choice of default configuration

When you open a new layout, the layout editor needs to pick an initial
configuration for the layout.  Currently, the choice of layout is
based on the project API level (such that it picks tablet screen and
landscape orientation for API 11, and phone and portrait for lower
APIs).

This changeset adds another factor: the currently used configuration.
If you have another layout visible and you open a new layout, then the
configuration for the current layout will be used for the new layout
(if it is a compatible match).

Change-Id: I601b4373514cb30d6051e9de1bfa2ad91ff1b5f4

13 years agoMerge "Binary XML editor" into tools-adt_r11
Tor Norbye [Wed, 18 May 2011 19:22:25 +0000 (12:22 -0700)]
Merge "Binary XML editor" into tools-adt_r11

13 years agoMerge "Fix bug in editor open utility" into tools-adt_r11
Tor Norbye [Wed, 18 May 2011 19:15:17 +0000 (12:15 -0700)]
Merge "Fix bug in editor open utility" into tools-adt_r11

13 years agoMerge "Fragment Rendering Support" into tools-adt_r11
Tor Norbye [Wed, 18 May 2011 19:15:03 +0000 (12:15 -0700)]
Merge "Fragment Rendering Support" into tools-adt_r11

13 years agoMerge "Basic fragment support" into tools-adt_r11
Tor Norbye [Wed, 18 May 2011 19:14:43 +0000 (12:14 -0700)]
Merge "Basic fragment support" into tools-adt_r11