Newer
Older
QingDaoSmartWell / app / src / main / res / layout / activity_statistics.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

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

    <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"
            android:paddingHorizontal="@dimen/dp_10">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal">

                <TextView
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:paddingVertical="@dimen/dp_10"
                    android:text="分区用水统计以及占比"
                    android:textColor="@color/mainTextColor"
                    android:textSize="@dimen/textFontSize" />

                <com.pengxh.kt.lite.widget.EasyAppCompatSpinner
                    android:id="@+id/periodSpinner"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical"
                    android:entries="@array/periodArray" />
            </LinearLayout>

            <androidx.cardview.widget.CardView style="@style/ChartWrapStyle">

                <com.github.mikephil.charting.charts.BarChart
                    android:id="@+id/waterBarChart"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/AndroidChartHeight" />
            </androidx.cardview.widget.CardView>

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingVertical="@dimen/dp_10"
                android:text="分区用水占比图"
                android:textColor="@color/mainTextColor"
                android:textSize="@dimen/textFontSize" />

            <androidx.cardview.widget.CardView style="@style/ChartWrapStyle">

                <com.github.mikephil.charting.charts.PieChart
                    android:id="@+id/waterPieChart"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/AndroidChartHeight" />
            </androidx.cardview.widget.CardView>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal">

                <TextView
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:paddingVertical="@dimen/dp_10"
                    android:text="水表告警统计"
                    android:textColor="@color/mainTextColor"
                    android:textSize="@dimen/textFontSize" />

                <com.pengxh.kt.lite.widget.EasyAppCompatSpinner
                    android:id="@+id/alarmPeriodSpinner"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical"
                    android:entries="@array/periodArray" />
            </LinearLayout>

            <androidx.cardview.widget.CardView style="@style/ChartWrapStyle">

                <com.github.mikephil.charting.charts.BarChart
                    android:id="@+id/alarmBarChart"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/AndroidChartHeight" />
            </androidx.cardview.widget.CardView>

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingVertical="@dimen/dp_10"
                android:text="管网资产统计"
                android:textColor="@color/mainTextColor"
                android:textSize="@dimen/textFontSize" />

            <androidx.cardview.widget.CardView style="@style/ChartWrapStyle">

                <com.github.mikephil.charting.charts.HorizontalBarChart
                    android:id="@+id/deviceHorizontalBarChart"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/AndroidChartHeight" />
            </androidx.cardview.widget.CardView>
        </LinearLayout>
    </androidx.core.widget.NestedScrollView>
</LinearLayout>