use a style for new game buttons

This commit is contained in:
Eric House 2014-11-20 19:12:56 -08:00
parent 8d021aa11e
commit d08a7f8d24
2 changed files with 23 additions and 18 deletions

View file

@ -2,26 +2,26 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ListView android:id="@id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:drawSelectorOnTop="false"
/>
<ListView android:id="@id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:drawSelectorOnTop="false"
/>
<!-- These are hidden once the list is large enough that scrolling
is required -->
<Button android:id="@+id/button_newgame_solo"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/new_game"
android:text="@string/new_game"
style="@style/new_game_buttons"
/>
<Button android:id="@+id/button_newgame_multi"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/new_game_networked"
android:text="@string/new_game_networked"
style="@style/new_game_buttons"
/>
</LinearLayout>

View file

@ -91,11 +91,16 @@
</style>
<style name="newgame_connicon">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_weight">0</item>
<item name="android:layout_gravity">center_vertical|center_horizontal</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_weight">0</item>
<item name="android:layout_gravity">center_vertical|center_horizontal</item>
</style>
<style name="new_game_buttons">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:paddingLeft">20dp</item>
<item name="android:paddingRight">20dp</item>
</style>
</resources>