From 8169daed2f7a8731d478b884b1f455c747b88478 Mon Sep 17 00:00:00 2001 From: Mitsuru Oshima <> Date: Tue, 28 Apr 2009 18:12:09 -0700 Subject: AI 147976: Compatibility mode support. Part 2. * Introduced ApplicationScale (may not be good name. CompatibilityScale? CanvasScale? Pls let me know if you have better idea) * Changes to RootView / SurfaceView - Makes the app believe it's running in the supported density/resolution. - Makes the window manager believe it's running at the right density/resolution. * Added methods to Rect/Event for scaling up/down. Known issues: * certain kind of images (such as nine patch for buttons) seesm to be loaded not by app, thus does not take the scale into account, which, in turn, is causing layout issue. * ZoomButton in MapView is rendered in wrong place * Transparent region on Surface is not correct * Specifying different densities in one process is not working. BUG=1770627 Automated import of CL 147976 --- core/java/android/view/WindowManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/java/android/view/WindowManager.java') diff --git a/core/java/android/view/WindowManager.java b/core/java/android/view/WindowManager.java index 34e65ad..f6a171d 100644 --- a/core/java/android/view/WindowManager.java +++ b/core/java/android/view/WindowManager.java @@ -954,7 +954,7 @@ public interface WindowManager extends ViewManager { return sb.toString(); } - void scaleUp(float scale) { + void scale(float scale) { if (scale != 1.0f) { x *= scale; y *= scale; -- cgit v1.1