From 2fb397e4a31d14880ed2524f898ae67a0d664c06 Mon Sep 17 00:00:00 2001
From: zuoxiao <470321431@qq.com>
Date: 星期二, 17 十二月 2024 11:24:29 +0800
Subject: [PATCH] 1.在地图中心显示中心点。 2.优化地图覆盖物显示,使显示的图标正对坐标。 3.优化地图覆盖物文字居中显示。

---
 app/src/main/res/layout/item_issue.xml |  282 ++++++++++++++++++++++++--------------------------------
 1 files changed, 121 insertions(+), 161 deletions(-)

diff --git a/app/src/main/res/layout/item_issue.xml b/app/src/main/res/layout/item_issue.xml
index b76fccc..3bfda52 100644
--- a/app/src/main/res/layout/item_issue.xml
+++ b/app/src/main/res/layout/item_issue.xml
@@ -31,6 +31,7 @@
                 android:layout_width="20dp"
                 android:layout_height="20dp"
                 android:layout_centerVertical="true"
+                android:layout_marginLeft="3dp"
                 android:layout_marginRight="10dp"
                 android:src="@drawable/ic_issue" />
 
@@ -72,80 +73,25 @@
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:layout_marginTop="5dp"
-            android:orientation="horizontal">
+            android:layout_weight="1">
 
-
-        </LinearLayout>
-
-        <LinearLayout
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-
-            android:orientation="horizontal">
-
-            <LinearLayout
-                android:layout_width="0dp"
+            <TextView
+                android:id="@+id/daiShenPiTag"
+                android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:layout_weight="1">
+                android:text="涓婃姤鍐呭锛�"
+                android:textColor="@color/manage_item_text"
+                android:textSize="@dimen/manage_item_text_size" />
 
-                <TextView
-                    android:id="@+id/daiShenPiTag"
-                    android:layout_width="wrap_content"
-                    android:layout_height="wrap_content"
-                    android:text="涓婃姤鍐呭锛�"
-                    android:textColor="@color/manage_item_text"
-                    android:textSize="@dimen/manage_item_text_size" />
-
-                <TextView
-                    android:id="@+id/daiShenPi"
-                    android:layout_width="wrap_content"
-                    android:layout_height="wrap_content"
-                    android:ellipsize="end"
-                    android:maxLines="1"
-                    android:text="@{data.content}"
-                    android:textColor="@color/manage_item_text"
-                    android:textSize="@dimen/manage_item_text_size" />
-            </LinearLayout>
-
-
-        </LinearLayout>
-
-        <LinearLayout
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:layout_marginTop="5dp"
-            android:gravity="center_vertical"
-            android:orientation="horizontal">
-
-            <LinearLayout
-                android:layout_width="0dp"
+            <TextView
+                android:id="@+id/daiShenPi"
+                android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:layout_weight="1"
-                android:gravity="center_vertical"
-                android:orientation="horizontal"
-                android:paddingRight="5dp">
-
-                <TextView
-
-                    android:layout_width="wrap_content"
-                    android:layout_height="wrap_content"
-                    android:text="涓婃姤鏃堕棿锛�"
-                    android:textColor="@color/manage_item_text"
-                    android:textSize="@dimen/manage_item_text_size" />
-
-                <TextView
-                    android:id="@+id/xiangMuJianCheng"
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:ellipsize="end"
-                    android:maxLines="1"
-                    android:text="@{data.reportTime}"
-                    android:textColor="@color/manage_item_text"
-                    android:textSize="@dimen/manage_item_text_size" />
-            </LinearLayout>
-
-
+                android:ellipsize="end"
+                android:maxLines="1"
+                android:text="@{data.content}"
+                android:textColor="@color/manage_item_text"
+                android:textSize="@dimen/manage_item_text_size" />
         </LinearLayout>
 
 
@@ -154,113 +100,127 @@
             android:layout_height="wrap_content"
             android:layout_marginTop="5dp"
             android:gravity="center_vertical"
-            android:orientation="horizontal">
+            android:orientation="horizontal"
+            android:paddingRight="5dp">
 
-            <LinearLayout
-                android:id="@+id/replyContentLL"
-                android:layout_width="0dp"
+            <TextView
+
+                android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:layout_weight="1"
-                android:gravity="center_vertical"
-                android:orientation="horizontal"
-                android:paddingRight="5dp">
+                android:text="涓婃姤鏃堕棿锛�"
+                android:textColor="@color/manage_item_text"
+                android:textSize="@dimen/manage_item_text_size" />
 
-                <TextView
-                    android:layout_width="wrap_content"
-                    android:layout_height="match_parent"
-                    android:text="鍥炲鍐呭锛�"
-                    android:textColor="@color/manage_item_text"
-                    android:textSize="@dimen/manage_item_text_size" />
-
-                <TextView
-                    android:id="@+id/replyContent"
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:ellipsize="end"
-                    android:maxLines="1"
-
-                    android:text="@{data.replyContent}"
-                    android:textColor="@color/manage_item_text"
-                    android:textSize="@dimen/manage_item_text_size" />
-            </LinearLayout>
-
-
+            <TextView
+                android:id="@+id/xiangMuJianCheng"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:ellipsize="end"
+                android:maxLines="1"
+                android:text="@{data.reportTime}"
+                android:textColor="@color/manage_item_text"
+                android:textSize="@dimen/manage_item_text_size" />
         </LinearLayout>
+
 
         <LinearLayout
+            android:id="@+id/replyContentLL"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:gravity="center_horizontal"
+            android:layout_marginTop="5dp"
+            android:layout_weight="1"
+            android:gravity="center_vertical"
+            android:orientation="horizontal"
+            android:paddingRight="5dp">
+
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="match_parent"
+                android:text="鍥炲鍐呭锛�"
+                android:textColor="@color/manage_item_text"
+                android:textSize="@dimen/manage_item_text_size" />
+
+            <TextView
+                android:id="@+id/replyContent"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:ellipsize="end"
+                android:maxLines="1"
+
+                android:text="@{data.replyContent}"
+                android:textColor="@color/manage_item_text"
+                android:textSize="@dimen/manage_item_text_size" />
+        </LinearLayout>
+
+
+        <LinearLayout
+            android:id="@+id/replyTimeLL"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginTop="5dp"
+            android:layout_weight="2"
+            android:gravity="center_vertical"
             android:orientation="horizontal">
 
-            <LinearLayout
-                android:id="@+id/replyTimeLL"
-                android:layout_width="0dp"
+            <TextView
+                android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:layout_marginTop="5dp"
-                android:layout_weight="2"
                 android:gravity="center_vertical"
-                android:orientation="horizontal">
+                android:text="鍥炲鏃堕棿锛�"
+                android:textColor="@color/manage_item_text"
+                android:textSize="@dimen/manage_item_text_size" />
 
-                <TextView
-                    android:layout_width="wrap_content"
-                    android:layout_height="wrap_content"
-                    android:gravity="center_vertical"
-                    android:text="鍥炲鏃堕棿锛�"
-                    android:textColor="@color/manage_item_text"
-                    android:textSize="@dimen/manage_item_text_size" />
-
-                <TextView
-                    android:id="@+id/replyTime"
-                    android:layout_width="wrap_content"
-                    android:layout_height="wrap_content"
-                    android:text="@{data.replyTime}"
-                    android:textColor="@color/manage_item_text"
-                    android:textSize="@dimen/manage_item_text_size" />
-
-            </LinearLayout>
-
-
-            <LinearLayout
-                android:layout_width="0dp"
+            <TextView
+                android:id="@+id/replyTime"
+                android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:layout_marginLeft="10dp"
-                android:layout_marginTop="5dp"
-                android:layout_marginRight="10dp"
-                android:layout_weight="1"
-                android:orientation="horizontal"
-                android:visibility="gone">
+                android:text="@{data.replyTime}"
+                android:textColor="@color/manage_item_text"
+                android:textSize="@dimen/manage_item_text_size" />
 
-
-                <TextView
-                    android:id="@+id/lookDetail"
-                    android:layout_width="0dp"
-                    android:layout_height="@dimen/manage_item_btn_height"
-                    android:layout_weight="1"
-                    android:background="@drawable/ic_blue_background"
-                    android:gravity="center"
-
-                    android:text="鏌ョ湅"
-                    android:textColor="@color/white"
-                    android:textSize="@dimen/manage_item_btn_text_size" />
-
-
-                <TextView
-                    android:id="@+id/examineBtn"
-                    android:layout_width="0dp"
-                    android:layout_height="@dimen/manage_item_btn_height"
-                    android:layout_marginLeft="15dp"
-                    android:layout_weight="1"
-                    android:background="@drawable/ic_blue_background"
-                    android:gravity="center"
-
-                    android:text="瀹℃壒"
-                    android:textColor="@color/white"
-                    android:textSize="@dimen/manage_item_btn_text_size" />
-
-
-            </LinearLayout>
         </LinearLayout>
 
+
+        <LinearLayout
+            android:layout_width="0dp"
+            android:layout_height="wrap_content"
+            android:layout_marginLeft="10dp"
+            android:layout_marginTop="5dp"
+            android:layout_marginRight="10dp"
+            android:layout_weight="1"
+            android:orientation="horizontal"
+            android:visibility="gone">
+
+
+            <TextView
+                android:id="@+id/lookDetail"
+                android:layout_width="0dp"
+                android:layout_height="@dimen/manage_item_btn_height"
+                android:layout_weight="1"
+                android:background="@drawable/ic_blue_background"
+                android:gravity="center"
+
+                android:text="鏌ョ湅"
+                android:textColor="@color/white"
+                android:textSize="@dimen/manage_item_btn_text_size" />
+
+
+            <TextView
+                android:id="@+id/examineBtn"
+                android:layout_width="0dp"
+                android:layout_height="@dimen/manage_item_btn_height"
+                android:layout_marginLeft="15dp"
+                android:layout_weight="1"
+                android:background="@drawable/ic_blue_background"
+                android:gravity="center"
+
+                android:text="瀹℃壒"
+                android:textColor="@color/white"
+                android:textSize="@dimen/manage_item_btn_text_size" />
+
+
+        </LinearLayout>
+
+
     </LinearLayout>
 </layout>
\ No newline at end of file

--
Gitblit v1.8.0