<?xml version="1.0" encoding="utf-8"?>
|
<layout >
|
<data>
|
<import type="com.doumee.lib_coremodel.base.BaseViewModel"/>
|
<variable
|
name="model"
|
type="com.doumee.keyCabinet.ui.face.UserManagerVM" />
|
</data>
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:tools="http://schemas.android.com/tools"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
tools:context=".ui.users.UserManagerActivity"
|
android:background="#121212">
|
|
<RelativeLayout
|
android:id="@+id/relative_title"
|
android:layout_width="match_parent"
|
android:layout_height="56dp"
|
app:layout_constraintTop_toTopOf="parent">
|
|
<!--title中的常规布局-->
|
<RelativeLayout
|
android:id="@+id/relative_standard"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<ImageView
|
android:id="@+id/image_back"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:layout_marginLeft="21dp"
|
android:paddingLeft="5dp"
|
android:paddingRight="5dp"
|
android:layout_centerVertical="true"
|
android:src="@mipmap/ic_return" />
|
|
<TextView
|
android:id="@+id/tv_title"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerInParent="true"
|
android:text="@string/user_1"
|
android:textColor="@color/white"
|
android:textSize="@dimen/title_font" />
|
|
<ImageView
|
android:id="@+id/image_menu"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:src="@mipmap/icon_titlebar_menu"
|
android:layout_centerVertical="true"
|
android:layout_alignParentRight="true"
|
android:paddingRight="20dp"/>
|
|
<ImageView
|
android:id="@+id/image_icon_research"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:src="@mipmap/icon_titlebar_search"
|
android:layout_centerVertical="true"
|
android:layout_toLeftOf="@id/image_menu"
|
android:paddingRight="12dp"
|
android:paddingLeft="12dp"
|
android:layout_marginRight="12dp" />
|
|
<TextView
|
android:id="@+id/text_cancel"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_alignParentRight="true"
|
android:layout_centerVertical="true"
|
android:layout_marginRight="20dp"
|
android:visibility="gone"
|
android:text="@string/cancel"
|
android:textColor="@color/white"
|
android:textSize="16sp" />
|
|
</RelativeLayout>
|
|
<!--title中的搜索布局-->
|
<LinearLayout
|
android:id="@+id/linear_title_search"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="14dp"
|
android:layout_centerVertical="true"
|
android:visibility="gone"
|
android:layout_marginTop="9dp"
|
android:layout_marginBottom="9dp">
|
|
<RelativeLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="4"
|
android:background="@drawable/bt_search_round"
|
android:paddingLeft="16dp"
|
android:paddingRight="11dp">
|
|
<ImageView
|
android:id="@+id/image"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:src="@mipmap/icon_search"
|
android:layout_centerVertical="true"/>
|
|
<ImageView
|
android:id="@+id/image_input_delete"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:src="@mipmap/icon_input_delete"
|
android:layout_alignParentRight="true"
|
android:layout_centerVertical="true"/>
|
|
<EditText
|
android:id="@+id/edit_title_search"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_toRightOf="@id/image"
|
android:layout_marginLeft="10dp"
|
android:layout_toLeftOf="@id/image_input_delete"
|
android:paddingTop="10dp"
|
android:paddingBottom="10dp"
|
android:background="@null"
|
android:textSize="16sp"
|
android:hint="@string/addface_ss"
|
android:textColorHint="#666666"
|
android:textColor="@color/white" />
|
</RelativeLayout>
|
|
<Button
|
android:id="@+id/btn_title_cancel"
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:background="@null"
|
android:textColor="@color/white"
|
android:textSize="16sp"
|
android:text="@string/cancel"/>
|
|
</LinearLayout>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="0.3dp"
|
android:layout_alignParentBottom="true"
|
android:background="@color/colorLine" />
|
</RelativeLayout>
|
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/recycler_user_manager"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="15dp"
|
android:layout_marginLeft="20dp"
|
app:layout_constraintTop_toBottomOf="@id/relative_title"
|
app:layout_constraintBottom_toTopOf="@id/relative_botton_delete"/>
|
|
<RelativeLayout
|
android:id="@+id/relative_empty"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:visibility="visible">
|
|
<ImageView
|
android:id="@+id/image_empty"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerHorizontal="true"
|
android:src="@mipmap/image_empty_content"/>
|
|
<TextView
|
android:id="@+id/text_empty"
|
android:layout_below="@id/image_empty"
|
android:layout_marginTop="15dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerHorizontal="true"
|
android:text="@string/addface_zwnr"
|
android:textSize="15sp"
|
android:textColor="#666666"/>
|
|
</RelativeLayout>
|
|
<!--全选-->
|
<RelativeLayout
|
android:id="@+id/relative_botton_delete"
|
android:layout_width="match_parent"
|
android:layout_height="56dp"
|
android:background="#333333"
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
<CheckBox
|
android:id="@+id/check_all"
|
android:layout_width="20dp"
|
android:layout_height="20dp"
|
android:layout_centerVertical="true"
|
android:layout_marginLeft="35dp"
|
android:button="@null"
|
android:checked="false"
|
android:background="@drawable/checkbox_selector"
|
android:focusableInTouchMode="false"/>
|
|
<TextView
|
android:id="@+id/text_all"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/addface_qx"
|
android:layout_toRightOf="@id/check_all"
|
android:layout_marginLeft="8dp"
|
android:textColor="#CCCCCC"
|
android:layout_centerVertical="true"
|
android:textSize="16sp"/>
|
|
<TextView
|
android:id="@+id/text_delete"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_alignParentRight="true"
|
android:layout_centerVertical="true"
|
android:layout_marginRight="20dp"
|
android:textSize="16sp"
|
android:textColor="#666666"
|
android:text="@string/deleted"/>
|
</RelativeLayout>
|
|
<RelativeLayout
|
android:id="@+id/progress_group"
|
android:layout_width="250dp"
|
android:layout_height="100dp"
|
android:background="#50000000"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:visibility="gone">
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerInParent="true"
|
android:orientation="vertical"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/white"
|
android:layout_gravity="center_horizontal"
|
android:layout_marginBottom="10dp"
|
android:text="@string/user_tip1"
|
android:textSize="14dp"/>
|
<ProgressBar
|
android:id="@+id/progress_bar"
|
style="@android:style/Widget.ProgressBar.Horizontal"
|
android:layout_width="200dp"
|
android:layout_height="15dp"
|
android:layout_gravity="center_horizontal"
|
android:max="100"
|
android:progress="0"
|
android:progressDrawable="@drawable/progressbar_bg"
|
/>
|
<TextView
|
android:id="@+id/progress_text"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/white"
|
android:textSize="12dp"
|
android:layout_marginTop="10dp"
|
android:layout_gravity="center_horizontal"
|
/>
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
</layout>
|