diff options
author | Dianne Hackborn <hackbod@google.com> | 2009-07-21 17:46:02 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2009-07-21 18:28:42 -0700 |
commit | c4db95c077f826585d20be2f3db4043c53d30cf5 (patch) | |
tree | 9176baa673f97b27150f862485fd492cb3ec7e88 /tests/DpiTest/src/com/google | |
parent | fe6f45c81463d2d28e11ac6083f2653e1286c5ef (diff) | |
download | frameworks_base-c4db95c077f826585d20be2f3db4043c53d30cf5.zip frameworks_base-c4db95c077f826585d20be2f3db4043c53d30cf5.tar.gz frameworks_base-c4db95c077f826585d20be2f3db4043c53d30cf5.tar.bz2 |
First pass at reworking screen density/size APIs.
This changes the names of the directories in aapt, to what you see
in the list of DpiTest resources. Also adds a new "long" configuration
for wide screens, which the platform sets appropriate, and introduces
a new kind of resizeability for not large but significantly larger
than normal screens which may have compatibility issues.
Diffstat (limited to 'tests/DpiTest/src/com/google')
-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 8c69305..49fff57 100644 --- a/tests/DpiTest/src/com/google/android/test/dpi/DpiTestActivity.java +++ b/tests/DpiTest/src/com/google/android/test/dpi/DpiTestActivity.java @@ -57,7 +57,8 @@ public class DpiTestActivity extends Activity { if (noCompat) { ai.flags |= ApplicationInfo.FLAG_SUPPORTS_LARGE_SCREENS | ApplicationInfo.FLAG_SUPPORTS_NORMAL_SCREENS - | ApplicationInfo.FLAG_SUPPORTS_SMALL_SCREENS; + | ApplicationInfo.FLAG_SUPPORTS_SMALL_SCREENS + | ApplicationInfo.FLAG_RESIZEABLE_FOR_SCREENS; ai.supportsDensities = new int[] { ApplicationInfo.ANY_DENSITY }; app.getResources().setCompatibilityInfo(new CompatibilityInfo(ai)); } |