aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2011-06-03 11:59:04 -0700
committerXavier Ducrohet <xav@android.com>2011-06-03 11:59:04 -0700
commit61c5926936b24d1f5c954f4ecf7bafd1a4dde5eb (patch)
tree78ef8381fca067af7c329bde0702339dc6a806c9
parent69752e1ab9f2ae368b54824a52679786d9d2c154 (diff)
downloadsdk-61c5926936b24d1f5c954f4ecf7bafd1a4dde5eb.zip
sdk-61c5926936b24d1f5c954f4ecf7bafd1a4dde5eb.tar.gz
sdk-61c5926936b24d1f5c954f4ecf7bafd1a4dde5eb.tar.bz2
Add support for the TV dpi.
Change-Id: I97fedc69644d83801b50d7882bb759db7089d8f0
-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();
}