mirror of
https://github.com/bspeice/itcs4180
synced 2024-12-04 21:28:10 -05:00
Finished UI for the ResultActivity
This commit is contained in:
parent
bc464e5c6d
commit
9cad32bb14
@ -21,7 +21,7 @@
|
||||
android:text="@string/txtFind" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView1"
|
||||
android:id="@+id/imgResult"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:src="@drawable/cover" />
|
||||
|
@ -1,11 +1,66 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/RelativeLayout1"
|
||||
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=".ResultActivity" >
|
||||
|
||||
</RelativeLayout>
|
||||
<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>
|
@ -8,5 +8,10 @@
|
||||
<string name="btnNewGame">New Game</string>
|
||||
<string name="btnUnCover">UnCover</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>
|
||||
|
Loading…
Reference in New Issue
Block a user