Added a new game dialog, and game management to GameListActivity

Change-Id: I222b29cc6bcea844b97d13c212e3330336b21a06
This commit is contained in:
2012-02-04 12:53:40 -05:00
parent 032edcf78e
commit 21fd9a73a0
6 changed files with 157 additions and 34 deletions

View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true" >
<ProgressBar
android:id="@+id/progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone" />
<EditText
android:id="@+id/editText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dip"
android:layout_marginRight="5dip"
android:hint="@string/game_name"
android:singleLine="true" />
</LinearLayout>
<Button
android:id="@+id/new_game_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/linearLayout1"
android:text="@string/create_new_game" />
</RelativeLayout>

View File

@@ -6,5 +6,9 @@
<string name="email">twentycodes@gmail.com</string>
<string name="deleteing">Deleting…</string>
<string name="empty_msg">Click the plus button to start a new game</string>
<string name="game_name">Game Name</string>
<string name="create_new_game">Create New Game</string>
<string name="delete">Delete</string>
<string name="new_game">New Game</string>
</resources>