From 4f7f99c6ea914bcd38de78bd8371be566026b905 Mon Sep 17 00:00:00 2001
From: zuoxiao <470321431@qq.com>
Date: 星期三, 26 二月 2025 15:54:14 +0800
Subject: [PATCH] -为按钮和列表项添加波纹效果,以获得更好的视觉反馈 -改进MapFragment中的底部布局动画 -在MapFragment中添加设备状态和RTU地址显示 -更新BaseListResult以支持泛型类型 -为设备数据添加IntakeListResult和IntakeResult -通过数据库支持增强标记位置更新功能 -添加电话拨号意图以分隔标记详细信息 -通过过期检查改进磁贴缓存 -添加问题报告的确认对话框 -更新登录活动以限制用户名长度 -为波纹效果和UI元素添加新颜色 -重构XML布局以使用新的波纹图 -改进MapFragment中的错误处理和用户反馈

---
 app/src/main/res/layout/item_issue.xml |  284 ++++++++++++++++++++++++--------------------------------
 1 files changed, 122 insertions(+), 162 deletions(-)

diff --git a/app/src/main/res/layout/item_issue.xml b/app/src/main/res/layout/item_issue.xml
index b76fccc..6e8b27d 100644
--- a/app/src/main/res/layout/item_issue.xml
+++ b/app/src/main/res/layout/item_issue.xml
@@ -15,7 +15,7 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_marginBottom="10dp"
-        android:background="@drawable/ic_choose_gray_edge"
+        android:background="@drawable/item_ripple"
         android:onClick="@{()->itemclidk.startDetail(data.issueReportId)}"
         android:orientation="vertical"
         android:padding="10dp">
@@ -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/item_name_text_color"
+                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/item_name_text_color"
+                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/item_name_text_color"
+                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/item_name_text_color"
+                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