126 lines
4.7 KiB
XML
126 lines
4.7 KiB
XML
<?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:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:background="@android:color/white"
|
||
android:fitsSystemWindows="true"
|
||
android:orientation="vertical">
|
||
|
||
<!-- 标题栏:48dp,与商品入库保持一致 -->
|
||
<FrameLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="48dp"
|
||
android:background="@android:color/white">
|
||
|
||
<ImageView
|
||
android:id="@+id/iv_back"
|
||
android:layout_width="22dp"
|
||
android:layout_height="22dp"
|
||
android:layout_gravity="start|center_vertical"
|
||
android:layout_marginStart="16dp"
|
||
android:clickable="true"
|
||
android:contentDescription="@string/user_manage_back"
|
||
android:focusable="true"
|
||
android:src="@mipmap/icon_product_inbound_back" />
|
||
|
||
<TextView
|
||
style="@style/HomeText"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:gravity="center"
|
||
android:text="@string/user_manage_title"
|
||
android:textColor="#222222"
|
||
android:textSize="16sp"
|
||
android:textStyle="bold" />
|
||
</FrameLayout>
|
||
|
||
<!-- 搜索区:48dp 圆角输入框 + 36dp 橙色搜索按钮 -->
|
||
<FrameLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="80dp"
|
||
android:background="@android:color/white">
|
||
|
||
<EditText
|
||
android:id="@+id/et_search"
|
||
style="@style/HomeText"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="48dp"
|
||
android:layout_marginStart="22dp"
|
||
android:layout_marginTop="16dp"
|
||
android:layout_marginEnd="26dp"
|
||
android:background="@drawable/user_search_bg"
|
||
android:gravity="center_vertical"
|
||
android:hint="@string/user_manage_search_hint"
|
||
android:imeOptions="actionSearch"
|
||
android:inputType="text"
|
||
android:maxLines="1"
|
||
android:paddingStart="14dp"
|
||
android:paddingEnd="50dp"
|
||
android:textColor="#222222"
|
||
android:textColorHint="#999999"
|
||
android:textSize="14sp" />
|
||
|
||
<ImageView
|
||
android:id="@+id/iv_search"
|
||
android:layout_width="36dp"
|
||
android:layout_height="36dp"
|
||
android:layout_gravity="end|top"
|
||
android:layout_marginTop="22dp"
|
||
android:layout_marginEnd="32dp"
|
||
android:clickable="true"
|
||
android:contentDescription="@string/user_manage_search"
|
||
android:focusable="true"
|
||
android:src="@mipmap/icon_user_search" />
|
||
</FrameLayout>
|
||
|
||
<!-- 用户总数 -->
|
||
<TextView
|
||
android:id="@+id/tv_user_total"
|
||
style="@style/HomeText"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:background="#F5F5F5"
|
||
android:paddingStart="24dp"
|
||
android:paddingTop="20dp"
|
||
android:textColor="#222222"
|
||
android:textSize="16sp"
|
||
android:textStyle="bold" />
|
||
|
||
<!-- 用户列表:下拉刷新、上拉加载更多 -->
|
||
<FrameLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="0dp"
|
||
android:layout_weight="1"
|
||
android:background="#F5F5F5">
|
||
|
||
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
||
android:id="@+id/refresh_users"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent">
|
||
|
||
<androidx.recyclerview.widget.RecyclerView
|
||
android:id="@+id/rv_users"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:clipToPadding="false"
|
||
android:overScrollMode="never"
|
||
android:paddingBottom="24dp"
|
||
android:scrollbars="none" />
|
||
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
||
|
||
<!-- 加载中 / 空列表 / 加载失败提示,列表有数据时隐藏 -->
|
||
<TextView
|
||
android:id="@+id/tv_user_state"
|
||
style="@style/HomeText"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:gravity="center"
|
||
android:paddingBottom="60dp"
|
||
android:text="@string/user_manage_empty"
|
||
android:textColor="#999999"
|
||
android:textSize="14sp"
|
||
android:visibility="gone" />
|
||
</FrameLayout>
|
||
</LinearLayout>
|