summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/game_over.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout/game_over.xml')
-rwxr-xr-xapp/src/main/res/layout/game_over.xml60
1 files changed, 60 insertions, 0 deletions
diff --git a/app/src/main/res/layout/game_over.xml b/app/src/main/res/layout/game_over.xml
new file mode 100755
index 0000000..5c4fdb1
--- /dev/null
+++ b/app/src/main/res/layout/game_over.xml
@@ -0,0 +1,60 @@
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/game_over"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:background="@color/design_default_color_secondary" >
+
+ <TextView
+ android:id="@+id/score"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="24dp"
+ android:textColor="@color/design_default_color_on_secondary"
+ android:textSize="40dp"
+ android:text="Score: "
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <TextView
+ android:id="@+id/highscore"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dp"
+ android:textColor="@color/design_default_color_on_secondary"
+ android:text="New highscore!"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/score" />
+
+ <TextView
+ android:id="@+id/correct"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="24dp"
+ android:textColor="@color/design_default_color_on_secondary"
+ android:textSize="30dp"
+ android:text="..."
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/highscore" />
+
+ <Button
+ android:id="@+id/got_it"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="16dp"
+ android:onClick="onReset"
+ android:text="Got it!"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/correct" />
+ </androidx.constraintlayout.widget.ConstraintLayout>
+</RelativeLayout> \ No newline at end of file