From 22847a3b254f44701392b16acb1417c46d1b0f78 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期四, 25 七月 2024 19:30:20 +0800
Subject: [PATCH] 2024年07月25日19:30:08

---
 app/src/main/res/layout/fragment_home_page.xml |   48 ++++++++++++++++++++++++++++--------------------
 1 files changed, 28 insertions(+), 20 deletions(-)

diff --git a/app/src/main/res/layout/fragment_home_page.xml b/app/src/main/res/layout/fragment_home_page.xml
index 8fd513f..f593ac9 100644
--- a/app/src/main/res/layout/fragment_home_page.xml
+++ b/app/src/main/res/layout/fragment_home_page.xml
@@ -6,27 +6,35 @@
     android:layout_height="match_parent"
     android:background="@drawable/bj"
     tools:context=".ui.home.HomePageFragment">
-
-    <TextView
-        android:id="@+id/home_page_title_tv"
-        style="@style/Text20Style"
-        android:layout_width="wrap_content"
-        android:layout_height="@dimen/dp_26"
+    <!--澶撮儴鏍囩-->
+    <RelativeLayout
+        android:id="@+id/title_cl"
+        android:layout_width="match_parent"
+        android:layout_height="@dimen/dp_44"
         android:layout_marginStart="@dimen/dp_16"
-        android:layout_marginTop="58dp"
-        android:text="@string/summarize"
-        app:layout_constraintStart_toStartOf="parent"
-        app:layout_constraintTop_toTopOf="parent" />
-
-    <ImageView
-        android:id="@+id/home_page_station_add_iv"
-        android:layout_width="@dimen/dp_31"
-        android:layout_height="@dimen/dp_31"
-        android:layout_marginTop="53dp"
-        android:layout_marginEnd="@dimen/dp_24"
-        android:src="@drawable/add"
+        android:layout_marginTop="@dimen/dp_44"
+        android:layout_marginEnd="@dimen/dp_16"
         app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintTop_toTopOf="parent" />
+        app:layout_constraintStart_toStartOf="parent"
+        app:layout_constraintTop_toTopOf="parent">
+
+
+        <TextView
+            android:id="@+id/home_page_title_tv"
+            style="@style/Text20Style"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_centerVertical="true"
+            android:text="@string/summarize" />
+
+        <ImageView
+            android:id="@+id/home_page_station_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" />
+    </RelativeLayout>
 
     <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
         android:id="@+id/srl"
@@ -36,7 +44,7 @@
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintStart_toStartOf="parent"
-        app:layout_constraintTop_toBottomOf="@+id/home_page_title_tv">
+        app:layout_constraintTop_toBottomOf="@+id/title_cl">
 
         <ScrollView
             android:id="@+id/sl"

--
Gitblit v1.8.0