summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib/bridge
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-06-25 19:48:04 -0700
committerDianne Hackborn <hackbod@google.com>2009-06-26 13:37:05 -0700
commit723738cfaec3dd7b0fe152c872c41bebf94074c4 (patch)
tree421ddeed166d0a4586c9460c4de581307bf08d44 /tools/layoutlib/bridge
parent77cb40a0b088b02357fbc7d5fad24886d607f0da (diff)
downloadframeworks_base-723738cfaec3dd7b0fe152c872c41bebf94074c4.zip
frameworks_base-723738cfaec3dd7b0fe152c872c41bebf94074c4.tar.gz
frameworks_base-723738cfaec3dd7b0fe152c872c41bebf94074c4.tar.bz2
Expand support for different screen sizes.
Applications can now declare that they support small, normal, or large screens. Resource selection can also be done based on these sizes. By default, pre-Donut apps are false for small and large, and Donut or later apps are assumed to support all sizes. In either case they can use <supports-screens> in their manifest to declare what they actually support.
Diffstat (limited to 'tools/layoutlib/bridge')
-rw-r--r--tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeAssetManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeAssetManager.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeAssetManager.java
index 1fa11af..06dd96f 100644
--- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeAssetManager.java
+++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeAssetManager.java
@@ -59,7 +59,7 @@ public class BridgeAssetManager extends AssetManager {
public void setConfiguration(int mcc, int mnc, String locale,
int orientation, int touchscreen, int density, int keyboard,
int keyboardHidden, int navigation, int screenWidth, int screenHeight,
- int version) {
+ int screenLayout, int version) {
Configuration c = new Configuration();
c.mcc = mcc;
@@ -70,5 +70,6 @@ public class BridgeAssetManager extends AssetManager {
c.keyboardHidden = keyboardHidden;
c.navigation = navigation;
c.orientation = orientation;
+ c.screenLayout = screenLayout;
}
}