diff options
| -rw-r--r-- | core/res/res/drawable-hdpi/menu_hardkey_panel_holo_dark.9.png | bin | 0 -> 713 bytes | |||
| -rw-r--r-- | core/res/res/drawable-hdpi/menu_hardkey_panel_holo_light.9.png | bin | 0 -> 641 bytes | |||
| -rw-r--r-- | core/res/res/drawable-mdpi/menu_hardkey_panel_holo_dark.9.png | bin | 0 -> 486 bytes | |||
| -rw-r--r-- | core/res/res/drawable-mdpi/menu_hardkey_panel_holo_light.9.png | bin | 0 -> 474 bytes | |||
| -rw-r--r-- | core/res/res/drawable-xhdpi/menu_hardkey_panel_holo_dark.9.png | bin | 0 -> 997 bytes | |||
| -rw-r--r-- | core/res/res/drawable-xhdpi/menu_hardkey_panel_holo_light.9.png | bin | 0 -> 882 bytes | |||
| -rw-r--r-- | core/res/res/values/arrays.xml | 2 | ||||
| -rw-r--r-- | core/res/res/values/themes.xml | 4 | ||||
| -rw-r--r-- | services/java/com/android/server/wm/WindowManagerService.java | 12 |
9 files changed, 10 insertions, 8 deletions
diff --git a/core/res/res/drawable-hdpi/menu_hardkey_panel_holo_dark.9.png b/core/res/res/drawable-hdpi/menu_hardkey_panel_holo_dark.9.png Binary files differnew file mode 100644 index 000000000000..53871a051573 --- /dev/null +++ b/core/res/res/drawable-hdpi/menu_hardkey_panel_holo_dark.9.png diff --git a/core/res/res/drawable-hdpi/menu_hardkey_panel_holo_light.9.png b/core/res/res/drawable-hdpi/menu_hardkey_panel_holo_light.9.png Binary files differnew file mode 100644 index 000000000000..e3a031357fce --- /dev/null +++ b/core/res/res/drawable-hdpi/menu_hardkey_panel_holo_light.9.png diff --git a/core/res/res/drawable-mdpi/menu_hardkey_panel_holo_dark.9.png b/core/res/res/drawable-mdpi/menu_hardkey_panel_holo_dark.9.png Binary files differnew file mode 100644 index 000000000000..9d80b7762def --- /dev/null +++ b/core/res/res/drawable-mdpi/menu_hardkey_panel_holo_dark.9.png diff --git a/core/res/res/drawable-mdpi/menu_hardkey_panel_holo_light.9.png b/core/res/res/drawable-mdpi/menu_hardkey_panel_holo_light.9.png Binary files differnew file mode 100644 index 000000000000..efa43256dfb1 --- /dev/null +++ b/core/res/res/drawable-mdpi/menu_hardkey_panel_holo_light.9.png diff --git a/core/res/res/drawable-xhdpi/menu_hardkey_panel_holo_dark.9.png b/core/res/res/drawable-xhdpi/menu_hardkey_panel_holo_dark.9.png Binary files differnew file mode 100644 index 000000000000..521e2d9d090a --- /dev/null +++ b/core/res/res/drawable-xhdpi/menu_hardkey_panel_holo_dark.9.png diff --git a/core/res/res/drawable-xhdpi/menu_hardkey_panel_holo_light.9.png b/core/res/res/drawable-xhdpi/menu_hardkey_panel_holo_light.9.png Binary files differnew file mode 100644 index 000000000000..92e117d41c60 --- /dev/null +++ b/core/res/res/drawable-xhdpi/menu_hardkey_panel_holo_light.9.png diff --git a/core/res/res/values/arrays.xml b/core/res/res/values/arrays.xml index 04e510be68d7..57e9bbfec50e 100644 --- a/core/res/res/values/arrays.xml +++ b/core/res/res/values/arrays.xml @@ -163,6 +163,8 @@ <item>@drawable/list_selector_holo_light</item> <item>@drawable/menu_background</item> <item>@drawable/menu_background_fill_parent_width</item> + <item>@drawable/menu_hardkey_panel_holo_dark</item> + <item>@drawable/menu_hardkey_panel_holo_light</item> <item>@drawable/menu_submenu_background</item> <item>@drawable/menu_selector</item> <item>@drawable/overscroll_edge</item> diff --git a/core/res/res/values/themes.xml b/core/res/res/values/themes.xml index 903fc047883f..f8866f26fb7e 100644 --- a/core/res/res/values/themes.xml +++ b/core/res/res/values/themes.xml @@ -980,7 +980,7 @@ please see themes_device_defaults.xml. <item name="toastFrameBackground">@android:drawable/toast_frame_holo</item> <!-- Panel attributes --> - <item name="panelBackground">@android:drawable/menu_dropdown_panel_holo_dark</item> + <item name="panelBackground">@android:drawable/menu_hardkey_panel_holo_dark</item> <item name="panelFullBackground">@android:drawable/menu_background_fill_parent_width</item> <!-- These three attributes do not seems to be used by the framework. Declared public though --> <item name="panelColorBackground">#000</item> @@ -1283,7 +1283,7 @@ please see themes_device_defaults.xml. <item name="toastFrameBackground">@android:drawable/toast_frame_holo</item> <!-- Panel attributes --> - <item name="panelBackground">@android:drawable/menu_dropdown_panel_holo_light</item> + <item name="panelBackground">@android:drawable/menu_hardkey_panel_holo_light</item> <item name="panelFullBackground">@android:drawable/menu_background_fill_parent_width</item> <!-- These three attributes do not seems to be used by the framework. Declared public though --> <item name="panelColorBackground">#000</item> diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java index e258b1a45346..192d32b1c973 100644 --- a/services/java/com/android/server/wm/WindowManagerService.java +++ b/services/java/com/android/server/wm/WindowManagerService.java @@ -5291,24 +5291,24 @@ public class WindowManagerService extends IWindowManager.Stub case Surface.ROTATION_0: return Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM; case Surface.ROTATION_90: - return Gravity.RIGHT | Gravity.CENTER_VERTICAL; + return Gravity.RIGHT | Gravity.BOTTOM; case Surface.ROTATION_180: - return Gravity.CENTER_HORIZONTAL | Gravity.TOP; + return Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM; case Surface.ROTATION_270: - return Gravity.LEFT | Gravity.CENTER_VERTICAL; + return Gravity.LEFT | Gravity.BOTTOM; } } else { // On devices with a natural orientation of landscape switch (rotation) { default: case Surface.ROTATION_0: - return Gravity.RIGHT | Gravity.CENTER_VERTICAL; + return Gravity.RIGHT | Gravity.BOTTOM; case Surface.ROTATION_90: return Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM; case Surface.ROTATION_180: - return Gravity.LEFT | Gravity.CENTER_VERTICAL; + return Gravity.LEFT | Gravity.BOTTOM; case Surface.ROTATION_270: - return Gravity.CENTER_HORIZONTAL | Gravity.TOP; + return Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM; } } } |