mirror of
				https://github.com/bspeice/itcs4180
				synced 2025-11-03 18:00:37 -05:00 
			
		
		
		
	Finished UI for the ResultActivity
This commit is contained in:
		@ -21,7 +21,7 @@
 | 
				
			|||||||
            android:text="@string/txtFind" />
 | 
					            android:text="@string/txtFind" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <ImageView
 | 
					        <ImageView
 | 
				
			||||||
            android:id="@+id/imageView1"
 | 
					            android:id="@+id/imgResult"
 | 
				
			||||||
            android:layout_width="30dp"
 | 
					            android:layout_width="30dp"
 | 
				
			||||||
            android:layout_height="30dp"
 | 
					            android:layout_height="30dp"
 | 
				
			||||||
            android:src="@drawable/cover" />
 | 
					            android:src="@drawable/cover" />
 | 
				
			||||||
 | 
				
			|||||||
@ -1,11 +1,66 @@
 | 
				
			|||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | 
					<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | 
				
			||||||
    xmlns:tools="http://schemas.android.com/tools"
 | 
					    xmlns:tools="http://schemas.android.com/tools"
 | 
				
			||||||
 | 
					    android:id="@+id/RelativeLayout1"
 | 
				
			||||||
    android:layout_width="match_parent"
 | 
					    android:layout_width="match_parent"
 | 
				
			||||||
    android:layout_height="match_parent"
 | 
					    android:layout_height="match_parent"
 | 
				
			||||||
 | 
					    android:orientation="vertical"
 | 
				
			||||||
    android:paddingBottom="@dimen/activity_vertical_margin"
 | 
					    android:paddingBottom="@dimen/activity_vertical_margin"
 | 
				
			||||||
    android:paddingLeft="@dimen/activity_horizontal_margin"
 | 
					    android:paddingLeft="@dimen/activity_horizontal_margin"
 | 
				
			||||||
    android:paddingRight="@dimen/activity_horizontal_margin"
 | 
					    android:paddingRight="@dimen/activity_horizontal_margin"
 | 
				
			||||||
    android:paddingTop="@dimen/activity_vertical_margin"
 | 
					    android:paddingTop="@dimen/activity_vertical_margin"
 | 
				
			||||||
    tools:context=".ResultActivity" >
 | 
					    tools:context=".ResultActivity" >
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <TextView
 | 
				
			||||||
 | 
					        android:id="@+id/txtResultValue"
 | 
				
			||||||
 | 
					        android:layout_width="wrap_content"
 | 
				
			||||||
 | 
					        android:layout_height="wrap_content"
 | 
				
			||||||
 | 
					        android:layout_alignParentLeft="true"
 | 
				
			||||||
 | 
					        android:layout_alignParentTop="true"
 | 
				
			||||||
 | 
					        android:text="@string/txtResultValue_Success"
 | 
				
			||||||
 | 
					        android:textAppearance="?android:attr/textAppearanceLarge" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <TextView
 | 
				
			||||||
 | 
					        android:id="@+id/txtResultElapsed"
 | 
				
			||||||
 | 
					        android:layout_width="wrap_content"
 | 
				
			||||||
 | 
					        android:layout_height="wrap_content"
 | 
				
			||||||
 | 
					        android:layout_alignParentLeft="true"
 | 
				
			||||||
 | 
					        android:layout_below="@+id/txtResultValue"
 | 
				
			||||||
 | 
					        android:text="@string/txtResultElapsed"
 | 
				
			||||||
 | 
					        android:textAppearance="?android:attr/textAppearanceSmall" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <ImageView
 | 
				
			||||||
 | 
					        android:id="@+id/imgResult"
 | 
				
			||||||
 | 
					        android:layout_width="219dp"
 | 
				
			||||||
 | 
					        android:layout_height="219dp"
 | 
				
			||||||
 | 
					        android:layout_alignParentLeft="true"
 | 
				
			||||||
 | 
					        android:layout_below="@+id/txtResultElapsed"
 | 
				
			||||||
 | 
					        android:scaleType="centerInside"
 | 
				
			||||||
 | 
					        android:src="@drawable/win" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <LinearLayout
 | 
				
			||||||
 | 
					        android:layout_width="wrap_content"
 | 
				
			||||||
 | 
					        android:layout_height="wrap_content"
 | 
				
			||||||
 | 
					        android:layout_alignLeft="@+id/imgResult"
 | 
				
			||||||
 | 
					        android:layout_alignParentBottom="true"
 | 
				
			||||||
 | 
					        android:layout_alignParentRight="true"
 | 
				
			||||||
 | 
					        android:layout_below="@+id/imgResult"
 | 
				
			||||||
 | 
					        android:gravity="fill_horizontal" >
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <Button
 | 
				
			||||||
 | 
					            android:id="@+id/btnTryAgain"
 | 
				
			||||||
 | 
					            android:layout_width="0dp"
 | 
				
			||||||
 | 
					            android:layout_height="wrap_content"
 | 
				
			||||||
 | 
					            android:layout_gravity="bottom"
 | 
				
			||||||
 | 
					            android:layout_weight="1"
 | 
				
			||||||
 | 
					            android:text="@string/btnTryAgain" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <Button
 | 
				
			||||||
 | 
					            android:id="@+id/btnExit"
 | 
				
			||||||
 | 
					            android:layout_width="0dp"
 | 
				
			||||||
 | 
					            android:layout_height="wrap_content"
 | 
				
			||||||
 | 
					            android:layout_gravity="bottom"
 | 
				
			||||||
 | 
					            android:layout_weight="1"
 | 
				
			||||||
 | 
					            android:text="@string/btnExit" />
 | 
				
			||||||
 | 
					    </LinearLayout>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
</RelativeLayout>
 | 
					</RelativeLayout>
 | 
				
			||||||
@ -8,5 +8,10 @@
 | 
				
			|||||||
    <string name="btnNewGame">New Game</string>
 | 
					    <string name="btnNewGame">New Game</string>
 | 
				
			||||||
    <string name="btnUnCover">UnCover</string>
 | 
					    <string name="btnUnCover">UnCover</string>
 | 
				
			||||||
    <string name="title_activity_result">ResultActivity</string>
 | 
					    <string name="title_activity_result">ResultActivity</string>
 | 
				
			||||||
 | 
					    <string name="txtResultValue_Success">Congratulations, you unlocked the treasure chest!</string>
 | 
				
			||||||
 | 
					    <string name="txtResultValue_Failure">Sorry! Try again ..</string>
 | 
				
			||||||
 | 
					    <string name="txtResultElapsed">Time elapsed :</string>
 | 
				
			||||||
 | 
					    <string name="btnExit">Exit</string>
 | 
				
			||||||
 | 
					    <string name="btnTryAgain">Try Again</string>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
</resources>
 | 
					</resources>
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user