<?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" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/white" android:orientation="vertical"> <TextView android:layout_width="match_parent" android:layout_height="@dimen/titleViewHeight" android:background="@color/mainThemeColor" android:gravity="center" android:text="首页" android:textColor="@color/white" android:textSize="@dimen/sp_18" /> <androidx.coordinatorlayout.widget.CoordinatorLayout android:id="@+id/coordinatorLayout" android:layout_width="match_parent" android:layout_height="match_parent"> <!--内容区域,放统计图--> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" /> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/bg_solid_layout_white_radius_top_20" android:orientation="vertical" app:behavior_fitToContents="false" app:behavior_halfExpandedRatio="0.25" app:behavior_hideable="false" app:behavior_peekHeight="30dp" app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"> <!--顶部短横线--> <RelativeLayout android:layout_width="match_parent" android:layout_height="@dimen/dp_30"> <View android:layout_width="@dimen/dp_30" android:layout_height="@dimen/dp_3" android:layout_centerInParent="true" android:background="@drawable/bottom_short_line" /> </RelativeLayout> <androidx.core.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginHorizontal="@dimen/dp_10" android:background="@drawable/bg_solid_layout_white_radius_10" android:orientation="vertical"> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:paddingVertical="@dimen/dp_5" android:text="园区数据" android:textColor="@color/mainTextColor" android:textSize="@dimen/sp_18" /> <View style="@style/dividerViewStyle" /> <androidx.recyclerview.widget.RecyclerView android:id="@+id/infrastructureRecyclerView" android:layout_width="match_parent" android:layout_height="wrap_content" app:layoutManager="androidx.recyclerview.widget.GridLayoutManager" app:spanCount="3" tools:itemCount="6" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="@dimen/dp_10" android:background="@drawable/bg_solid_layout_white_radius_10" android:orientation="vertical"> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:paddingVertical="@dimen/dp_5" android:text="闸井统计" android:textColor="@color/mainTextColor" android:textSize="@dimen/sp_18" /> <View style="@style/dividerViewStyle" /> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal"> <LinearLayout style="@style/homeLayoutStyle"> <TextView android:id="@+id/cfWellView" style="@style/homeDataTextViewStyle" android:text="0" android:textColor="@color/redTextColor" /> <TextView style="@style/homeTextViewStyle" android:text="已撤防" /> </LinearLayout> <LinearLayout style="@style/homeLayoutStyle"> <TextView android:id="@+id/bfWellView" style="@style/homeDataTextViewStyle" android:text="0" android:textColor="@color/yellowTextColor" /> <TextView style="@style/homeTextViewStyle" android:text="已布防" /> </LinearLayout> <LinearLayout style="@style/homeLayoutStyle"> <TextView android:id="@+id/allWellDataView" style="@style/homeDataTextViewStyle" android:text="0" android:textColor="@color/greenTextColor" /> <TextView style="@style/homeTextViewStyle" android:text="全部" /> </LinearLayout> </LinearLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginHorizontal="@dimen/dp_10" android:background="@drawable/bg_solid_layout_white_radius_10" android:orientation="vertical"> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:paddingVertical="@dimen/dp_5" android:text="设备统计" android:textColor="@color/mainTextColor" android:textSize="@dimen/sp_18" /> <View style="@style/dividerViewStyle" /> <androidx.recyclerview.widget.RecyclerView android:id="@+id/deviceRecyclerView" android:layout_width="match_parent" android:layout_height="wrap_content" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" /> </LinearLayout> </LinearLayout> </androidx.core.widget.NestedScrollView> </LinearLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout> </LinearLayout>