From 581d5a47537a7e7fde6f347f5478194c04ca4957 Mon Sep 17 00:00:00 2001 From: Xavier Ducrohet Date: Sun, 27 Sep 2009 21:39:07 -0700 Subject: Parse add-on supplied layout devices. Add-ons are expected to provide a file called devices.xml in their root folder. The XML schema for this file is eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/layout-configs.xsd I slightly fixed the schema so that normal screen size use the token "normal" instead of "medium" to match the resource qualifier. To round up the feature, the following changes are included: - getEnum in the resource qualifier enum has been made public. There's no sense in keeping it private and it'll help with people possibly using valueOf which behaves differently (case sensitive so ScreenSize.valueOf("normal") fails, while getEnum on the same string succeed. - Updated the device configuration UI to deal with missing list of devices while the SDK loads. Change-Id: Ib1b01007d2ae7fd6398172c3549b2686c33d48be --- sdkmanager/libs/sdklib/src/com/android/sdklib/SdkConstants.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sdkmanager/libs') diff --git a/sdkmanager/libs/sdklib/src/com/android/sdklib/SdkConstants.java b/sdkmanager/libs/sdklib/src/com/android/sdklib/SdkConstants.java index 4ef3468..b276ae3 100644 --- a/sdkmanager/libs/sdklib/src/com/android/sdklib/SdkConstants.java +++ b/sdkmanager/libs/sdklib/src/com/android/sdklib/SdkConstants.java @@ -78,6 +78,8 @@ public final class SdkConstants { public final static String FN_PLUGIN_PROP = "plugin.prop"; /** add-on manifest file */ public final static String FN_MANIFEST_INI = "manifest.ini"; + /** add-on layout device XML file. */ + public final static String FN_DEVICES_XML = "devices.xml"; /** hardware properties definition file */ public final static String FN_HARDWARE_INI = "hardware-properties.ini"; -- cgit v1.1