|
|
|
@ -6,92 +6,207 @@
|
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:layout_width="@dimen/_960dp"
|
|
|
|
|
android:layout_height="@dimen/_580dp"
|
|
|
|
|
android:layout_marginTop="@dimen/_201dp"
|
|
|
|
|
android:background="@drawable/warn_setting_btn_bg">
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingTop="@dimen/_20dp">
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/divider"
|
|
|
|
|
android:layout_width="@dimen/_6dp"
|
|
|
|
|
android:layout_height="@dimen/_28dp"
|
|
|
|
|
android:layout_marginStart="@dimen/_55dp"
|
|
|
|
|
android:background="@drawable/white_rectangle"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/tv_startTime"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_startTime"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="@dimen/_6dp"
|
|
|
|
|
android:text="@string/start_time"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="@dimen/_30dp"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/divider"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
<com.loper7.date_time_picker.DateTimePicker
|
|
|
|
|
android:id="@+id/start_picker"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_marginEnd="@dimen/_40dp"
|
|
|
|
|
android:background="@drawable/datepicker_bg"
|
|
|
|
|
android:paddingHorizontal="@dimen/_40dp"
|
|
|
|
|
android:paddingVertical="@dimen/_66dp"
|
|
|
|
|
app:dt_dividerColor="#00000000"
|
|
|
|
|
app:dt_layout="@layout/layout_date_picker_globalization1"
|
|
|
|
|
app:dt_normalTextSize="@dimen/_28dp"
|
|
|
|
|
app:dt_selectTextSize="@dimen/_30dp"
|
|
|
|
|
app:dt_selectedTextBold="true"
|
|
|
|
|
app:dt_showLabel="true"
|
|
|
|
|
app:dt_textBold="true"
|
|
|
|
|
app:dt_textColor="@color/color_offline"
|
|
|
|
|
app:dt_themeColor="@color/white"
|
|
|
|
|
app:layout_constraintStart_toStartOf="@id/tv_startTime"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tv_startTime" />
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/divider2"
|
|
|
|
|
android:layout_width="@dimen/_6dp"
|
|
|
|
|
android:layout_height="@dimen/_28dp"
|
|
|
|
|
android:layout_marginStart="@dimen/_55dp"
|
|
|
|
|
android:background="@drawable/white_rectangle"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/tv_endTime"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_endTime"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="@dimen/_6dp"
|
|
|
|
|
android:text="@string/end_time"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="@dimen/_30dp"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/divider2"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
<com.loper7.date_time_picker.DateTimePicker
|
|
|
|
|
android:id="@+id/end_picker"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_marginEnd="@dimen/_40dp"
|
|
|
|
|
android:background="@drawable/datepicker_bg"
|
|
|
|
|
android:paddingHorizontal="@dimen/_40dp"
|
|
|
|
|
android:paddingVertical="@dimen/_66dp"
|
|
|
|
|
app:dt_dividerColor="#00000000"
|
|
|
|
|
app:dt_layout="@layout/layout_date_picker_globalization1"
|
|
|
|
|
app:dt_normalTextSize="@dimen/_28dp"
|
|
|
|
|
app:dt_selectTextSize="@dimen/_30dp"
|
|
|
|
|
app:dt_selectedTextBold="true"
|
|
|
|
|
app:dt_showLabel="true"
|
|
|
|
|
app:dt_textBold="true"
|
|
|
|
|
app:dt_textColor="@color/color_offline"
|
|
|
|
|
app:dt_themeColor="@color/white"
|
|
|
|
|
app:layout_constraintStart_toStartOf="@id/tv_endTime"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tv_endTime" />
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/time_step_container"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingTop="@dimen/_20dp">
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/divider"
|
|
|
|
|
android:layout_width="@dimen/_6dp"
|
|
|
|
|
android:layout_height="@dimen/_28dp"
|
|
|
|
|
android:layout_marginStart="@dimen/_40dp"
|
|
|
|
|
android:background="@drawable/white_rectangle"
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/tv_cancel"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
android:layout_marginStart="@dimen/_55dp"
|
|
|
|
|
android:background="@drawable/white_rectangle" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_currentTime"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="@dimen/_6dp"
|
|
|
|
|
android:text="@string/current_time"
|
|
|
|
|
android:text="@string/time_step"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="@dimen/_30dp"
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/tv_cancel"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/divider"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
android:textSize="@dimen/_30dp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_time"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
<RadioGroup
|
|
|
|
|
android:id="@+id/rg_time_step"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="@dimen/_6dp"
|
|
|
|
|
android:text="2023.5.31"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="@dimen/_30dp"
|
|
|
|
|
app:layout_constraintStart_toStartOf="@id/tv_currentTime"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tv_currentTime" />
|
|
|
|
|
android:layout_marginStart="@dimen/_20dp"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatRadioButton
|
|
|
|
|
android:id="@+id/rb_s_30"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/second_30"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="@dimen/_28dp" />
|
|
|
|
|
|
|
|
|
|
<com.loper7.date_time_picker.DateTimePicker
|
|
|
|
|
android:id="@+id/picker"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:paddingHorizontal="@dimen/_40dp"
|
|
|
|
|
android:paddingVertical="@dimen/_66dp"
|
|
|
|
|
android:background="@drawable/datepicker_bg"
|
|
|
|
|
android:layout_marginEnd="@dimen/_40dp"
|
|
|
|
|
app:dt_dividerColor="#00000000"
|
|
|
|
|
app:dt_layout="@layout/layout_date_picker_globalization1"
|
|
|
|
|
app:dt_normalTextSize="@dimen/_28dp"
|
|
|
|
|
app:dt_selectTextSize="@dimen/_30dp"
|
|
|
|
|
app:dt_selectedTextBold="true"
|
|
|
|
|
app:dt_showLabel="true"
|
|
|
|
|
app:dt_textBold="true"
|
|
|
|
|
app:dt_textColor="@color/color_offline"
|
|
|
|
|
app:dt_themeColor="@color/white"
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/tv_confirm"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
<androidx.appcompat.widget.AppCompatRadioButton
|
|
|
|
|
android:id="@+id/rb_m_1"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/minute_1"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:layout_marginStart="@dimen/_20dp"
|
|
|
|
|
android:textSize="@dimen/_28dp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_cancel"
|
|
|
|
|
android:layout_width="@dimen/_480dp"
|
|
|
|
|
android:layout_height="@dimen/_81dp"
|
|
|
|
|
android:background="@drawable/cancel_btn_bg"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:text="@string/cancel"
|
|
|
|
|
android:textColor="@color/white_30"
|
|
|
|
|
android:textSize="@dimen/_36dp"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
|
<androidx.appcompat.widget.AppCompatRadioButton
|
|
|
|
|
android:id="@+id/rb_m_3"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/minute_3"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:layout_marginStart="@dimen/_20dp"
|
|
|
|
|
android:textSize="@dimen/_28dp" />
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatRadioButton
|
|
|
|
|
android:id="@+id/rb_m_5"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/minute_5"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:layout_marginStart="@dimen/_20dp"
|
|
|
|
|
android:textSize="@dimen/_28dp" />
|
|
|
|
|
</RadioGroup>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/warn_type_container"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingTop="@dimen/_20dp">
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:layout_width="@dimen/_6dp"
|
|
|
|
|
android:layout_height="@dimen/_28dp"
|
|
|
|
|
android:layout_marginStart="@dimen/_55dp"
|
|
|
|
|
android:background="@drawable/white_rectangle" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_confirm"
|
|
|
|
|
android:layout_width="@dimen/_480dp"
|
|
|
|
|
android:layout_height="@dimen/_81dp"
|
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
|
android:background="@drawable/confirm_btn_bg"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:text="@string/confirm"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="@dimen/_6dp"
|
|
|
|
|
android:text="@string/warn_type"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="@dimen/_36dp"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
android:textSize="@dimen/_30dp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_confirm"
|
|
|
|
|
android:layout_width="@dimen/_480dp"
|
|
|
|
|
android:layout_height="@dimen/_81dp"
|
|
|
|
|
android:background="@drawable/confirm_btn_bg"
|
|
|
|
|
android:layout_marginTop="@dimen/_20dp"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:text="@string/confirm"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="@dimen/_36dp"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
|
</LinearLayout>
|