<?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/dp_100" android:layout_marginHorizontal="@dimen/dp_15" android:layout_marginTop="@dimen/dp_15" android:orientation="horizontal"> <Button android:id="@+id/standardButton" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="@drawable/button_main_selector" android:text="标准规范" android:textColor="@color/white" android:textSize="@dimen/sp_20" /> <Button android:id="@+id/troubleButton" android:layout_width="0dp" android:layout_height="match_parent" android:layout_marginHorizontal="@dimen/dp_10" android:layout_weight="1" android:background="@drawable/button_main_selector" android:text="隐患目录" android:textColor="@color/white" android:textSize="@dimen/sp_20" /> <Button android:id="@+id/manifestButton" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="@drawable/button_main_selector" android:text="检查清单" android:textColor="@color/white" android:textSize="@dimen/sp_20" /> </LinearLayout> <androidx.recyclerview.widget.RecyclerView android:id="@+id/recyclerView" android:layout_width="match_parent" android:layout_height="0dp" android:layout_margin="@dimen/dp_10" android:layout_weight="1" app:layoutManager="androidx.recyclerview.widget.GridLayoutManager" app:spanCount="3" /> </LinearLayout>