|
|
@@ -0,0 +1,230 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="400dp"
|
|
|
+ android:layout_height="600dp"
|
|
|
+ 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="10dp"
|
|
|
+ android:paddingVertical="5dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/user_manage_filter_title"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="20sp" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/close_iv"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:paddingHorizontal="10dp"
|
|
|
+ android:src="@drawable/icon_close" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:background="@color/black" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:paddingHorizontal="16dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/role_manage_role_name"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="18sp" />
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/role_name_et"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:background="@drawable/bg_common_input"
|
|
|
+ android:hint="@string/please_input_role_name"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:paddingHorizontal="10dp"
|
|
|
+ android:paddingVertical="2dp"
|
|
|
+ android:singleLine="true"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="18sp" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:paddingHorizontal="16dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/role_manage_permission_string"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="18sp" />
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/role_key_et"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:background="@drawable/bg_common_input"
|
|
|
+ android:hint="@string/please_input_permission_characters"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:paddingHorizontal="10dp"
|
|
|
+ android:paddingVertical="2dp"
|
|
|
+ android:singleLine="true"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="18sp" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:paddingHorizontal="56dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/manage_filter_status"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="18sp" />
|
|
|
+
|
|
|
+ <RadioGroup
|
|
|
+ android:id="@+id/status_rg"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <RadioButton
|
|
|
+ android:id="@+id/activate_rb"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:textSize="18sp"
|
|
|
+ android:text="@string/user_manage_filter_activate" />
|
|
|
+
|
|
|
+ <RadioButton
|
|
|
+ android:id="@+id/deactivate_rb"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:textSize="18sp"
|
|
|
+ android:text="@string/user_manage_filter_deactivate" />
|
|
|
+ </RadioGroup>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:paddingHorizontal="16dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:text="@string/manage_role_function_permission"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="18sp" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <CheckBox
|
|
|
+ android:id="@+id/expand_collapse"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/expand_collapse"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="18sp" />
|
|
|
+
|
|
|
+ <CheckBox
|
|
|
+ android:id="@+id/all_selected"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:text="@string/all_select_not_all_select"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="18sp" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/role_list_rv"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@drawable/common_card_bg"
|
|
|
+ android:paddingHorizontal="10dp"
|
|
|
+ android:paddingBottom="10dp" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="right"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="10dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/confirm"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:background="@drawable/common_dialog_btn"
|
|
|
+ android:paddingHorizontal="20dp"
|
|
|
+ android:text="@string/confirm"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="20sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/cancel"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:background="@drawable/common_dialog_btn"
|
|
|
+ android:paddingHorizontal="20dp"
|
|
|
+ android:text="@string/cancel"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="20sp" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+</layout>
|