From 61c5926936b24d1f5c954f4ecf7bafd1a4dde5eb Mon Sep 17 00:00:00 2001 From: Xavier Ducrohet Date: Fri, 3 Jun 2011 11:59:04 -0700 Subject: Add support for the TV dpi. Change-Id: I97fedc69644d83801b50d7882bb759db7089d8f0 --- common/src/com/android/resources/Density.java | 1 + .../src/com/android/ide/eclipse/adt/internal/sdk/layout-devices.xsd | 1 + .../src/com/android/layoutlib/api/IDensityBasedResourceValue.java | 1 + 3 files changed, 3 insertions(+) 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 @@ + 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(); } -- cgit v1.1