|
@@ -0,0 +1,243 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<androidx.constraintlayout.widget.ConstraintLayout 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=".activity.AdminActivity">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.Toolbar
|
|
|
+ android:id="@+id/toolbar"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:fitsSystemWindows="true"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:background="@color/colorAccent"
|
|
|
+ android:minHeight="?attr/actionBarSize" >
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:textStyle="bold"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/logout"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="end"
|
|
|
+ android:textSize="14sp"
|
|
|
+ android:text="退出"
|
|
|
+ android:layout_marginEnd="10dp"
|
|
|
+ android:textStyle="bold"/>
|
|
|
+ </androidx.appcompat.widget.Toolbar>
|
|
|
+
|
|
|
+ <ScrollView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/toolbar"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent">
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical">
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="#4D856A"
|
|
|
+ android:layout_marginTop="10dp">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/view_exercise_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="練習"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:textColor="#fff"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/view_exercise_title_en"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="Exercise"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ app:layout_constraintStart_toStartOf="@id/view_exercise_title"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/view_exercise_title"
|
|
|
+ android:textColor="#fff"/>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/view_exercise_split_line"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:background="#fff"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/view_exercise_title_en"
|
|
|
+ android:layout_height="1dp"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/scale"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="量表"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/gameA"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/view_exercise_split_line"
|
|
|
+ android:textColor="#fff"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/gameA"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="練習A"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/scale"
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/gameB"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/view_exercise_split_line"
|
|
|
+ android:textColor="#fff"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/gameB"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="練習B"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/gameA"
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/gameC"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/view_exercise_split_line"
|
|
|
+ android:textColor="#fff"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/gameC"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="練習C"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/gameB"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/view_exercise_split_line"
|
|
|
+ android:textColor="#fff"/>
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="#5280BE"
|
|
|
+ android:layout_marginTop="10dp">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/view_game_record_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="遊戲記錄"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:textColor="#fff"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/view_game_record_title_en"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="CPT Record"
|
|
|
+ android:textSize="20sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ app:layout_constraintStart_toStartOf="@id/view_game_record_title"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/view_game_record_title"
|
|
|
+ android:textColor="#fff"/>
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="#9A64B2"
|
|
|
+ android:layout_marginTop="10dp">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/view_scale_record_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="量表記錄"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:textColor="#fff"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/view_scale_record_title_en"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="Scale Record"
|
|
|
+ android:textSize="20sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ app:layout_constraintStart_toStartOf="@id/view_scale_record_title"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/view_scale_record_title"
|
|
|
+ android:textColor="#fff"/>
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="#B67744"
|
|
|
+ android:layout_marginTop="10dp">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/view_user_manage_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="用戶管理"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:textColor="#fff"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/view_user_manage_title_en"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="User Manage"
|
|
|
+ android:textSize="20sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ app:layout_constraintStart_toStartOf="@id/view_user_manage_title"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/view_user_manage_title"
|
|
|
+ android:textColor="#fff"/>
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ </ScrollView>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|