mac
2024-05-14 f7c38847b8e00c84c30e51a92c03071d3e9a9da8
app/src/main/res/layout/fragment_home_page.xml
@@ -53,45 +53,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"