make the two buttons fill the screen, and use newly created style

for new_games layout too.
This commit is contained in:
Eric House 2012-11-20 19:11:39 -08:00
parent a199dd2b92
commit cf88b60c4b
3 changed files with 16 additions and 30 deletions

View file

@ -47,16 +47,12 @@
android:layout_height="wrap_content"
>
<Button android:id="@+id/new_game"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:text="@string/button_new_game"
style="@style/spaced_buttons"
/>
<Button android:id="@+id/new_group"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:text="@string/button_new_group"
style="@style/spaced_buttons"
/>
</LinearLayout>

View file

@ -51,16 +51,12 @@
android:layout_height="wrap_content"
>
<Button android:id="@+id/newgame_local"
android:layout_width="fill_parent"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/newgame_local"
style="@style/spaced_buttons"
/>
<Button android:id="@+id/newgame_local_config"
android:layout_width="fill_parent"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/newgame_local_config"
style="@style/spaced_buttons"
/>
</LinearLayout>
@ -93,17 +89,13 @@
android:layout_height="wrap_content"
>
<Button android:id="@+id/newgame_invite"
android:layout_width="fill_parent"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/newgame_invite"
style="@style/spaced_buttons"
/>
<Button android:id="@+id/newgame_net_config"
android:layout_width="fill_parent"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/newgame_net_config"
style="@style/spaced_buttons"
/>
</LinearLayout>
@ -160,17 +152,13 @@
android:layout_height="wrap_content"
>
<Button android:id="@+id/newgame_invite_sms"
android:layout_width="fill_parent"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/newgame_invite"
style="@style/spaced_buttons"
/>
<Button android:id="@+id/newgame_sms_config"
android:layout_width="fill_parent"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/newgame_net_config"
style="@style/spaced_buttons"
/>
</LinearLayout>
</LinearLayout>
@ -228,17 +216,13 @@
android:layout_height="wrap_content"
>
<Button android:id="@+id/newgame_invite_bt"
android:layout_width="fill_parent"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/newgame_invite"
style="@style/spaced_buttons"
/>
<Button android:id="@+id/newgame_bt_config"
android:layout_width="fill_parent"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/newgame_net_config"
style="@style/spaced_buttons"
/>
</LinearLayout>
</LinearLayout>

View file

@ -60,5 +60,11 @@
<item name="android:layout_marginBottom">3sp</item>
</style>
<style name="spaced_buttons">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_weight">1</item>
</style>
</resources>