summaryrefslogtreecommitdiffstats
path: root/core/java/android/util
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-05-27 13:40:26 -0700
committerDianne Hackborn <hackbod@google.com>2011-05-27 13:40:26 -0700
commitb96cbbd11c4590bec846212c33361e02293f18b5 (patch)
treeac02f12136339bb608c07d8b26eaae1cddccf792 /core/java/android/util
parentff7622992f39d8e401ab23c5ce6a84f318906e52 (diff)
downloadframeworks_base-b96cbbd11c4590bec846212c33361e02293f18b5.zip
frameworks_base-b96cbbd11c4590bec846212c33361e02293f18b5.tar.gz
frameworks_base-b96cbbd11c4590bec846212c33361e02293f18b5.tar.bz2
Add "tv" density for 720p screens.
Change-Id: I028969b007f2fceea66947d77a2ae31ef1d1a630
Diffstat (limited to 'core/java/android/util')
-rw-r--r--core/java/android/util/DisplayMetrics.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/util/DisplayMetrics.java b/core/java/android/util/DisplayMetrics.java
index 60a4ef2..d594567 100644
--- a/core/java/android/util/DisplayMetrics.java
+++ b/core/java/android/util/DisplayMetrics.java
@@ -38,6 +38,15 @@ public class DisplayMetrics {
public static final int DENSITY_MEDIUM = 160;
/**
+ * Standard quantized DPI for 720p TV screens. Applications should
+ * generally not worry about this density, instead targeting
+ * {@link #DENSITY_XHIGH} for 1080p TV screens. For situations where
+ * output is needed for a 720p screen, the UI elements can be scaled
+ * automatically by the platform.
+ */
+ public static final int DENSITY_TV = 213;
+
+ /**
* Standard quantized DPI for high-density screens.
*/
public static final int DENSITY_HIGH = 240;