|
|
@@ -0,0 +1,388 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<LinearLayout 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:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ tools:context=".MenuActivity"
|
|
|
+ android:orientation="vertical"
|
|
|
+
|
|
|
+ android:background="@color/black">
|
|
|
+
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+
|
|
|
+ android:layout_margin="20dp"
|
|
|
+ app:cardCornerRadius="50dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@drawable/gradient_background"
|
|
|
+
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:weightSum="3">
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_weight="1.2">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:weightSum="2">
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_weight="0.8"
|
|
|
+
|
|
|
+ android:layout_marginTop="20dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/titleTV"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/cardInfoTV"
|
|
|
+
|
|
|
+ android:text="Programming"
|
|
|
+ android:textSize="45sp"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:fontFamily="@font/k2d_semi_bold" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/cardInfoTV"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+
|
|
|
+ android:layout_marginEnd="50dp"
|
|
|
+
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
+
|
|
|
+ android:text="Quiz"
|
|
|
+ android:textSize="25sp"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:fontFamily="@font/k2d_semi_bold" />
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_weight="1.2"
|
|
|
+ android:weightSum="3"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="0.35">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:weightSum="2">
|
|
|
+
|
|
|
+ <com.google.android.material.imageview.ShapeableImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="0dp"
|
|
|
+
|
|
|
+ android:layout_weight="2"
|
|
|
+
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:layout_marginBottom="40dp"
|
|
|
+
|
|
|
+ android:background="@drawable/trapeze_left"/>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="2.3"
|
|
|
+
|
|
|
+ android:layout_marginBottom="20dp"
|
|
|
+
|
|
|
+ android:background="@drawable/menu_player_info_box">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/welcomeTV"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/usernameTV"
|
|
|
+
|
|
|
+ android:text="Good to see you back"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:fontFamily="@font/k2d_bold" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/usernameTV"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/welcomeTV"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/userPointsTV"
|
|
|
+
|
|
|
+
|
|
|
+ android:text="Name: testUserName"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:textColor="@color/orange"
|
|
|
+ android:fontFamily="@font/k2d_semi_bold" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/userPointsTV"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/usernameTV"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/userRankingTV"
|
|
|
+
|
|
|
+ android:text="Score: 00000000000"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:textColor="@color/orange"
|
|
|
+ android:fontFamily="@font/k2d_semi_bold" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/userRankingTV"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/userPointsTV"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+
|
|
|
+
|
|
|
+ android:text="Ranking position: 1"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:textColor="@color/orange"
|
|
|
+ android:fontFamily="@font/k2d_semi_bold" />
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="0.35">
|
|
|
+
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_weight="1.8"
|
|
|
+ android:weightSum="3"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ >
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="0.35">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:weightSum="2">
|
|
|
+
|
|
|
+ <com.google.android.material.imageview.ShapeableImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="0dp"
|
|
|
+
|
|
|
+ android:layout_marginTop="150dp"
|
|
|
+ android:layout_marginBottom="20dp"
|
|
|
+
|
|
|
+ android:layout_weight="2"
|
|
|
+
|
|
|
+ android:background="@drawable/trapeze_left"/>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="2.3">
|
|
|
+
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:id="@+id/mainCardView"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginBottom="20dp"
|
|
|
+ app:cardCornerRadius="50dp">
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/beige">
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_margin="5dp"
|
|
|
+ app:cardCornerRadius="50dp">
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/black">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatButton
|
|
|
+ android:id="@+id/startBtn"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+
|
|
|
+ android:layout_marginTop="50dp"
|
|
|
+ android:layout_marginEnd="40dp"
|
|
|
+ android:layout_marginStart="40dp"
|
|
|
+
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/rankingBtn"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+
|
|
|
+ android:drawableStart="@drawable/icons8_play_button_circled_24"
|
|
|
+ android:drawablePadding="5dp"
|
|
|
+ android:paddingStart="10dp"
|
|
|
+ android:paddingEnd="0dp"
|
|
|
+
|
|
|
+ android:textAllCaps="false"
|
|
|
+
|
|
|
+ android:text="Start"
|
|
|
+ android:textAlignment="viewStart"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:fontFamily="@font/k2d_semi_bold"
|
|
|
+
|
|
|
+ android:background="@drawable/custom_button_1"/>
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatButton
|
|
|
+ android:id="@+id/rankingBtn"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:layout_marginEnd="40dp"
|
|
|
+ android:layout_marginStart="40dp"
|
|
|
+
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/startBtn"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+
|
|
|
+ android:drawableStart="@drawable/icons8_ranking_24"
|
|
|
+ android:drawablePadding="5dp"
|
|
|
+ android:paddingStart="10dp"
|
|
|
+ android:paddingEnd="0dp"
|
|
|
+
|
|
|
+ android:textAllCaps="false"
|
|
|
+
|
|
|
+ android:text="Ranking"
|
|
|
+ android:textAlignment="viewStart"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:fontFamily="@font/k2d_semi_bold"
|
|
|
+
|
|
|
+ android:background="@drawable/custom_button_1"/>
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatButton
|
|
|
+ android:id="@+id/logOutBtn"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+
|
|
|
+ android:layout_marginBottom="30dp"
|
|
|
+ android:layout_marginEnd="40dp"
|
|
|
+ android:layout_marginStart="40dp"
|
|
|
+
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+
|
|
|
+ android:drawableStart="@drawable/icons8_logout_24"
|
|
|
+ android:drawablePadding="5dp"
|
|
|
+ android:paddingStart="10dp"
|
|
|
+ android:paddingEnd="0dp"
|
|
|
+
|
|
|
+ android:textAllCaps="false"
|
|
|
+
|
|
|
+ android:text="Logout"
|
|
|
+ android:textAlignment="viewStart"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:fontFamily="@font/k2d_semi_bold"
|
|
|
+
|
|
|
+ android:background="@drawable/custom_button_1"/>
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
+
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="0.35">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:weightSum="2">
|
|
|
+
|
|
|
+
|
|
|
+ <com.google.android.material.imageview.ShapeableImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="0dp"
|
|
|
+
|
|
|
+ android:layout_marginBottom="200dp"
|
|
|
+
|
|
|
+ android:layout_weight="2"
|
|
|
+
|
|
|
+ android:background="@drawable/trapeze_right"/>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
+
|
|
|
+</LinearLayout>
|