Commit the main game activity layout

master
DjBushido 2014-02-22 16:38:45 -05:00
parent a7ff7d6ae7
commit 9535b43df6
3 changed files with 209 additions and 9 deletions

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.uncc.hw3"
android:versionCode="1"
@ -22,6 +22,10 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.uncc.hw3.ResultActivity"
android:label="@string/title_activity_result" >
</activity>
</application>
</manifest>

View File

@ -1,16 +1,208 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</RelativeLayout>
<TextView
android:id="@+id/txtFind"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/txtFind" />
<ImageView
android:id="@+id/imageView1"
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@drawable/cover" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="fill_horizontal" >
<ImageView
android:id="@+id/imgTile1_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scaleType="fitCenter"
android:src="@drawable/cover" />
<ImageView
android:id="@+id/imgTile1_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scaleType="fitCenter"
android:src="@drawable/cover" />
<ImageView
android:id="@+id/imgTile1_3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scaleType="fitCenter"
android:src="@drawable/cover" />
<ImageView
android:id="@+id/imgTile1_4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scaleType="fitCenter"
android:src="@drawable/cover" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="fill_horizontal" >
<ImageView
android:id="@+id/imgTile2_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scaleType="fitCenter"
android:src="@drawable/cover" />
<ImageView
android:id="@+id/imgTile2_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scaleType="fitCenter"
android:src="@drawable/cover" />
<ImageView
android:id="@+id/imgTile2_3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scaleType="fitCenter"
android:src="@drawable/cover" />
<ImageView
android:id="@+id/imgTile2_4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scaleType="fitCenter"
android:src="@drawable/cover" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="fill_horizontal" >
<ImageView
android:id="@+id/imgTile3_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scaleType="fitCenter"
android:src="@drawable/cover" />
<ImageView
android:id="@+id/imgTile3_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scaleType="fitCenter"
android:src="@drawable/cover" />
<ImageView
android:id="@+id/imgTile3_3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scaleType="fitCenter"
android:src="@drawable/cover" />
<ImageView
android:id="@+id/imgTile3_4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scaleType="fitCenter"
android:src="@drawable/cover" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="fill_horizontal" >
<ImageView
android:id="@+id/imgTile4_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scaleType="fitCenter"
android:src="@drawable/cover" />
<ImageView
android:id="@+id/imgTile4_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scaleType="fitCenter"
android:src="@drawable/cover" />
<ImageView
android:id="@+id/imgTile4_3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scaleType="fitCenter"
android:src="@drawable/cover" />
<ImageView
android:id="@+id/imgTile4_4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scaleType="fitCenter"
android:src="@drawable/cover" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="15dp" >
<Button
android:id="@+id/btnNewGame"
style="?android:attr/buttonStyleSmall"
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_weight="1"
android:text="@string/btnNewGame" />
<Button
android:id="@+id/btnUnCover"
style="?android:attr/buttonStyleSmall"
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_weight="1"
android:text="@string/btnUnCover" />
</LinearLayout>
</LinearLayout>

View File

@ -1,8 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">HW3</string>
<string name="app_name">Unlock The Treasure Box!</string>
<string name="action_settings">Settings</string>
<string name="hello_world">Hello world!</string>
<string name="txtFind">Find:</string>
<string name="btnNewGame">New Game</string>
<string name="btnUnCover">UnCover</string>
<string name="title_activity_result">ResultActivity</string>
</resources>