From 9c67fc611daf6f9cb7c05f72d598543bff2d26f1 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期五, 25 十月 2024 11:23:17 +0800 Subject: [PATCH] s2024年10月25日11:23:14 --- app/src/main/res/layout/fragment_house_list.xml | 69 +++++++++++++++++----------------- 1 files changed, 35 insertions(+), 34 deletions(-) diff --git a/app/src/main/res/layout/fragment_house_list.xml b/app/src/main/res/layout/fragment_house_list.xml index 2b677ed..053fc29 100644 --- a/app/src/main/res/layout/fragment_house_list.xml +++ b/app/src/main/res/layout/fragment_house_list.xml @@ -10,9 +10,9 @@ <RelativeLayout android:id="@+id/title_cl" android:layout_width="match_parent" - android:layout_height="@dimen/dp_31" + android:layout_height="@dimen/dp_44" android:layout_marginStart="@dimen/dp_16" - android:layout_marginTop="@dimen/dp_44" + android:layout_marginTop="@dimen/dp_38" android:layout_marginEnd="@dimen/dp_16" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -33,9 +33,8 @@ android:id="@+id/device_label" android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_marginStart="19dp" - android:layout_marginEnd="7dp" - android:layout_toStartOf="@+id/edit_iv" + android:layout_marginStart="17dp" + android:layout_marginEnd="-339dp" android:layout_toEndOf="@+id/power_station_label" android:gravity="start|center_vertical" android:text="@string/device" @@ -51,15 +50,14 @@ android:layout_marginEnd="@dimen/dp_13" android:layout_toStartOf="@+id/add_iv" android:src="@drawable/edit" - android:visibility="gone" - - /> + android:visibility="gone" /> <ImageView android:id="@+id/add_iv" android:layout_width="@dimen/dp_31" android:layout_height="@dimen/dp_31" android:layout_alignParentEnd="true" + android:layout_centerVertical="true" android:src="@drawable/add" /> @@ -78,8 +76,8 @@ <androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/power_station_label_top_cl" android:layout_width="match_parent" - android:layout_height="174dp" - android:layout_marginTop="@dimen/dp_21"> + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/dp_13"> <!--鎼滅储--> <RelativeLayout android:id="@+id/power_station_search_cl" @@ -171,7 +169,6 @@ android:layout_height="@dimen/dp_17" android:layout_marginStart="@dimen/dp_16" android:layout_marginTop="@dimen/dp_21" - android:layout_marginEnd="@dimen/dp_12" android:orientation="horizontal" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -179,10 +176,8 @@ <RelativeLayout android:id="@+id/station_name_rl" - android:layout_width="0dp" + android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_weight="1" - android:gravity="center" android:orientation="horizontal"> <TextView @@ -192,7 +187,8 @@ android:text="@string/station_name" android:textColor="@color/text_E6000000" android:textSize="@dimen/text_12" - android:textStyle="bold" /> + + /> <ImageView android:id="@+id/station_name_iv" @@ -200,15 +196,18 @@ android:layout_height="@dimen/dp_18" android:layout_toEndOf="@+id/station_name_tv" android:background="@drawable/ascending_descending_order_select" /> + + <View + android:layout_width="@dimen/dp_16" + android:layout_height="match_parent" + android:layout_toEndOf="@+id/station_name_iv" /> </RelativeLayout> <RelativeLayout android:id="@+id/station_power_rl" - android:layout_width="0dp" + android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_weight="1" - android:gravity="center" android:orientation="horizontal"> <TextView @@ -217,8 +216,7 @@ android:layout_height="@dimen/dp_17" android:text="@string/generated_power" android:textColor="@color/text_E6000000" - android:textSize="@dimen/text_12" - android:textStyle="bold" /> + android:textSize="@dimen/text_12" /> <ImageView android:id="@+id/station_power_iv" @@ -226,15 +224,18 @@ android:layout_height="@dimen/dp_18" android:layout_toEndOf="@+id/station_power_tv" android:background="@drawable/ascending_descending_order_select" /> + + <View + android:layout_width="@dimen/dp_16" + android:layout_height="match_parent" + android:layout_toEndOf="@+id/station_power_iv" /> </RelativeLayout> <RelativeLayout android:id="@+id/station_day_rl" - android:layout_width="0dp" + android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_weight="1" - android:gravity="center" android:orientation="horizontal"> <TextView @@ -243,8 +244,7 @@ android:layout_height="@dimen/dp_17" android:text="@string/day_power_generation" android:textColor="@color/text_E6000000" - android:textSize="@dimen/text_12" - android:textStyle="bold" /> + android:textSize="@dimen/text_12" /> <ImageView android:id="@+id/station_day_iv" @@ -252,15 +252,18 @@ android:layout_height="@dimen/dp_18" android:layout_toEndOf="@+id/station_day_tv" android:background="@drawable/ascending_descending_order_select" /> + + <View + android:layout_width="@dimen/dp_16" + android:layout_height="match_parent" + android:layout_toEndOf="@+id/station_day_iv" /> </RelativeLayout> <RelativeLayout android:id="@+id/station_month_rl" - android:layout_width="0dp" + android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_weight="1" - android:gravity="center" android:orientation="horizontal"> <TextView @@ -269,8 +272,7 @@ android:layout_height="@dimen/dp_17" android:text="@string/month_power_generation" android:textColor="@color/text_E6000000" - android:textSize="@dimen/text_12" - android:textStyle="bold" /> + android:textSize="@dimen/text_12" /> <ImageView android:id="@+id/station_month_iv" @@ -289,6 +291,7 @@ android:id="@+id/fragment_house_srl" android:layout_width="match_parent" android:layout_height="match_parent" + android:layout_marginTop="@dimen/dp_21" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -297,9 +300,7 @@ <androidx.recyclerview.widget.RecyclerView android:id="@+id/fragment_house_srl_list_rc" android:layout_width="match_parent" - android:layout_height="match_parent" - android:clipToPadding="false" - android:paddingBottom="@dimen/dp_16" /> + android:layout_height="match_parent" /> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> @@ -321,7 +322,7 @@ android:id="@+id/device_label_top_cl" android:layout_width="match_parent" android:layout_height="40dp" - android:layout_marginTop="@dimen/dp_21"> + android:layout_marginTop="@dimen/dp_13"> <!--鎼滅储--> <RelativeLayout android:id="@+id/device_search_cl" -- Gitblit v1.8.0