diff options
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/activity_finished.xml | 22 | ||||
-rw-r--r-- | app/src/main/res/layout/highscore_item.xml | 17 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 4 |
3 files changed, 43 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_finished.xml b/app/src/main/res/layout/activity_finished.xml new file mode 100644 index 0000000..e9ae900 --- /dev/null +++ b/app/src/main/res/layout/activity_finished.xml @@ -0,0 +1,22 @@ +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" + android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin" + android:paddingRight="@dimen/activity_horizontal_margin" + android:paddingTop="@dimen/activity_vertical_margin" + android:paddingBottom="@dimen/activity_vertical_margin" + tools:context="com.camilstaps.rushhour.FinishedActivity"> + + <TextView android:text="Gefeliciteerd!" android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/textView" + android:textSize="40sp"/> + + <ListView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/highscoresListView" + android:layout_below="@+id/textView" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" /> + +</RelativeLayout> diff --git a/app/src/main/res/layout/highscore_item.xml b/app/src/main/res/layout/highscore_item.xml new file mode 100644 index 0000000..3c6faf0 --- /dev/null +++ b/app/src/main/res/layout/highscore_item.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + + <TextView android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/name"/> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/score"/> + + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c00a584..c46740f 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -2,4 +2,8 @@ <string name="app_name">Rush Hour</string> <string name="title_activity_main">@string/app_name</string> <string name="action_start">Start</string> + <string name="title_activity_finished">FinishedActivity</string> + + <string name="hello_world">Hello world!</string> + <string name="action_settings">Settings</string> </resources> |