From f7c38847b8e00c84c30e51a92c03071d3e9a9da8 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期二, 14 五月 2024 09:08:57 +0800 Subject: [PATCH] 2024年05月14日09:08:49 --- app/src/main/res/layout/fragment_home_page.xml | 151 ++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 122 insertions(+), 29 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..998fe5f 100644 --- a/app/src/main/res/layout/fragment_home_page.xml +++ b/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" -- Gitblit v1.8.0