From 364b9702f4884908c9be7249e8ab51b9d70e402c Mon Sep 17 00:00:00 2001 From: JosJuice Date: Wed, 29 Jul 2020 16:27:40 +0200 Subject: [PATCH] Android: Use narrow layout for savestate slot picker in portrait --- .../res/layout/fragment_saveload_state.xml | 18 +++++++++--------- .../src/main/res/values-w540dp/integers.xml | 5 +++++ .../src/main/res/values-w660dp/integers.xml | 5 +++++ .../app/src/main/res/values/integers.xml | 2 ++ 4 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 Source/Android/app/src/main/res/values-w540dp/integers.xml create mode 100644 Source/Android/app/src/main/res/values-w660dp/integers.xml diff --git a/Source/Android/app/src/main/res/layout/fragment_saveload_state.xml b/Source/Android/app/src/main/res/layout/fragment_saveload_state.xml index 0fb87d44a3..d8c0f6354a 100644 --- a/Source/Android/app/src/main/res/layout/fragment_saveload_state.xml +++ b/Source/Android/app/src/main/res/layout/fragment_saveload_state.xml @@ -2,51 +2,51 @@ android:id="@+id/grid_state_slots" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:columnCount="3" - android:rowCount="2" + android:columnCount="@integer/loadsave_state_columns" + android:rowCount="@integer/loadsave_state_rows" android:layout_gravity="center" android:background="#af000000">