clean up new game dialog (thanks K.T.!): remove title bar, add some

spacing and make it scrollable for when in landscape mode.
This commit is contained in:
Andy2 2011-06-10 22:51:54 -07:00
parent 8c65ed5548
commit 6620b42abd
3 changed files with 69 additions and 60 deletions

View file

@ -70,7 +70,7 @@
/> />
<activity android:name="NewGameActivity" <activity android:name="NewGameActivity"
android:label="@string/title_newgame" android:theme="@android:style/Theme.NoTitleBar"
/> />
<activity android:name="GameConfig" <activity android:name="GameConfig"

View file

@ -14,65 +14,75 @@
limitations under the License. limitations under the License.
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView 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"
android:layout_height="fill_parent" android:orientation="vertical"
> >
<LinearLayout android:orientation="vertical"
<TextView style="@style/config_separator"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/newgame_local_header"
/>
<TextView android:text="@string/newgame_local_desc"
style="@style/relay_explain"
/>
<LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="fill_parent"
> >
<Button android:id="@+id/newgame_local"
android:layout_width="fill_parent" <TextView style="@style/config_separator"
android:layout_weight="1" android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_height="wrap_content" android:text="@string/newgame_local_header"
android:text="@string/newgame_local" />
/>
<Button android:id="@+id/newgame_local_config" <TextView android:text="@string/newgame_local_desc"
android:layout_width="fill_parent" android:layout_marginTop="10dip"
android:layout_weight="1" android:layout_marginBottom="10dip"
android:layout_height="wrap_content" style="@style/relay_explain"
android:text="@string/newgame_local_config" />
/> <LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent"
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"
/>
<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"
/>
</LinearLayout>
<TextView style="@style/config_separator"
android:layout_marginTop="10dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/newgame_networked_header"
/>
<TextView android:text="@string/newgame_networked_desc"
android:layout_marginTop="10dip"
android:layout_marginBottom="10dip"
style="@style/relay_explain"
/>
<LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent"
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"
/>
<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"
/>
</LinearLayout>
</LinearLayout> </LinearLayout>
</ScrollView>
<TextView style="@style/config_separator"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/newgame_networked_header"
/>
<TextView android:text="@string/newgame_networked_desc"
style="@style/relay_explain"
/>
<LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent"
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"
/>
<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"
/>
</LinearLayout>
</LinearLayout>

View file

@ -35,7 +35,6 @@
<string name="title_games_list">Crosswords</string> <string name="title_games_list">Crosswords</string>
<string name="title_dicts_list">Dictionaries</string> <string name="title_dicts_list">Dictionaries</string>
<string name="title_newgame">New game</string>
<string name="title_langs_list">Languages (based on installed <string name="title_langs_list">Languages (based on installed
dictionaries)</string> dictionaries)</string>