From 8226f232c39359b36aff8a9b0453c2fb48ee4372 Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期一, 18 十二月 2023 11:48:53 +0800 Subject: [PATCH] 用户列表分页加载 --- app/src/main/res/layout/activity_newcard_list.xml | 37 ++++++++++++++++++++++++++++++------- 1 files changed, 30 insertions(+), 7 deletions(-) diff --git a/app/src/main/res/layout/activity_newcard_list.xml b/app/src/main/res/layout/activity_newcard_list.xml index b170f31..add0af0 100644 --- a/app/src/main/res/layout/activity_newcard_list.xml +++ b/app/src/main/res/layout/activity_newcard_list.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +<RelativeLayout 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" @@ -14,13 +14,36 @@ app:leftImage="@mipmap/icon_back" app:rightText="绛涢��" /> - <ListView - android:id="@+id/newCard_listView" + + <com.scwang.smart.refresh.layout.SmartRefreshLayout + android:id="@+id/refreshLayout" android:layout_width="match_parent" android:layout_height="match_parent" - android:cacheColorHint="#ffffff" - android:divider="@null" - android:dividerHeight="0dp" /> + android:layout_above="@id/user_total" + android:layout_below="@+id/titleBar"> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/recyclerView" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="#fff" + android:overScrollMode="never" + android:padding="10dp" /> + + <com.scwang.smart.refresh.footer.ClassicsFooter + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + </com.scwang.smart.refresh.layout.SmartRefreshLayout> -</LinearLayout> \ No newline at end of file + <TextView + android:id="@+id/user_total" + android:layout_width="match_parent" + android:layout_height="50dp" + android:layout_alignParentBottom="true" + android:background="@color/title_bg" + android:gravity="center" + android:text="宸插垱寤虹敤鎴凤細" + android:textSize="@dimen/text_size" /> + +</RelativeLayout> \ No newline at end of file -- Gitblit v1.8.0