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:
parent
8fa5f67277
commit
1a88656cce
|
@ -15,6 +15,8 @@
|
||||||
tools:text="The Legend of Zelda: The Wind Waker"
|
tools:text="The Legend of Zelda: The Wind Waker"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="20sp"
|
android:textSize="20sp"
|
||||||
|
android:maxLines="@integer/game_title_lines"
|
||||||
|
android:ellipsize="end"
|
||||||
android:layout_marginHorizontal="32dp"
|
android:layout_marginHorizontal="32dp"
|
||||||
android:layout_marginTop="32dp"
|
android:layout_marginTop="32dp"
|
||||||
android:layout_marginBottom="16dp"/>
|
android:layout_marginBottom="16dp"/>
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<integer name="game_title_lines">3</integer>
|
||||||
|
</resources>
|
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<integer name="game_title_lines">4</integer>
|
||||||
|
</resources>
|
|
@ -1,5 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
|
<integer name="game_title_lines">2</integer>
|
||||||
<integer name="game_grid_columns">3</integer>
|
<integer name="game_grid_columns">3</integer>
|
||||||
<integer name="loadsave_state_columns">1</integer>
|
<integer name="loadsave_state_columns">1</integer>
|
||||||
<integer name="loadsave_state_rows">6</integer>
|
<integer name="loadsave_state_rows">6</integer>
|
||||||
|
|
Loading…
Reference in New Issue