From 2f98f2670828a42ef93fe782b5be82b1dfeba6ce Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Mon, 28 Mar 2011 18:28:35 -0700 Subject: Expand screen documentation with explicit screen size dimensions. This updates the various documentation on screen sizes to discuss the exact screen dimensions that are now associated with each size. In addition, the screen sizes vs. densities table is updated to include a number of additional representative screens. Change-Id: Id07491148b1857e0265cef7139e564e190f38e03 --- core/java/android/content/res/Configuration.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'core') diff --git a/core/java/android/content/res/Configuration.java b/core/java/android/content/res/Configuration.java index 31119d7..72fa07c 100644 --- a/core/java/android/content/res/Configuration.java +++ b/core/java/android/content/res/Configuration.java @@ -57,11 +57,30 @@ public final class Configuration implements Parcelable, ComparableSupporting + * Multiple Screens for more information. */ public static final int SCREENLAYOUT_SIZE_SMALL = 0x01; + /** Constant for {@link #screenLayout}: a {@link #SCREENLAYOUT_SIZE_MASK} + * value indicating the screen is at least approximately 320x470 dp units. + * See Supporting + * Multiple Screens for more information. */ public static final int SCREENLAYOUT_SIZE_NORMAL = 0x02; + /** Constant for {@link #screenLayout}: a {@link #SCREENLAYOUT_SIZE_MASK} + * value indicating the screen is at least approximately 480x640 dp units. + * See Supporting + * Multiple Screens for more information. */ public static final int SCREENLAYOUT_SIZE_LARGE = 0x03; + /** Constant for {@link #screenLayout}: a {@link #SCREENLAYOUT_SIZE_MASK} + * value indicating the screen is at least approximately 720x960 dp units. + * See Supporting + * Multiple Screens for more information.*/ public static final int SCREENLAYOUT_SIZE_XLARGE = 0x04; public static final int SCREENLAYOUT_LONG_MASK = 0x30; @@ -88,6 +107,9 @@ public final class Configuration implements Parcelable, ComparableThe {@link #SCREENLAYOUT_LONG_MASK} defines whether the screen * is wider/taller than normal. They may be one of * {@link #SCREENLAYOUT_LONG_NO} or {@link #SCREENLAYOUT_LONG_YES}. + * + *

See Supporting + * Multiple Screens for more information. */ public int screenLayout; -- cgit v1.1