|
|
@@ -1,7 +1,7 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- xmlns:tools="http://schemas.android.com/tools"
|
|
|
- xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
@@ -54,167 +54,159 @@
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="@dimen/divider_line_space"
|
|
|
android:background="@color/black" />
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/base_info_layout"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
+ android:layout_marginHorizontal="@dimen/common_spacing_2x"
|
|
|
+ android:layout_marginTop="@dimen/common_spacing_2x"
|
|
|
android:layout_weight="1"
|
|
|
- android:orientation="vertical"
|
|
|
- android:paddingHorizontal="@dimen/dialog_content_normal_padding_horizontal">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/key_code_tv"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="@dimen/common_spacing_2x"
|
|
|
- android:text="@string/key_name"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="@dimen/common_text_size"
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
-
|
|
|
- <EditText
|
|
|
- android:id="@+id/key_code_et"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="@dimen/common_spacing"
|
|
|
- android:background="@drawable/bg_common_input"
|
|
|
- android:hint="@string/please_input_key_name"
|
|
|
- android:maxLines="1"
|
|
|
- android:paddingHorizontal="@dimen/common_spacing"
|
|
|
- android:paddingVertical="2dp"
|
|
|
- android:singleLine="true"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="@dimen/common_text_size"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/key_code_tv"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintStart_toEndOf="@+id/key_code_tv"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/key_code_tv" />
|
|
|
-
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/key_nfc_tv"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="@dimen/common_spacing_2x"
|
|
|
- android:text="@string/key_nfc"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="@dimen/common_text_size"
|
|
|
- app:layout_constraintEnd_toEndOf="@+id/key_code_tv"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/key_code_tv" />
|
|
|
-
|
|
|
- <EditText
|
|
|
- android:id="@+id/key_nfc_et"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="@dimen/common_spacing"
|
|
|
- android:background="@drawable/bg_common_input"
|
|
|
- android:hint="@string/please_input_key_nfc"
|
|
|
- android:maxLines="1"
|
|
|
- android:paddingHorizontal="@dimen/common_spacing"
|
|
|
- android:paddingVertical="2dp"
|
|
|
- android:singleLine="true"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="@dimen/common_text_size"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/key_nfc_tv"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintStart_toEndOf="@+id/key_nfc_tv"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/key_nfc_tv" />
|
|
|
-
|
|
|
+ android:background="@drawable/home_card_bg"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
<TextView
|
|
|
- android:id="@+id/key_mac_tv"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="@dimen/common_spacing_2x"
|
|
|
- android:text="@string/key_mac"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="@dimen/common_text_size"
|
|
|
- app:layout_constraintEnd_toEndOf="@+id/key_nfc_tv"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/key_nfc_tv" />
|
|
|
-
|
|
|
- <EditText
|
|
|
- android:id="@+id/key_mac_et"
|
|
|
- android:layout_width="0dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginLeft="@dimen/common_spacing"
|
|
|
- android:background="@drawable/bg_common_input"
|
|
|
- android:hint="@string/please_input_key_mac"
|
|
|
- android:paddingHorizontal="@dimen/common_spacing"
|
|
|
- android:paddingVertical="2dp"
|
|
|
+ android:paddingVertical="@dimen/common_spacing_small"
|
|
|
+ android:text="@string/exception_info"
|
|
|
android:textColor="@color/black"
|
|
|
- android:textSize="@dimen/common_text_size"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/key_mac_tv"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintStart_toEndOf="@+id/key_mac_tv"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/key_mac_tv" />
|
|
|
-
|
|
|
+ android:textSize="@dimen/normal_text_size_18" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/status_tv"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="@dimen/common_spacing_2x"
|
|
|
- android:text="@string/manage_filter_status"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="@dimen/common_text_size"
|
|
|
- app:layout_constraintEnd_toEndOf="@+id/key_mac_tv"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/key_mac_tv" />
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="@dimen/divider_line_space"
|
|
|
+ android:background="@color/black" />
|
|
|
|
|
|
- <RadioGroup
|
|
|
- android:id="@+id/status_rg"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:orientation="horizontal"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/status_tv"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintStart_toEndOf="@+id/status_tv"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/status_tv">
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:paddingHorizontal="@dimen/dialog_content_normal_padding_horizontal">
|
|
|
|
|
|
- <RadioButton
|
|
|
- android:id="@+id/activate_rb"
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/exception_type_tv"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="@dimen/common_spacing_2x"
|
|
|
+ android:text="@string/exception_type_tv"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_text_size"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/exception_type"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
android:layout_marginLeft="@dimen/common_spacing"
|
|
|
- android:text="@string/normal"
|
|
|
- android:textSize="@dimen/common_text_size" />
|
|
|
-
|
|
|
- <RadioButton
|
|
|
- android:id="@+id/deactivate_rb"
|
|
|
+ android:background="@drawable/bg_common_input"
|
|
|
+ android:drawableRight="@mipmap/icon_drop_down"
|
|
|
+ android:hint="@string/please_select_exception_type"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:paddingHorizontal="@dimen/common_spacing"
|
|
|
+ android:paddingVertical="@dimen/common_spacing_small"
|
|
|
+ android:singleLine="true"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_text_size"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/exception_type_tv"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/exception_type_tv"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/exception_type_tv" />
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/exception_source_tv"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="@dimen/common_spacing_2x"
|
|
|
+ android:text="@string/exception_source_tv"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_text_size"
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/exception_type_tv"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/exception_type_tv" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/exception_source"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
android:layout_marginLeft="@dimen/common_spacing"
|
|
|
- android:text="@string/abnormal"
|
|
|
- android:textSize="@dimen/common_text_size" />
|
|
|
- </RadioGroup>
|
|
|
-
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/remark_tv"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="@dimen/common_spacing_2x"
|
|
|
- android:text="@string/remark"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="@dimen/common_text_size"
|
|
|
- app:layout_constraintEnd_toEndOf="@+id/status_tv"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/status_tv" />
|
|
|
-
|
|
|
- <EditText
|
|
|
- android:id="@+id/remark_et"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="@dimen/common_spacing"
|
|
|
- android:background="@drawable/bg_common_input"
|
|
|
- android:hint="@string/please_input_remark"
|
|
|
- android:paddingHorizontal="@dimen/common_spacing"
|
|
|
- android:paddingVertical="2dp"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="@dimen/common_text_size"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/remark_tv"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintStart_toEndOf="@+id/remark_tv"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/remark_tv" />
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ android:background="@drawable/bg_common_input"
|
|
|
+ android:drawableRight="@mipmap/icon_drop_down"
|
|
|
+ android:hint="@string/please_select_exception_source"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:paddingHorizontal="@dimen/common_spacing"
|
|
|
+ android:paddingVertical="@dimen/common_spacing_small"
|
|
|
+ android:singleLine="true"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_text_size"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/exception_source_tv"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/exception_source_tv"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/exception_source_tv" />
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/exception_description_tv"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="@dimen/common_spacing_2x"
|
|
|
+ android:text="@string/exception_description_tv"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_text_size"
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/exception_source_tv"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/exception_source_tv" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/exception_description"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/common_spacing"
|
|
|
+ android:background="@drawable/bg_common_input"
|
|
|
+ android:drawableRight="@mipmap/icon_drop_down"
|
|
|
+ android:hint="@string/please_select_exception_description"
|
|
|
+ android:paddingHorizontal="@dimen/common_spacing"
|
|
|
+ android:paddingVertical="@dimen/common_spacing_small"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_text_size"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/exception_description_tv"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/exception_description_tv"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/exception_description_tv" />
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/process_application_tv"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="@dimen/common_spacing_2x"
|
|
|
+ android:text="@string/process_application_tv"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_text_size"
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/exception_description_tv"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/exception_description_tv" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/process_application"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/common_spacing"
|
|
|
+ android:background="@drawable/bg_common_input"
|
|
|
+ android:drawableRight="@mipmap/icon_drop_down"
|
|
|
+ android:hint="@string/please_select_process_application"
|
|
|
+ android:paddingHorizontal="@dimen/common_spacing"
|
|
|
+ android:paddingVertical="@dimen/common_spacing_small"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_text_size"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/process_application_tv"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/process_application_tv"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/process_application_tv" />
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|