From 1a88656cce28802ad8bfa10c3ede83026372cd88 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Fri, 19 Mar 2021 21:51:17 +0100 Subject: [PATCH] Android: Limit the height of the in-game menu's game title If the title is too long, there may not be much space left for the actual menu items. --- .../Android/app/src/main/res/layout/fragment_ingame_menu.xml | 2 ++ Source/Android/app/src/main/res/values-h500dp/integers.xml | 4 ++++ Source/Android/app/src/main/res/values-h600dp/integers.xml | 4 ++++ Source/Android/app/src/main/res/values/integers.xml | 1 + 4 files changed, 11 insertions(+) create mode 100644 Source/Android/app/src/main/res/values-h500dp/integers.xml create mode 100644 Source/Android/app/src/main/res/values-h600dp/integers.xml diff --git a/Source/Android/app/src/main/res/layout/fragment_ingame_menu.xml b/Source/Android/app/src/main/res/layout/fragment_ingame_menu.xml index b33b4eebcf..a05bbe3d23 100644 --- a/Source/Android/app/src/main/res/layout/fragment_ingame_menu.xml +++ b/Source/Android/app/src/main/res/layout/fragment_ingame_menu.xml @@ -15,6 +15,8 @@ tools:text="The Legend of Zelda: The Wind Waker" android:textColor="@android:color/white" android:textSize="20sp" + android:maxLines="@integer/game_title_lines" + android:ellipsize="end" android:layout_marginHorizontal="32dp" android:layout_marginTop="32dp" android:layout_marginBottom="16dp"/> diff --git a/Source/Android/app/src/main/res/values-h500dp/integers.xml b/Source/Android/app/src/main/res/values-h500dp/integers.xml new file mode 100644 index 0000000000..8d93458a8f --- /dev/null +++ b/Source/Android/app/src/main/res/values-h500dp/integers.xml @@ -0,0 +1,4 @@ + + + 3 + diff --git a/Source/Android/app/src/main/res/values-h600dp/integers.xml b/Source/Android/app/src/main/res/values-h600dp/integers.xml new file mode 100644 index 0000000000..8c48eb8fe7 --- /dev/null +++ b/Source/Android/app/src/main/res/values-h600dp/integers.xml @@ -0,0 +1,4 @@ + + + 4 + diff --git a/Source/Android/app/src/main/res/values/integers.xml b/Source/Android/app/src/main/res/values/integers.xml index bbaed0f47a..27691b3313 100644 --- a/Source/Android/app/src/main/res/values/integers.xml +++ b/Source/Android/app/src/main/res/values/integers.xml @@ -1,5 +1,6 @@ + 2 3 1 6