|
@@ -6,4 +6,204 @@
|
|
|
android:layout_height="match_parent"
|
|
|
tools:context=".activity.ScaleActivity">
|
|
|
|
|
|
+ <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/save"
|
|
|
+ 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_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/toolbar">
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/view_title_get_up"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="下床:"
|
|
|
+ android:textColor="#000"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/get_up_none"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:textSize="24sp"
|
|
|
+ android:layout_marginStart="10dp"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/get_up"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:layout_constraintStart_toStartOf="@id/view_title_get_up"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/view_title_get_up"
|
|
|
+ android:textSize="24sp"
|
|
|
+ android:text="請選擇時間"/>
|
|
|
+ <Button
|
|
|
+ android:id="@+id/get_up_none"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="沒做"
|
|
|
+ android:layout_marginEnd="10dp"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/view_title_get_up"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/get_up"/>
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/view_title_contact"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="第一次與人接觸(見面或電話):"
|
|
|
+ android:textColor="#000"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/get_up"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/contact_none"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:textSize="24sp"
|
|
|
+ android:layout_marginStart="10dp"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/contact"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:layout_constraintStart_toStartOf="@id/view_title_contact"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/view_title_contact"
|
|
|
+ android:textSize="24sp"
|
|
|
+ android:text="請選擇時間"/>
|
|
|
+ <Button
|
|
|
+ android:id="@+id/contact_none"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="沒做"
|
|
|
+ android:layout_marginEnd="10dp"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/view_title_contact"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/contact"/>
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/view_title_work"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="開始工作,上學,家務,義工活動,照顧家庭或小孩:"
|
|
|
+ android:textColor="#000"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/contact"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/work_none"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:textSize="24sp"
|
|
|
+ android:layout_marginStart="10dp"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/work"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:layout_constraintStart_toStartOf="@id/view_title_work"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/view_title_work"
|
|
|
+ android:textSize="24sp"
|
|
|
+ android:text="請選擇時間"/>
|
|
|
+ <Button
|
|
|
+ android:id="@+id/work_none"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="沒做"
|
|
|
+ android:layout_marginEnd="10dp"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/view_title_work"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/work"/>
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/view_title_dinner"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="吃晚餐:"
|
|
|
+ android:textColor="#000"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/work"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/dinner_none"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:textSize="24sp"
|
|
|
+ android:layout_marginStart="10dp"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/dinner"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:layout_constraintStart_toStartOf="@id/view_title_dinner"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/view_title_dinner"
|
|
|
+ android:textSize="24sp"
|
|
|
+ android:text="請選擇時間"/>
|
|
|
+ <Button
|
|
|
+ android:id="@+id/dinner_none"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="沒做"
|
|
|
+ android:layout_marginEnd="10dp"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/view_title_dinner"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/dinner"/>
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/view_title_sleep"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="睡覺:"
|
|
|
+ android:textColor="#000"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/dinner"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/sleep_none"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:textSize="24sp"
|
|
|
+ android:layout_marginStart="10dp"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/sleep"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:layout_constraintStart_toStartOf="@id/view_title_sleep"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/view_title_sleep"
|
|
|
+ android:textSize="24sp"
|
|
|
+ android:text="請選擇時間"/>
|
|
|
+ <Button
|
|
|
+ android:id="@+id/sleep_none"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="沒做"
|
|
|
+ android:layout_marginEnd="10dp"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/view_title_sleep"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/sleep"/>
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ </ScrollView>
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|