From 96a274caaf3b6f4a1fa91f97acb48a0a522c5f8b Mon Sep 17 00:00:00 2001 From: TwistedUmbrella Date: Mon, 5 Jan 2015 14:44:34 -0500 Subject: [PATCH] Stop relying on a bug to maintain popup view width The original view was held in place due to an Android bug that began around ICS, which did not stretch views beyond a set amount when displayed in modal dialogs. Clean up the layout to better fit the popup items --- shell/android/AndroidManifest.xml | 7 +++++ shell/android/res/drawable/rounded.xml | 5 ++++ shell/android/res/layout/drawer_menu.xml | 6 ++-- .../android/res/layout/menu_popup_config.xml | 28 ++++++++++++------- shell/android/res/layout/menu_popup_debug.xml | 22 +++++++++------ shell/android/res/layout/menu_popup_main.xml | 27 +++++++++++------- shell/android/res/values/strings.xml | 2 +- 7 files changed, 65 insertions(+), 32 deletions(-) create mode 100644 shell/android/res/drawable/rounded.xml diff --git a/shell/android/AndroidManifest.xml b/shell/android/AndroidManifest.xml index 539c17e0f..10906caea 100644 --- a/shell/android/AndroidManifest.xml +++ b/shell/android/AndroidManifest.xml @@ -2,6 +2,13 @@ package="com.reicast.emulator" android:versionCode="7" android:versionName="r7" > + + + + + + \ No newline at end of file diff --git a/shell/android/res/layout/drawer_menu.xml b/shell/android/res/layout/drawer_menu.xml index 465ec919d..434057f7b 100644 --- a/shell/android/res/layout/drawer_menu.xml +++ b/shell/android/res/layout/drawer_menu.xml @@ -47,7 +47,7 @@ android:id="@+id/settings_menu" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginLeft="26dp" + android:layout_marginLeft="32dp" android:layout_marginTop="10dp" android:background="@drawable/game_selector" android:focusable="true" @@ -109,7 +109,7 @@ android:id="@+id/about_menu" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginLeft="26dp" + android:layout_marginLeft="32dp" android:layout_marginTop="10dp" android:background="@drawable/game_selector" android:focusable="true" @@ -170,7 +170,7 @@ android:id="@+id/cloud_menu" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginLeft="26dp" + android:layout_marginLeft="32dp" android:layout_marginTop="10dp" android:background="@drawable/game_selector" android:focusable="true" diff --git a/shell/android/res/layout/menu_popup_config.xml b/shell/android/res/layout/menu_popup_config.xml index 3669b4bf1..ef2b5b1de 100755 --- a/shell/android/res/layout/menu_popup_config.xml +++ b/shell/android/res/layout/menu_popup_config.xml @@ -2,22 +2,23 @@