diff options
author | Dianne Hackborn <hackbod@google.com> | 2013-10-17 17:28:09 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2013-10-17 17:28:09 -0700 |
commit | 09acb7ca897c9f49dd65b7173688e4ca63ca5dd3 (patch) | |
tree | 73342a162903bbb447eb488f4377bfb6354b750a /core | |
parent | db148b655633ed554fed70347fb227bf2f23f7de (diff) | |
download | frameworks_base-09acb7ca897c9f49dd65b7173688e4ca63ca5dd3.zip frameworks_base-09acb7ca897c9f49dd65b7173688e4ca63ca5dd3.tar.gz frameworks_base-09acb7ca897c9f49dd65b7173688e4ca63ca5dd3.tar.bz2 |
Fix issue #11256132: Add density bucket for all real numbers between 0 and ∞...
Well, how about 400. 400 is a real number.
Change-Id: I29ac61b7d629d582c7b68367365a7f81fcf679a2
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/util/DisplayMetrics.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/util/DisplayMetrics.java b/core/java/android/util/DisplayMetrics.java index dae47b8..6cda905 100644 --- a/core/java/android/util/DisplayMetrics.java +++ b/core/java/android/util/DisplayMetrics.java @@ -67,6 +67,14 @@ public class DisplayMetrics { public static final int DENSITY_XHIGH = 320; /** + * Intermediate density for screens that sit somewhere between + * {@link #DENSITY_XHIGH} (320dpi) and {@link #DENSITY_XXHIGH} (480 dpi). + * This is not a density that applications should target, instead relying + * on the system to scale their {@link #DENSITY_XXHIGH} assets for them. + */ + public static final int DENSITY_400 = 400; + + /** * Standard quantized DPI for extra-extra-high-density screens. Applications * should not generally worry about this density; relying on XHIGH graphics * being scaled up to it should be sufficient for almost all cases. |