Преглед на файлове

添加系统设置多个界面

黑名单库、用户管理、角色管理、日志管理、系统设置、页面设置
shanmulinxi преди 2 години
родител
ревизия
16ec688d15

+ 18 - 2
app/src/main/java/com/sunwin/visitorapp/activity/SettingAc.java

@@ -10,8 +10,12 @@ import androidx.viewpager.widget.ViewPager;
 
 import com.sunwin.visitorapp.BaseActivity;
 import com.sunwin.visitorapp.R;
-import com.sunwin.visitorapp.fragment.HomeFr;
+import com.sunwin.visitorapp.fragment.BlackListManageFr;
+import com.sunwin.visitorapp.fragment.LogManageFr;
 import com.sunwin.visitorapp.fragment.PageManageFr;
+import com.sunwin.visitorapp.fragment.RoleManageFr;
+import com.sunwin.visitorapp.fragment.SystemOptionFr;
+import com.sunwin.visitorapp.fragment.UserManageFr;
 import com.sunwin.visitorapp.view.UINav;
 
 import static androidx.fragment.app.FragmentPagerAdapter.BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT;
@@ -35,9 +39,21 @@ public class SettingAc extends BaseActivity {
             public Fragment getItem(int position) {
                 switch (position){
                     default:{
-                        return new HomeFr();
+                        return new BlackListManageFr();
 
                     }
+                    case 1:{
+                        return new UserManageFr();
+                    }
+                    case 2:{
+                        return new RoleManageFr();
+                    }
+                    case 3:{
+                        return new LogManageFr();
+                    }
+                    case 4:{
+                        return new SystemOptionFr();
+                    }
                     case 5:{
                         return new PageManageFr();
                     }

+ 25 - 0
app/src/main/java/com/sunwin/visitorapp/fragment/BlackListManageFr.java

@@ -0,0 +1,25 @@
+package com.sunwin.visitorapp.fragment;
+
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.fragment.app.Fragment;
+
+import com.sunwin.visitorapp.R;
+
+public class BlackListManageFr extends Fragment {
+
+    private View root;
+    @Nullable
+    @Override
+    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
+
+        if(root==null)root = inflater.inflate(R.layout.fr_blacklist,container,false);
+
+        return root;
+    }
+}

+ 25 - 0
app/src/main/java/com/sunwin/visitorapp/fragment/LogManageFr.java

@@ -0,0 +1,25 @@
+package com.sunwin.visitorapp.fragment;
+
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.fragment.app.Fragment;
+
+import com.sunwin.visitorapp.R;
+
+public class LogManageFr extends Fragment {
+
+    private View root;
+    @Nullable
+    @Override
+    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
+
+        if(root==null)root = inflater.inflate(R.layout.fr_log_manage,container,false);
+
+        return root;
+    }
+}

+ 1 - 1
app/src/main/java/com/sunwin/visitorapp/fragment/PageManageFr.java

@@ -18,7 +18,7 @@ import com.sunwin.visitorapp.utils.CacheUtil;
 public class PageManageFr  extends Fragment {
     private View root;
     private EditText EditLoginPageTitle,EditWelcomePageTip;
-    private TextView TextButtonSure;
+    private View TextButtonSure;
     @Nullable
     @Override
     public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

+ 25 - 0
app/src/main/java/com/sunwin/visitorapp/fragment/RoleManageFr.java

@@ -0,0 +1,25 @@
+package com.sunwin.visitorapp.fragment;
+
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.fragment.app.Fragment;
+
+import com.sunwin.visitorapp.R;
+
+public class RoleManageFr extends Fragment {
+
+    private View root;
+    @Nullable
+    @Override
+    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
+
+        if(root==null)root = inflater.inflate(R.layout.fr_role_manage,container,false);
+
+        return root;
+    }
+}

+ 25 - 0
app/src/main/java/com/sunwin/visitorapp/fragment/SystemOptionFr.java

@@ -0,0 +1,25 @@
+package com.sunwin.visitorapp.fragment;
+
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.fragment.app.Fragment;
+
+import com.sunwin.visitorapp.R;
+
+public class SystemOptionFr extends Fragment {
+
+    private View root;
+    @Nullable
+    @Override
+    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
+
+        if(root==null)root = inflater.inflate(R.layout.fr_system_option,container,false);
+
+        return root;
+    }
+}

+ 25 - 0
app/src/main/java/com/sunwin/visitorapp/fragment/UserManageFr.java

@@ -0,0 +1,25 @@
+package com.sunwin.visitorapp.fragment;
+
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.fragment.app.Fragment;
+
+import com.sunwin.visitorapp.R;
+
+public class UserManageFr extends Fragment {
+
+    private View root;
+    @Nullable
+    @Override
+    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
+
+        if(root==null)root = inflater.inflate(R.layout.fr_user_manage,container,false);
+
+        return root;
+    }
+}

+ 58 - 0
app/src/main/res/drawable/button_primary.xml

@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+    <item  android:state_pressed="true">
+        <shape >
+            <!--设置圆角-->
+            <!--  按顺序分别对应:左下角的角度、右下角的角度、左上角的角度、右上角的角度-->
+            <corners
+                android:bottomLeftRadius="@dimen/Normal_Card_Radius"
+                android:bottomRightRadius="@dimen/Normal_Card_Radius"
+                android:topLeftRadius="@dimen/Normal_Card_Radius"
+                android:topRightRadius="@dimen/Normal_Card_Radius" />
+            <!--设置圆角背景色-->
+            <solid android:color="@color/ColorPrimary_O_6" />
+            <!--  设置边框大小与背景色-->
+            <stroke
+                android:width="2dp"
+                android:color="@color/ColorPrimary_O_6" />
+
+        </shape>
+    </item>
+    <item android:state_enabled="false" >
+        <shape >
+            <!--设置圆角-->
+            <!--  按顺序分别对应:左下角的角度、右下角的角度、左上角的角度、右上角的角度-->
+            <corners
+                android:bottomLeftRadius="@dimen/Normal_Card_Radius"
+                android:bottomRightRadius="@dimen/Normal_Card_Radius"
+                android:topLeftRadius="@dimen/Normal_Card_Radius"
+                android:topRightRadius="@dimen/Normal_Card_Radius" />
+            <!--设置圆角背景色-->
+            <solid android:color="@color/ColorGray" />
+            <!--  设置边框大小与背景色-->
+            <stroke
+                android:width="2dp"
+                android:color="@color/ColorGray" />
+
+        </shape>
+    </item>
+    <item>
+        <shape >
+            <!--设置圆角-->
+            <!--  按顺序分别对应:左下角的角度、右下角的角度、左上角的角度、右上角的角度-->
+            <corners
+                android:bottomLeftRadius="@dimen/Normal_Card_Radius"
+                android:bottomRightRadius="@dimen/Normal_Card_Radius"
+                android:topLeftRadius="@dimen/Normal_Card_Radius"
+                android:topRightRadius="@dimen/Normal_Card_Radius" />
+            <!--设置圆角背景色-->
+            <solid android:color="@color/ColorPrimary" />
+            <!--  设置边框大小与背景色-->
+            <stroke
+                android:width="2dp"
+                android:color="@color/ColorPrimary" />
+
+        </shape>
+    </item>
+</selector>
+

+ 2 - 2
app/src/main/res/drawable/card_primary.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
 
-    <item android:state_checked="true" android:state_enabled="true">
+    <item android:state_enabled="true">
         <shape >
             <!--设置圆角-->
             <!--  按顺序分别对应:左下角的角度、右下角的角度、左上角的角度、右上角的角度-->
@@ -19,7 +19,7 @@
 
         </shape>
     </item>
-    <item android:state_checked="false" android:state_enabled="false">
+    <item android:state_enabled="false" >
         <shape >
             <!--设置圆角-->
             <!--  按顺序分别对应:左下角的角度、右下角的角度、左上角的角度、右上角的角度-->

+ 41 - 0
app/src/main/res/drawable/card_primary_checked.xml

@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+
+    <item android:state_checked="true" >
+        <shape >
+            <!--设置圆角-->
+            <!--  按顺序分别对应:左下角的角度、右下角的角度、左上角的角度、右上角的角度-->
+            <corners
+                android:bottomLeftRadius="@dimen/Normal_Card_Radius"
+                android:bottomRightRadius="@dimen/Normal_Card_Radius"
+                android:topLeftRadius="@dimen/Normal_Card_Radius"
+                android:topRightRadius="@dimen/Normal_Card_Radius" />
+            <!--设置圆角背景色-->
+            <solid android:color="@color/ColorPrimary" />
+            <!--  设置边框大小与背景色-->
+            <stroke
+                android:width="2dp"
+                android:color="@color/ColorPrimary" />
+
+        </shape>
+    </item>
+    <item android:state_checked="false" >
+        <shape >
+            <!--设置圆角-->
+            <!--  按顺序分别对应:左下角的角度、右下角的角度、左上角的角度、右上角的角度-->
+            <corners
+                android:bottomLeftRadius="@dimen/Normal_Card_Radius"
+                android:bottomRightRadius="@dimen/Normal_Card_Radius"
+                android:topLeftRadius="@dimen/Normal_Card_Radius"
+                android:topRightRadius="@dimen/Normal_Card_Radius" />
+            <!--设置圆角背景色-->
+            <solid android:color="@color/ColorGray" />
+            <!--  设置边框大小与背景色-->
+            <stroke
+                android:width="2dp"
+                android:color="@color/ColorGray" />
+
+        </shape>
+    </item>
+</selector>
+

+ 3 - 0
app/src/main/res/layout/ac_setting.xml

@@ -2,6 +2,8 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
+    android:focusable="true"
+    android:focusableInTouchMode="true"
     android:orientation="vertical"
     android:background="@drawable/login_button_normal">
 
@@ -32,6 +34,7 @@
                 android:layout_height="wrap_content">
 
                 <RadioButton
+                    android:checked="true"
                     android:id="@+id/RadioBlackList"
                     android:text="黑名单库"
                     style="@style/Setting_Tab_Item_View"/>

+ 1 - 1
app/src/main/res/layout/ac_visitor_register.xml

@@ -342,7 +342,7 @@
             <TextView
                 android:id="@+id/TextButtonSure"
                 android:layout_gravity="center_horizontal"
-                style="@style/TextButtonPrimary"
+                style="@style/ButtonPrimary"
 
                 android:layout_marginHorizontal="100dp"
                 android:layout_width="match_parent"

+ 63 - 0
app/src/main/res/layout/fr_blacklist.xml

@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:orientation="vertical"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:paddingHorizontal="20dp">
+
+    <androidx.constraintlayout.widget.ConstraintLayout
+        android:layout_marginVertical="10dp"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content">
+        <Button
+            style="@style/ButtonPrimary"
+
+            app:layout_constraintStart_toStartOf="parent"
+            app:layout_constraintTop_toTopOf="parent"
+            app:layout_constraintBottom_toBottomOf="parent"
+            android:textSize="@dimen/TextSizeContent"
+            android:text="新增"
+            />
+        <LinearLayout
+
+            app:layout_constraintEnd_toEndOf="parent"
+            app:layout_constraintTop_toTopOf="parent"
+            app:layout_constraintBottom_toBottomOf="parent"
+            android:orientation="horizontal"
+            android:layout_width="wrap_content"
+            android:gravity="center_vertical"
+            android:layout_height="wrap_content">
+            <TextView
+                style="@style/StyleTextContent"
+                android:layout_width="wrap_content"
+                android:text="姓名"
+                />
+            <EditText
+                android:layout_width="100dp"
+                style="@style/StyleInputContent"
+                android:layout_height="wrap_content"/>
+            <TextView
+                style="@style/StyleTextContent"
+                android:layout_width="wrap_content"
+                android:text="身份证"
+                />
+            <EditText
+                android:layout_width="100dp"
+                style="@style/StyleInputContent"
+                android:layout_height="wrap_content"/>
+            <Button
+                style="@style/ButtonPrimary"
+                android:textSize="@dimen/TextSizeContent"
+                android:text="搜索"
+                />
+        </LinearLayout>
+    </androidx.constraintlayout.widget.ConstraintLayout>
+
+    <androidx.recyclerview.widget.RecyclerView
+        android:layout_marginVertical="10dp"
+        android:layout_width="match_parent"
+        android:layout_height="0dp"
+        android:layout_weight="1"
+        />
+</LinearLayout>

+ 69 - 0
app/src/main/res/layout/fr_log_manage.xml

@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:orientation="vertical"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:paddingHorizontal="20dp">
+
+    <androidx.constraintlayout.widget.ConstraintLayout
+        android:layout_marginVertical="10dp"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content">
+        <Button
+            style="@style/ButtonPrimary"
+
+            app:layout_constraintStart_toStartOf="parent"
+            app:layout_constraintTop_toTopOf="parent"
+            app:layout_constraintBottom_toBottomOf="parent"
+            android:layout_width="wrap_content"
+            android:textAlignment="center"
+            android:textSize="@dimen/TextSizeContent"
+            android:text="导出"
+            />
+        <LinearLayout
+
+            app:layout_constraintEnd_toEndOf="parent"
+            app:layout_constraintTop_toTopOf="parent"
+            app:layout_constraintBottom_toBottomOf="parent"
+            android:orientation="horizontal"
+            android:layout_width="wrap_content"
+            android:gravity="center_vertical"
+            android:layout_height="wrap_content">
+            <EditText
+                android:layout_width="230dp"
+                android:hint="用户名、IP、行为等"
+                style="@style/StyleInputContent"
+                android:layout_height="wrap_content"/>
+            <EditText
+                android:layout_width="150dp"
+                android:hint="开始时间"
+                style="@style/StyleInputContent"
+                android:layout_height="wrap_content"/>
+            <TextView
+                style="@style/StyleTextContent"
+                android:layout_width="wrap_content"
+                android:text="至"
+                />
+            <EditText
+                android:layout_width="150dp"
+                android:hint="结束时间"
+                style="@style/StyleInputContent"
+                android:layout_height="wrap_content"/>
+            <Button
+                style="@style/ButtonPrimary"
+                android:layout_width="wrap_content"
+                android:textAlignment="center"
+                android:textSize="@dimen/TextSizeContent"
+                android:text="搜索"
+                />
+        </LinearLayout>
+    </androidx.constraintlayout.widget.ConstraintLayout>
+
+    <androidx.recyclerview.widget.RecyclerView
+        android:layout_marginVertical="10dp"
+        android:layout_width="match_parent"
+        android:layout_height="0dp"
+        android:layout_weight="1"
+        />
+</LinearLayout>

+ 2 - 2
app/src/main/res/layout/fr_page_manage.xml

@@ -80,10 +80,10 @@
                 android:layout_height="wrap_content"/>
         </LinearLayout>
     </LinearLayout>
-    <TextView
+    <Button
         android:id="@+id/TextButtonSure"
         android:layout_gravity="center_horizontal"
-        style="@style/TextButtonPrimary"
+        style="@style/ButtonPrimary"
 
         android:layout_marginHorizontal="100dp"
         android:layout_width="match_parent"

+ 58 - 0
app/src/main/res/layout/fr_role_manage.xml

@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:orientation="vertical"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:paddingHorizontal="20dp">
+
+    <androidx.constraintlayout.widget.ConstraintLayout
+        android:layout_marginVertical="10dp"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content">
+        <Button
+            style="@style/ButtonPrimary"
+
+            app:layout_constraintStart_toStartOf="parent"
+            app:layout_constraintTop_toTopOf="parent"
+            app:layout_constraintBottom_toBottomOf="parent"
+            android:layout_width="wrap_content"
+            android:textAlignment="center"
+            android:textSize="@dimen/TextSizeContent"
+            android:text="新增"
+            />
+        <LinearLayout
+
+            app:layout_constraintEnd_toEndOf="parent"
+            app:layout_constraintTop_toTopOf="parent"
+            app:layout_constraintBottom_toBottomOf="parent"
+            android:orientation="horizontal"
+            android:layout_width="wrap_content"
+            android:gravity="center_vertical"
+            android:layout_height="wrap_content">
+            <TextView
+                style="@style/StyleTextContent"
+                android:layout_width="wrap_content"
+                android:text="角色名"
+                />
+            <EditText
+                android:layout_width="150dp"
+                style="@style/StyleInputContent"
+                android:layout_height="wrap_content"/>
+            <Button
+                style="@style/ButtonPrimary"
+                android:layout_width="wrap_content"
+                android:textAlignment="center"
+                android:textSize="@dimen/TextSizeContent"
+                android:text="搜索"
+                />
+        </LinearLayout>
+    </androidx.constraintlayout.widget.ConstraintLayout>
+
+    <androidx.recyclerview.widget.RecyclerView
+        android:layout_marginVertical="10dp"
+        android:layout_width="match_parent"
+        android:layout_height="0dp"
+        android:layout_weight="1"
+        />
+</LinearLayout>

+ 253 - 0
app/src/main/res/layout/fr_system_option.xml

@@ -0,0 +1,253 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:orientation="vertical"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:paddingHorizontal="20dp"
+    >
+
+    <LinearLayout
+        android:layout_marginVertical="10dp"
+        android:orientation="horizontal"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content">
+        <LinearLayout
+            android:layout_weight="1"
+            android:layout_margin="10dp"
+            android:orientation="horizontal"
+            android:layout_width="0dp"
+            android:gravity="center"
+            android:layout_height="wrap_content"
+            tools:targetApi="lollipop">
+            <TextView
+                style="@style/StyleTextContent"
+                android:layout_width="wrap_content"
+                android:text="时区"
+                />
+            <EditText
+                android:id="@+id/EditTimeZone"
+                android:layout_width="match_parent"
+                style="@style/StyleInputContent"
+                android:layout_height="wrap_content"/>
+        </LinearLayout>
+        <LinearLayout
+            android:layout_weight="1"
+            android:layout_margin="10dp"
+            android:orientation="horizontal"
+            android:layout_width="0dp"
+            android:gravity="center"
+            android:layout_height="wrap_content">
+            <TextView
+                style="@style/StyleTextContent"
+                android:layout_width="wrap_content"
+                android:text="IP地址"
+                />
+            <EditText
+                android:id="@+id/EditIPAddress"
+                android:layout_width="match_parent"
+                style="@style/StyleInputContent"
+                android:layout_height="wrap_content"/>
+        </LinearLayout>
+        <LinearLayout
+            android:layout_weight="1"
+            android:layout_margin="10dp"
+            android:orientation="horizontal"
+            android:layout_width="0dp"
+            android:gravity="center"
+            android:layout_height="wrap_content">
+            <TextView
+                style="@style/StyleTextContent"
+                android:layout_width="wrap_content"
+                android:text="比对阈值"
+                />
+            <EditText
+                android:layout_width="match_parent"
+                style="@style/StyleInputContent"
+                android:layout_height="wrap_content"/>
+        </LinearLayout>
+    </LinearLayout>
+    <LinearLayout
+        android:layout_marginVertical="10dp"
+        android:orientation="horizontal"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content">
+        <LinearLayout
+            android:layout_weight="1"
+            android:layout_margin="10dp"
+            android:orientation="horizontal"
+            android:layout_width="0dp"
+            android:gravity="center"
+            android:layout_height="wrap_content">
+            <TextView
+                style="@style/StyleTextContent"
+                android:layout_width="wrap_content"
+                android:text="服务器地址"
+                />
+            <EditText
+                android:layout_width="match_parent"
+                style="@style/StyleInputContent"
+                android:layout_height="wrap_content"/>
+        </LinearLayout>
+        <LinearLayout
+            android:layout_weight="1"
+            android:layout_margin="10dp"
+            android:orientation="horizontal"
+            android:layout_width="0dp"
+            android:gravity="center"
+            android:layout_height="wrap_content">
+            <TextView
+                style="@style/StyleTextContent"
+                android:layout_width="wrap_content"
+                android:text="子网掩码"
+                />
+            <EditText
+                android:layout_width="match_parent"
+                style="@style/StyleInputContent"
+                android:layout_height="wrap_content"/>
+        </LinearLayout>
+        <LinearLayout
+            android:layout_weight="1"
+            android:layout_margin="10dp"
+            android:orientation="horizontal"
+            android:layout_width="0dp"
+            android:gravity="center"
+            android:layout_height="wrap_content">
+            <TextView
+                style="@style/StyleTextContent"
+                android:layout_width="wrap_content"
+                android:text="活体阈值"
+                />
+            <EditText
+                android:layout_width="match_parent"
+                style="@style/StyleInputContent"
+                android:layout_height="wrap_content"/>
+        </LinearLayout>
+    </LinearLayout>
+    <LinearLayout
+        android:layout_marginVertical="10dp"
+        android:orientation="horizontal"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content">
+        <LinearLayout
+            android:layout_weight="1"
+            android:layout_margin="10dp"
+            android:orientation="horizontal"
+            android:layout_width="0dp"
+            android:gravity="center"
+            android:layout_height="wrap_content">
+            <TextView
+                style="@style/StyleTextContent"
+                android:layout_width="wrap_content"
+                android:text="服务器端口"
+                />
+            <EditText
+                android:layout_width="match_parent"
+                style="@style/StyleInputContent"
+                android:layout_height="wrap_content"/>
+        </LinearLayout>
+        <LinearLayout
+            android:layout_weight="1"
+            android:layout_margin="10dp"
+            android:orientation="horizontal"
+            android:layout_width="0dp"
+            android:gravity="center"
+            android:layout_height="wrap_content">
+            <TextView
+                style="@style/StyleTextContent"
+                android:layout_width="wrap_content"
+                android:text="网关"
+                />
+            <EditText
+                android:layout_width="match_parent"
+                style="@style/StyleInputContent"
+                android:layout_height="wrap_content"/>
+        </LinearLayout>
+        <LinearLayout
+            android:layout_weight="1"
+            android:layout_margin="10dp"
+            android:orientation="horizontal"
+            android:layout_width="0dp"
+            android:gravity="center"
+            android:layout_height="wrap_content">
+            <TextView
+                style="@style/StyleTextContent"
+                android:layout_width="wrap_content"
+                android:text="人脸像素"
+                />
+            <EditText
+
+                android:layout_width="match_parent"
+                style="@style/StyleInputContent"
+                android:layout_height="wrap_content"/>
+        </LinearLayout>
+    </LinearLayout>
+    <LinearLayout
+        android:layout_marginVertical="10dp"
+        android:orientation="horizontal"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content">
+        <LinearLayout
+            android:layout_weight="1"
+            android:layout_margin="10dp"
+            android:orientation="horizontal"
+            android:layout_width="0dp"
+            android:gravity="center"
+            android:layout_height="wrap_content">
+            <TextView
+                style="@style/StyleTextContent"
+                android:layout_width="wrap_content"
+                android:text="校时间隔"
+                />
+            <EditText
+                android:layout_width="match_parent"
+                style="@style/StyleInputContent"
+                android:layout_height="wrap_content"/>
+        </LinearLayout>
+        <LinearLayout
+            android:layout_weight="1"
+            android:layout_margin="10dp"
+            android:orientation="horizontal"
+            android:layout_width="0dp"
+            android:gravity="center"
+            android:layout_height="wrap_content">
+            <TextView
+                style="@style/StyleTextContent"
+                android:layout_width="wrap_content"
+                android:text="Web端口"
+                />
+            <EditText
+                android:layout_width="match_parent"
+                style="@style/StyleInputContent"
+                android:layout_height="wrap_content"/>
+        </LinearLayout>
+        <LinearLayout
+            android:layout_weight="1"
+            android:layout_margin="10dp"
+            android:orientation="horizontal"
+            android:layout_width="0dp"
+            android:gravity="center"
+            android:layout_height="wrap_content">
+            <TextView
+                style="@style/StyleTextContent"
+                android:layout_width="wrap_content"
+                android:text="比对次数"
+                />
+            <EditText
+                android:layout_width="match_parent"
+                style="@style/StyleInputContent"
+                android:layout_height="wrap_content"/>
+        </LinearLayout>
+    </LinearLayout>
+    <Button
+        android:id="@+id/TextButtonSure"
+        android:layout_gravity="center_horizontal"
+        style="@style/ButtonPrimary"
+
+        android:layout_marginHorizontal="100dp"
+        android:layout_width="match_parent"
+        android:textAlignment="center"
+        android:layout_marginTop="20dp"
+        android:text="提交"
+        />
+</LinearLayout>

+ 58 - 0
app/src/main/res/layout/fr_user_manage.xml

@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:orientation="vertical"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:paddingHorizontal="20dp">
+
+    <androidx.constraintlayout.widget.ConstraintLayout
+        android:layout_marginVertical="10dp"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content">
+        <Button
+            style="@style/ButtonPrimary"
+
+            app:layout_constraintStart_toStartOf="parent"
+            app:layout_constraintTop_toTopOf="parent"
+            app:layout_constraintBottom_toBottomOf="parent"
+            android:layout_width="wrap_content"
+            android:textAlignment="center"
+            android:textSize="@dimen/TextSizeContent"
+            android:text="新增"
+            />
+        <LinearLayout
+
+            app:layout_constraintEnd_toEndOf="parent"
+            app:layout_constraintTop_toTopOf="parent"
+            app:layout_constraintBottom_toBottomOf="parent"
+            android:orientation="horizontal"
+            android:layout_width="wrap_content"
+            android:gravity="center_vertical"
+            android:layout_height="wrap_content">
+            <TextView
+                style="@style/StyleTextContent"
+                android:layout_width="wrap_content"
+                android:text="姓名"
+                />
+            <EditText
+                android:layout_width="150dp"
+                style="@style/StyleInputContent"
+                android:layout_height="wrap_content"/>
+            <Button
+                style="@style/ButtonPrimary"
+                android:layout_width="wrap_content"
+                android:textAlignment="center"
+                android:textSize="@dimen/TextSizeContent"
+                android:text="搜索"
+                />
+        </LinearLayout>
+    </androidx.constraintlayout.widget.ConstraintLayout>
+
+    <androidx.recyclerview.widget.RecyclerView
+        android:layout_marginVertical="10dp"
+        android:layout_width="match_parent"
+        android:layout_height="0dp"
+        android:layout_weight="1"
+        />
+</LinearLayout>

+ 7 - 4
app/src/main/res/values/style.xml

@@ -24,9 +24,11 @@
         <item name="android:layout_marginHorizontal">5dp</item>
         <item name="android:background">@drawable/card_input</item>
     </style>
-    <style name="TextButtonPrimary" parent="StyleTextLarge">
-        <item name="android:background">@drawable/card_primary</item>
-        <item name="android:padding">12dp</item>
+    <style name="ButtonPrimary" parent="StyleTextLarge">
+        <item name="android:background">@drawable/button_primary</item>
+        <item name="android:textAlignment">center</item>
+        <item name="android:paddingHorizontal">18dp</item>
+        <item name="android:paddingVertical">8dp</item>
         <item name="android:textColor">@color/ColorWhite</item>
     </style>
     <color name="NavBackgroundColor">#00FFFFFF</color>
@@ -35,6 +37,7 @@
     <dimen name="Normal_Card_Radius">7dp</dimen>
     <color name="ColorWhite">#eeeeee</color>
     <color name="ColorPrimary">#409eff</color>
+    <color name="ColorPrimary_O_6">#66409eff</color>
     <color name="ColorGray">#c9c9c9</color>
     <color name="ColorGray_O_6">#66c9c9c9</color>
     <dimen name="Home_Menu_Item_Radius">10dp</dimen>
@@ -94,7 +97,7 @@
     <style name="Setting_Tab_Item_View" parent="StyleTextLarge">
 
         <item name="android:button">@null</item>
-        <item name="android:background">@drawable/card_primary</item>
+        <item name="android:background">@drawable/card_primary_checked</item>
         <item name="android:layout_width">wrap_content</item>
         <item name="android:layout_height">wrap_content</item>
         <item name="android:paddingVertical">12dp</item>