<?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:id="@+id/rootView" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/themeColor" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="@dimen/titleViewHeight"> <ImageView android:id="@+id/leftButton" android:layout_width="wrap_content" android:layout_height="match_parent" android:paddingHorizontal="@dimen/dp_10" android:src="@drawable/ic_left" /> <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:text="巡查记录" android:textColor="@color/white" android:textSize="@dimen/sp_18" android:textStyle="bold" /> </RelativeLayout> <com.scwang.smartrefresh.layout.SmartRefreshLayout android:id="@+id/refreshLayout" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1"> <com.scwang.smartrefresh.layout.header.ClassicsHeader android:layout_width="match_parent" android:layout_height="wrap_content" app:srlAccentColor="@color/white" /> <androidx.recyclerview.widget.RecyclerView android:id="@+id/recyclerView" android:layout_width="match_parent" android:layout_height="wrap_content" android:scrollbars="vertical" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" /> <com.scwang.smartrefresh.layout.footer.ClassicsFooter android:layout_width="match_parent" android:layout_height="wrap_content" app:srlAccentColor="@color/white" /> </com.scwang.smartrefresh.layout.SmartRefreshLayout> </LinearLayout>