Newer
Older
CasicSmartWell / app / src / main / res / layout / fragment_home.xml
<?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:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/mainBackColor"
    android:orientation="vertical"
    android:weightSum="4">

    <include layout="@layout/include_base_title" />

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/homeRecyclerView"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1" />

    <androidx.cardview.widget.CardView
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_marginHorizontal="@dimen/dp_10"
        android:layout_marginTop="@dimen/dp_10"
        android:layout_weight="1"
        app:cardCornerRadius="@dimen/dp_5">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            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/titleFontSize" />

            <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/unDeployedWellView"
                        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/deployedWellView"
                        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>
    </androidx.cardview.widget.CardView>

    <androidx.cardview.widget.CardView
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_marginHorizontal="@dimen/dp_10"
        android:layout_marginTop="@dimen/dp_10"
        android:layout_weight="1"
        app:cardCornerRadius="@dimen/dp_5">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:paddingVertical="@dimen/dp_5"
                android:text="工\u3000\u3000单"
                android:textColor="@color/mainTextColor"
                android:textSize="@dimen/titleFontSize" />

            <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/todoDataView"
                        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/undeterminedDataView"
                        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/inHandleDataView"
                        style="@style/homeDataTextViewStyle"
                        android:text="0"
                        android:textColor="@color/mainThemeColor" />

                    <TextView
                        style="@style/homeTextViewStyle"
                        android:text="处理中" />
                </LinearLayout>

                <LinearLayout style="@style/homeLayoutStyle">

                    <TextView
                        android:id="@+id/completedDataView"
                        style="@style/homeDataTextViewStyle"
                        android:text="0"
                        android:textColor="@color/greenTextColor" />

                    <TextView
                        style="@style/homeTextViewStyle"
                        android:text="已完成" />
                </LinearLayout>
            </LinearLayout>
        </LinearLayout>
    </androidx.cardview.widget.CardView>
</LinearLayout>