<?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"> <com.pengxh.kt.lite.widget.TitleBarView android:id="@+id/titleView" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/themeColor" app:tbv_left_image="@drawable/ic_title_left" app:tbv_only_show_title="false" app:tbv_show_left_image="true" app:tbv_show_right_image="false" app:tbv_text="检查清单" app:tbv_text_color="@color/white" app:tbv_text_size="@dimen/sp_18" /> <LinearLayout android:layout_width="match_parent" android:layout_height="@dimen/titleViewHeight" android:layout_marginVertical="@dimen/dp_5" android:orientation="horizontal" android:paddingHorizontal="@dimen/dp_10" android:paddingVertical="@dimen/dp_5"> <com.pengxh.kt.lite.widget.DeleteEditText android:id="@+id/searchView" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="@drawable/bg_stroke_white_1" android:hint="关键字" android:paddingHorizontal="@dimen/dp_5" android:singleLine="true" android:textColorHint="@color/white" /> <Button android:id="@+id/searchButton" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_marginStart="@dimen/dp_5" android:background="@drawable/button_login_selector" android:text="搜索" android:textColor="@color/white" android:textSize="@dimen/sp_16" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="@dimen/titleViewHeight" android:layout_marginBottom="@dimen/dp_5" android:orientation="horizontal" android:paddingHorizontal="@dimen/dp_10" android:paddingVertical="@dimen/dp_5"> <androidx.appcompat.widget.AppCompatSpinner android:id="@+id/typeSpinner" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_marginEnd="@dimen/dp_5" android:background="@color/white" android:entries="@array/type_data" /> <androidx.appcompat.widget.AppCompatSpinner android:id="@+id/contentSpinner" android:layout_width="0dp" android:layout_height="match_parent" android:layout_marginStart="@dimen/dp_5" android:layout_weight="1" android:background="@color/white" android:entries="@array/content_data" /> </LinearLayout> <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>