From 109964b3c9b274d5c69f10114dff6917b597365b Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 20 Nov 2009 12:46:08 -0800 Subject: [PATCH] ADT fix: layout device config files can be empty (no devices) SDK BUG 2275276 Change-Id: I139f3b16a258a8e1b223b62d9c93e9870b6fb27c --- .../eclipse/adt/internal/sdk/layout-devices.xsd | 80 +++++++++++----------- .../adt/internal/sdk/TestLayoutDevicesXsd.java | 9 +-- 2 files changed, 44 insertions(+), 45 deletions(-) diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/layout-devices.xsd b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/layout-devices.xsd index 8a5856001..0551afd4b 100755 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/layout-devices.xsd +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/layout-devices.xsd @@ -22,12 +22,16 @@ attributeFormDefault="unqualified" version="1"> - + + + + + The "layout-devices" element is the root element of this schema. - It must contain one or more "device" elements that each define the configurations + It must contain zero or more "device" elements that each define the configurations available for a given device. These definitions are used in the Graphical Layout Editor in the @@ -35,43 +39,41 @@ - - - - - - - - A device element must contain at most one "default" element - followed by one or more "config" elements. - - The "default" element defines all the default parameters - inherited by the following "config" elements. - Each "config" element can override the default values, if any. - - A "device" element also has a required "name" attribute that - represents the user-interface name of this device. - - - - - - - - - - - - - - - - - - + + + + + + + A device element must contain at most one "default" element + followed by one or more "config" elements. + + The "default" element defines all the default parameters + inherited by the following "config" elements. + Each "config" element can override the default values, if any. + + A "device" element also has a required "name" attribute that + represents the user-interface name of this device. + + + + + + + + + + + + + + + + +