aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/src/com/android/resources/Density.java1
-rwxr-xr-xeclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/layout-devices.xsd1
-rw-r--r--layoutlib_api/src/com/android/layoutlib/api/IDensityBasedResourceValue.java1
3 files changed, 3 insertions, 0 deletions
diff --git a/common/src/com/android/resources/Density.java b/common/src/com/android/resources/Density.java
index c1d7e3f..f838de4 100644
--- a/common/src/com/android/resources/Density.java
+++ b/common/src/com/android/resources/Density.java
@@ -25,6 +25,7 @@ package com.android.resources;
public enum Density implements ResourceEnum {
XHIGH("xhdpi", "X-High Density", 320), //$NON-NLS-1$
HIGH("hdpi", "High Density", 240), //$NON-NLS-1$
+ TV("tvdpi", "TV Density", 213), //$NON-NLS-1$
MEDIUM("mdpi", "Medium Density", 160), //$NON-NLS-1$
LOW("ldpi", "Low Density", 120), //$NON-NLS-1$
NODPI("nodpi", "No Density", 0); //$NON-NLS-1$
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 74f22a9..a4ea6c4 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
@@ -187,6 +187,7 @@
<xsd:restriction base="xsd:token">
<xsd:enumeration value="ldpi" />
<xsd:enumeration value="mdpi" />
+ <xsd:enumeration value="tvdpi" />
<xsd:enumeration value="hdpi" />
<xsd:enumeration value="xhdpi" />
</xsd:restriction>
diff --git a/layoutlib_api/src/com/android/layoutlib/api/IDensityBasedResourceValue.java b/layoutlib_api/src/com/android/layoutlib/api/IDensityBasedResourceValue.java
index dce907c..25d9bfb 100644
--- a/layoutlib_api/src/com/android/layoutlib/api/IDensityBasedResourceValue.java
+++ b/layoutlib_api/src/com/android/layoutlib/api/IDensityBasedResourceValue.java
@@ -68,5 +68,6 @@ public interface IDensityBasedResourceValue extends IResourceValue {
* Returns the density associated to the resource.
* @deprecated use {@link DensityBasedResourceValue#getResourceDensity()}
*/
+ @Deprecated
Density getDensity();
}