diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-05-26 14:20:23 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-05-26 14:48:04 -0700 |
commit | df6e980e3f63eb0f6f9eb437fa925d5009cd9c44 (patch) | |
tree | 5440eeb979427cf2d0be09e067b0dd5c0d62a943 /tests/DpiTest | |
parent | 7a09f72b8850ec22e4ca7fd50aba20ead7666f67 (diff) | |
download | frameworks_base-df6e980e3f63eb0f6f9eb437fa925d5009cd9c44.zip frameworks_base-df6e980e3f63eb0f6f9eb437fa925d5009cd9c44.tar.gz frameworks_base-df6e980e3f63eb0f6f9eb437fa925d5009cd9c44.tar.bz2 |
Add new supports-screens attributes for declaring the compatible screens.
Change-Id: I40d57e4354e48accc1027c9f90916ea73eb5190d
android:requiresSmallestWidthDp provides the smallest supported width.
android:compatibleWidthLimitDp provides the largest compatible width.
Diffstat (limited to 'tests/DpiTest')
-rw-r--r-- | tests/DpiTest/src/com/google/android/test/dpi/DpiTestActivity.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/DpiTest/src/com/google/android/test/dpi/DpiTestActivity.java b/tests/DpiTest/src/com/google/android/test/dpi/DpiTestActivity.java index 2a40c57..01c1c70 100644 --- a/tests/DpiTest/src/com/google/android/test/dpi/DpiTestActivity.java +++ b/tests/DpiTest/src/com/google/android/test/dpi/DpiTestActivity.java @@ -63,7 +63,8 @@ public class DpiTestActivity extends Activity { | ApplicationInfo.FLAG_RESIZEABLE_FOR_SCREENS | ApplicationInfo.FLAG_SUPPORTS_SCREEN_DENSITIES; app.getResources().setCompatibilityInfo(new CompatibilityInfo(ai, - getResources().getConfiguration().screenLayout, false)); + getResources().getConfiguration().screenLayout, + getResources().getConfiguration().smallestScreenWidthDp, false)); } } catch (PackageManager.NameNotFoundException e) { throw new RuntimeException("ouch", e); |