mirror of
https://github.com/bspeice/itcs4180
synced 2024-11-14 11:28:14 -05:00
0a80acace1
Has 2 issues. First is that a completed row has the Tile ImageViews change size and second is that finish()does not properly close the entire application.
210 lines
7.3 KiB
XML
210 lines
7.3 KiB
XML
<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" >
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<TextView
|
|
android:id="@+id/txtFind"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/txtFind" />
|
|
|
|
<ImageView
|
|
android:id="@+id/imgResult"
|
|
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"
|
|
android:onClick="newGame"/>
|
|
|
|
<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"
|
|
android:onClick="uncover" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |