diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-05-27 14:23:11 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-05-27 14:23:11 -0700 |
commit | 528c49f112dce5f9687f30a9751e783196eca0c6 (patch) | |
tree | 807d1c0d75a0190752a306c79cfb73dbb2aac39a /core | |
parent | c058d38602a1ffe00e14b4ab32c876c252eabe6d (diff) | |
parent | b96cbbd11c4590bec846212c33361e02293f18b5 (diff) | |
download | frameworks_base-528c49f112dce5f9687f30a9751e783196eca0c6.zip frameworks_base-528c49f112dce5f9687f30a9751e783196eca0c6.tar.gz frameworks_base-528c49f112dce5f9687f30a9751e783196eca0c6.tar.bz2 |
am b96cbbd1: Add "tv" density for 720p screens.
* commit 'b96cbbd11c4590bec846212c33361e02293f18b5':
Add "tv" density for 720p screens.
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/util/DisplayMetrics.java | 9 |
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; |