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 new file mode 100644 index 0000000000000..53871a0515737 Binary files /dev/null and b/core/res/res/drawable-hdpi/menu_hardkey_panel_holo_dark.9.png differ 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 new file mode 100644 index 0000000000000..e3a031357fce5 Binary files /dev/null and b/core/res/res/drawable-hdpi/menu_hardkey_panel_holo_light.9.png differ 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 new file mode 100644 index 0000000000000..9d80b7762def1 Binary files /dev/null and b/core/res/res/drawable-mdpi/menu_hardkey_panel_holo_dark.9.png differ 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 new file mode 100644 index 0000000000000..efa43256dfb1a Binary files /dev/null and b/core/res/res/drawable-mdpi/menu_hardkey_panel_holo_light.9.png differ 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 new file mode 100644 index 0000000000000..521e2d9d090a5 Binary files /dev/null and b/core/res/res/drawable-xhdpi/menu_hardkey_panel_holo_dark.9.png differ 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 new file mode 100644 index 0000000000000..92e117d41c60c Binary files /dev/null and b/core/res/res/drawable-xhdpi/menu_hardkey_panel_holo_light.9.png differ diff --git a/core/res/res/values/arrays.xml b/core/res/res/values/arrays.xml index 04e510be68d74..57e9bbfec50eb 100644 --- a/core/res/res/values/arrays.xml +++ b/core/res/res/values/arrays.xml @@ -163,6 +163,8 @@ @drawable/list_selector_holo_light @drawable/menu_background @drawable/menu_background_fill_parent_width + @drawable/menu_hardkey_panel_holo_dark + @drawable/menu_hardkey_panel_holo_light @drawable/menu_submenu_background @drawable/menu_selector @drawable/overscroll_edge diff --git a/core/res/res/values/themes.xml b/core/res/res/values/themes.xml index 903fc047883f6..f8866f26fb7ec 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. @android:drawable/toast_frame_holo - @android:drawable/menu_dropdown_panel_holo_dark + @android:drawable/menu_hardkey_panel_holo_dark @android:drawable/menu_background_fill_parent_width #000 @@ -1283,7 +1283,7 @@ please see themes_device_defaults.xml. @android:drawable/toast_frame_holo - @android:drawable/menu_dropdown_panel_holo_light + @android:drawable/menu_hardkey_panel_holo_light @android:drawable/menu_background_fill_parent_width #000 diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java index e258b1a45346d..192d32b1c9732 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; } } }