|
|
@@ -0,0 +1,233 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="@dimen/dialog_common_root_width"
|
|
|
+ android:layout_height="@dimen/dialog_common_root_height_big"
|
|
|
+ android:background="@drawable/common_card_bg"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/title_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:paddingHorizontal="@dimen/common_spacing"
|
|
|
+ android:paddingVertical="@dimen/common_spacing_small">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/key_manage_key_detail_title"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_btn_text_size" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/close_iv"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:paddingHorizontal="@dimen/common_spacing"
|
|
|
+ android:src="@drawable/icon_close" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="@dimen/divider_line_space"
|
|
|
+ android:background="@color/black" />
|
|
|
+
|
|
|
+ <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">
|
|
|
+
|
|
|
+ <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" />
|
|
|
+
|
|
|
+
|
|
|
+ <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_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: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" />
|
|
|
+
|
|
|
+
|
|
|
+ <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" />
|
|
|
+
|
|
|
+ <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">
|
|
|
+
|
|
|
+ <RadioButton
|
|
|
+ android:id="@+id/activate_rb"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ 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:layout_width="wrap_content"
|
|
|
+ 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>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="right"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="@dimen/common_spacing">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/confirm"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/common_spacing"
|
|
|
+ android:background="@drawable/common_btn"
|
|
|
+ android:paddingHorizontal="@dimen/common_spacing_2x"
|
|
|
+ android:text="@string/confirm"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_btn_text_size" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/cancel"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/common_spacing"
|
|
|
+ android:background="@drawable/common_btn"
|
|
|
+ android:paddingHorizontal="@dimen/common_spacing_2x"
|
|
|
+ android:text="@string/cancel"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_btn_text_size" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+</layout>
|