From 936fb552a30c05fc7a60c20f47bf6fccbc2dc1c1 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期三, 27 十二月 2023 16:17:23 +0800 Subject: [PATCH] 备份一下代码 --- app/src/main/res/layout/fragment_house_list.xml | 30 +++++++++++++++++++++++------- 1 files changed, 23 insertions(+), 7 deletions(-) diff --git a/app/src/main/res/layout/fragment_house_list.xml b/app/src/main/res/layout/fragment_house_list.xml index 60365ea..cfeb8f6 100644 --- a/app/src/main/res/layout/fragment_house_list.xml +++ b/app/src/main/res/layout/fragment_house_list.xml @@ -2,22 +2,23 @@ <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/house_list_parent" android:layout_width="match_parent" android:layout_height="match_parent"> <include android:id="@+id/toolbar_top_fragment_house_list_rl" layout="@layout/toolbar_top_view_52" /> + <RelativeLayout android:id="@+id/fragment_house_list_head_rl" android:layout_width="match_parent" android:layout_height="@dimen/dp_64" android:background="@color/text_F9FAFB" + android:visibility="gone" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/toolbar_top_fragment_house_list_rl" - android:visibility="gone" - > + app:layout_constraintTop_toBottomOf="@+id/toolbar_top_fragment_house_list_rl"> <LinearLayout android:id="@+id/fragment_house_list_content_ll" @@ -39,7 +40,7 @@ android:id="@+id/fragment_house_list_content_title1_tv" android:layout_width="wrap_content" android:layout_height="@dimen/dp_20" - android:text="@string/my_power_station_鍙戠數鍔熺巼" + android:text="@string/power_station_generated_power" android:textColor="@color/text_90000000" android:textSize="@dimen/text_14" /> @@ -66,7 +67,7 @@ android:id="@+id/fragment_house_list_content_title2_tv" android:layout_width="wrap_content" android:layout_height="@dimen/dp_20" - android:text="@string/my_power_station_浠婃棩鍙戠數" + android:text="@string/power_station_Power_generation_today" android:textColor="@color/text_90000000" android:textSize="@dimen/text_14" /> @@ -93,7 +94,7 @@ android:id="@+id/fragment_house_list_content_title3_tv" android:layout_width="wrap_content" android:layout_height="@dimen/dp_20" - android:text="@string/my_power_station_鍒涘缓鏃堕棿" + android:text="@string/power_station_creation_time" android:textColor="@color/text_90000000" android:textSize="@dimen/text_14" /> @@ -124,9 +125,24 @@ <androidx.recyclerview.widget.RecyclerView android:id="@+id/fragment_house_srl_list_rc" android:layout_width="match_parent" - android:layout_height="match_parent" /> + android:layout_height="match_parent" + android:clipToPadding="false" + android:paddingBottom="@dimen/dp_16" /> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> + <TextView + android:id="@+id/null_list_tv" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="鏁版嵁涓虹┖,璧跺揩鍒涘缓涓�涓惂" + android:textColor="@color/text_90000000" + android:textSize="@dimen/text_14" + android:visibility="gone" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + </androidx.constraintlayout.widget.ConstraintLayout> -- Gitblit v1.8.0