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.
This commit is contained in:
JosJuice 2021-03-19 21:51:17 +01:00
parent 8fa5f67277
commit 1a88656cce
4 changed files with 11 additions and 0 deletions

View file

@ -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"/>

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="game_title_lines">3</integer>
</resources>

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="game_title_lines">4</integer>
</resources>

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="game_title_lines">2</integer>
<integer name="game_grid_columns">3</integer>
<integer name="loadsave_state_columns">1</integer>
<integer name="loadsave_state_rows">6</integer>