From d097db1e26632ff6a484c5e3c3eda91d9df2dabf Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期三, 15 五月 2024 15:33:21 +0800
Subject: [PATCH] Merge branch 'wxw_new' into lwj_new

---
 app/src/main/res/layout/fragment_home_page.xml |  178 +++++++++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 137 insertions(+), 41 deletions(-)

diff --git a/app/src/main/res/layout/fragment_home_page.xml b/app/src/main/res/layout/fragment_home_page.xml
index 97c4360..8436240 100644
--- a/app/src/main/res/layout/fragment_home_page.xml
+++ b/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

--
Gitblit v1.8.0