mac
2024-05-15 eb8097cb8517726094115410777083d5f63701f0
app/src/main/res/layout/fragment_home_page.xml
@@ -29,7 +29,7 @@
    <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
        android:id="@+id/srl"
        android:layout_width="0dp"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_marginTop="@dimen/dp_26"
        app:layout_constraintBottom_toBottomOf="parent"
@@ -39,13 +39,9 @@
        <ScrollView
            android:id="@+id/sl"
            android:layout_width="0dp"
            android:layout_height="0dp"
            android:layout_marginTop="@dimen/dp_26"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/home_page_title_tv">
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginTop="@dimen/dp_26">
            <androidx.constraintlayout.widget.ConstraintLayout
                android:layout_width="match_parent"
@@ -53,45 +49,138 @@
                android:layout_marginStart="@dimen/dp_16"
                android:layout_marginEnd="@dimen/dp_16">
                <LinearLayout
                <RelativeLayout
                    android:id="@+id/home_page_station_ll"
                    android:layout_width="375dp"
                    android:layout_width="0dp"
                    android:layout_height="@dimen/dp_56"
                    android:orientation="horizontal"
                    app:layout_constraintEnd_toEndOf="parent"
                    app:layout_constraintStart_toStartOf="parent"
                    app:layout_constraintTop_toTopOf="parent">
                    <!--全部-->
                    <include
                        android:id="@+id/home_page_station_all_ic"
                        layout="@layout/item_station" />
                    <View
                        android:layout_width="15.5dp"
                        android:layout_height="match_parent" />
                    <!--故障-->
                    <include
                        android:id="@+id/home_page_station_fault_ic"
                        layout="@layout/item_station" />
                    <RelativeLayout
                        android:id="@+id/station_status_all_rl"
                        android:layout_width="74dp"
                        android:layout_height="match_parent"
                        android:background="@drawable/station_status_no_ffffff">
                    <View
                        android:layout_width="16dp"
                        android:layout_height="match_parent" />
                    <!--离线-->
                    <include
                        android:id="@+id/home_page_station_offline_ic"
                        layout="@layout/item_station" />
                        <TextView
                            android:id="@+id/station_status_all_tv"
                            android:layout_width="match_parent"
                            android:layout_height="@dimen/dp_25"
                            android:layout_marginTop="7dp"
                            android:gravity="center"
                            android:text="999"
                            android:textColor="@color/text_90000000"
                            android:textSize="@dimen/text_21"
                            android:textStyle="bold" />
                    <View
                        android:layout_width="15.5dp"
                        android:layout_height="match_parent" />
                    <!--待接入-->
                    <include
                        android:id="@+id/home_page_station_connected_ic"
                        layout="@layout/item_station" />
                        <TextView
                            android:id="@+id/station_status_number_all_tv"
                            android:layout_width="match_parent"
                            android:layout_height="@dimen/dp_17"
                            android:layout_below="@+id/station_status_all_tv"
                            android:layout_marginTop="1dp"
                            android:gravity="center"
                            android:text="state"
                            android:textColor="@color/text_40000000"
                            android:textSize="@dimen/text_14" />
                    </RelativeLayout>
                    <RelativeLayout
                        android:id="@+id/station_status_faults_rl"
                        android:layout_width="74dp"
                        android:layout_height="match_parent"
                        android:layout_marginStart="@dimen/dp_16"
                        android:layout_toEndOf="@+id/station_status_all_rl"
                        android:background="@drawable/station_status_no_ffffff">
                        <TextView
                            android:id="@+id/station_status_faults_tv"
                            android:layout_width="match_parent"
                            android:layout_height="@dimen/dp_25"
                            android:layout_marginTop="7dp"
                            android:gravity="center"
                            android:text="999"
                            android:textColor="@color/text_90000000"
                            android:textSize="@dimen/text_21"
                            android:textStyle="bold" />
                        <TextView
                            android:id="@+id/station_status_number_faults_tv"
                            android:layout_width="match_parent"
                            android:layout_height="@dimen/dp_17"
                            android:layout_below="@+id/station_status_faults_tv"
                            android:layout_marginTop="1dp"
                            android:gravity="center"
                            android:text="state"
                            android:textColor="@color/text_40000000"
                            android:textSize="@dimen/text_14" />
                    </RelativeLayout>
                    <RelativeLayout
                        android:id="@+id/station_status_off_rl"
                        android:layout_width="74dp"
                        android:layout_height="match_parent"
                        android:layout_marginStart="@dimen/dp_16"
                        android:layout_toEndOf="@+id/station_status_faults_rl"
                        android:background="@drawable/station_status_no_ffffff">
                        <TextView
                            android:id="@+id/station_status_off_tv"
                            android:layout_width="match_parent"
                            android:layout_height="@dimen/dp_25"
                            android:layout_marginTop="7dp"
                            android:gravity="center"
                            android:text="999"
                            android:textColor="@color/text_90000000"
                            android:textSize="@dimen/text_21"
                            android:textStyle="bold" />
                        <TextView
                            android:id="@+id/station_status_number_off_tv"
                            android:layout_width="match_parent"
                            android:layout_height="@dimen/dp_17"
                            android:layout_below="@+id/station_status_off_tv"
                            android:layout_marginTop="1dp"
                            android:gravity="center"
                            android:text="state"
                            android:textColor="@color/text_40000000"
                            android:textSize="@dimen/text_14" />
                    </RelativeLayout>
                    <RelativeLayout
                        android:id="@+id/station_status_connected_rl"
                        android:layout_width="74dp"
                        android:layout_height="match_parent"
                        android:layout_marginStart="@dimen/dp_16"
                        android:layout_toEndOf="@+id/station_status_off_rl"
                        android:background="@drawable/station_status_no_ffffff">
                        <TextView
                            android:id="@+id/station_status_connected_tv"
                            android:layout_width="match_parent"
                            android:layout_height="@dimen/dp_25"
                            android:layout_marginTop="7dp"
                            android:gravity="center"
                            android:text="999"
                            android:textColor="@color/text_90000000"
                            android:textSize="@dimen/text_21"
                            android:textStyle="bold" />
                        <TextView
                            android:id="@+id/station_status_number_connected_tv"
                            android:layout_width="match_parent"
                            android:layout_height="@dimen/dp_17"
                            android:layout_below="@+id/station_status_connected_tv"
                            android:layout_marginTop="1dp"
                            android:gravity="center"
                            android:text="state"
                            android:textColor="@color/text_40000000"
                            android:textSize="@dimen/text_14" />
                    </RelativeLayout>
                </LinearLayout>
                </RelativeLayout>
                <androidx.constraintlayout.widget.ConstraintLayout
                    android:id="@+id/home_page_station_info_cl"
@@ -256,7 +345,7 @@
                    </RelativeLayout>
                </androidx.constraintlayout.widget.ConstraintLayout>
                <!--日期-->
                <androidx.constraintlayout.widget.ConstraintLayout
                    android:id="@+id/home_page_station_data_cl"
                    android:layout_width="match_parent"
@@ -454,14 +543,21 @@
                    </RelativeLayout>
                    <com.github.AAChartModel.AAChartCore.AAChartCreator.AAChartView
                        android:id="@+id/AAChartView"
                    <FrameLayout
                        android:layout_width="0dp"
                        android:layout_height="284dp"
                        android:layout_marginTop="@dimen/dp_18"
                        app:layout_constraintEnd_toEndOf="parent"
                        app:layout_constraintStart_toStartOf="parent"
                        app:layout_constraintTop_toBottomOf="@+id/chart_title_rl" />
                        app:layout_constraintTop_toBottomOf="@+id/chart_title_rl">
                        <com.hdl.photovoltaic.ui.home.AutoSizeMyAAChart
                            android:id="@+id/autoSizeMyAAChart"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"
                            />
                    </FrameLayout>
                </androidx.constraintlayout.widget.ConstraintLayout>
                <androidx.constraintlayout.widget.ConstraintLayout