From e234a15b428267997c903a4ed42536c5d9f14a1f Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 10 十一月 2025 13:10:42 +0800
Subject: [PATCH] 2025.11.10 1. 新增巡查场景历史详情相关数据逻辑; 2. 新增工地施工阶段修改界面;

---
 app/src/main/res/layout/fragment_inspection_content.xml |  666 ++++++++++++++++++++++++++++++-------------------------
 1 files changed, 362 insertions(+), 304 deletions(-)

diff --git a/app/src/main/res/layout/fragment_inspection_content.xml b/app/src/main/res/layout/fragment_inspection_content.xml
index ee651bf..ed77ea9 100644
--- a/app/src/main/res/layout/fragment_inspection_content.xml
+++ b/app/src/main/res/layout/fragment_inspection_content.xml
@@ -6,14 +6,361 @@
     android:id="@+id/rl_content"
     android:layout_height="match_parent">
 
-     <com.amap.api.maps.MapView
-         android:id="@+id/mv_main"
-         android:layout_width="match_parent"
-         android:layout_height="match_parent"
-         android:layout_marginBottom="20dp"
-         android:layout_alignParentTop="true"
-         android:layout_alignParentStart="true">
-     </com.amap.api.maps.MapView>
+    <com.amap.api.maps.MapView
+        android:id="@+id/mv_main"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:layout_alignParentStart="true"
+        android:layout_alignParentTop="true"
+        android:layout_marginBottom="20dp" />
+
+    <RelativeLayout
+        android:visibility="visible"
+        android:elevation="1dp"
+        android:id="@+id/ln_patrol_subtask_detail"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:background="@color/colorPrimary"
+        android:layout_alignParentTop="true"
+        android:layout_alignParentStart="true">
+
+        <LinearLayout
+            android:id="@+id/ll_show_hide_detail"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:background="?android:attr/selectableItemBackground"
+            android:clickable="true"
+            android:gravity="center"
+            android:orientation="vertical"
+            android:paddingTop="8dp"
+            android:paddingBottom="7dp">
+
+            <TextView
+                android:id="@+id/tv_subtask_name_bar"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_marginLeft="50dp"
+                android:layout_marginRight="50dp"
+                android:gravity="center"
+                android:singleLine="true"
+                android:text="浠诲姟鍚嶇О"
+                android:textColor="@color/white"
+                android:textSize="16sp" />
+
+            <LinearLayout
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_marginLeft="50dp"
+                android:layout_marginTop="-1dp"
+                android:layout_marginRight="50dp"
+                android:gravity="center_vertical"
+                android:orientation="horizontal">
+
+                <TextView
+                    android:id="@+id/tv_subtask_status_bar"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:singleLine="true"
+                    android:text="浠诲姟鐘舵��"
+                    android:textColor="@color/white"
+                    android:textSize="13dp" />
+
+                <ImageView
+                    android:id="@+id/iv_patrol_show_site_detail"
+                    android:layout_width="14dp"
+                    android:layout_height="13dp"
+                    android:layout_marginLeft="2dp"
+                    android:layout_marginTop="1dp"
+                    android:alpha="0.9"
+                    android:scaleType="fitXY"
+                    android:src="@drawable/selector_show_hide_white" />
+            </LinearLayout>
+
+
+        </LinearLayout>
+
+        <ImageView
+            android:id="@+id/iv_patrol_back"
+            android:layout_width="45dp"
+            android:paddingLeft="18dp"
+            android:paddingTop="9dp"
+            android:paddingRight="9dp"
+            android:paddingBottom="9dp"
+            android:clickable="true"
+            android:layout_height="36dp"
+            android:layout_centerVertical="true"
+            android:scaleType="fitXY"
+            android:src="@drawable/icon_back_white"/>
+        <ImageView
+            android:alpha="0.9"
+            android:layout_width="50dp"
+            android:layout_height="40dp"
+            android:paddingRight="16dp"
+            android:paddingTop="6dp"
+            android:paddingBottom="6dp"
+            android:paddingLeft="6dp"
+            android:layout_centerVertical="true"
+            android:src="@drawable/selector_start_end_task"
+            android:layout_alignParentRight="true"
+            android:id="@+id/iv_start_end_task" />
+    </RelativeLayout>
+
+    <LinearLayout
+        android:id="@+id/ll_patrol_task_detail"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_below="@+id/ln_patrol_subtask_detail"
+        android:layout_alignParentStart="true"
+        android:background="@drawable/shap_stroke_bottom"
+        android:orientation="vertical"
+        android:paddingTop="12dp"
+        android:paddingBottom="14dp">
+
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginLeft="16dp"
+            android:orientation="vertical">
+
+            <LinearLayout
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:orientation="horizontal">
+
+                <TextView
+                    android:id="@+id/textView3"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:text="@string/task_name2" />
+
+                <TextView
+                    android:id="@+id/tv_subtask_name"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content" />
+            </LinearLayout>
+
+            <LinearLayout
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:orientation="horizontal">
+
+                <TextView
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:text="@string/task_type2" />
+
+                <TextView
+                    android:id="@+id/tv_subtask_type"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:singleLine="true" />
+            </LinearLayout>
+
+            <LinearLayout
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:orientation="horizontal">
+
+                <TextView
+                    android:id="@+id/textView"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:text="@string/task_plan_time" />
+
+                <TextView
+                    android:id="@+id/tv_subtask_plan_time"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:singleLine="true" />
+            </LinearLayout>
+
+            <LinearLayout
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:orientation="horizontal">
+
+                <TextView
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:text="@string/task_execute_time" />
+
+                <TextView
+                    android:id="@+id/tv_subtask_execute_time"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:singleLine="true" />
+            </LinearLayout>
+
+            <LinearLayout
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:orientation="horizontal">
+
+                <TextView
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:text="@string/task_executors" />
+
+                <TextView
+                    android:id="@+id/tv_subtask_executors"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:singleLine="true" />
+            </LinearLayout>
+
+        </LinearLayout>
+
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginTop="16dp"
+            android:orientation="horizontal">
+
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_marginLeft="16dp"
+                android:text="@string/scense_name" />
+
+            <TextView
+                android:id="@+id/tv_scense_name"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content" />
+        </LinearLayout>
+
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:orientation="horizontal">
+
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_marginLeft="16dp"
+                android:text="@string/scense_type" />
+
+            <TextView
+                android:id="@+id/tv_scense_type"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:singleLine="true" />
+        </LinearLayout>
+
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:orientation="horizontal">
+
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_marginLeft="16dp"
+                android:text="@string/scense_address" />
+
+            <TextView
+                android:id="@+id/tv_scense_address"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:singleLine="true" />
+        </LinearLayout>
+
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginLeft="16dp"
+            android:layout_marginTop="4dp"
+            android:gravity="center_vertical"
+            android:orientation="horizontal">
+
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:text="鑱旂郴浜�  1锛�" />
+
+            <TextView
+                android:id="@+id/tv_scense_contact1"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_weight="1"
+                android:text="" />
+
+            <TextView
+                android:id="@+id/tv_call_contact1"
+                android:layout_width="30dp"
+                android:layout_height="30dp"
+                android:layout_marginRight="16dp"
+                android:background="@drawable/contactcompany"
+                android:text=""
+                android:textColor="@color/colorPrimary" />
+        </LinearLayout>
+
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginLeft="16dp"
+            android:orientation="horizontal"
+            android:visibility="visible">
+
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:text="鑱旂郴浜�  2锛�" />
+
+            <TextView
+                android:id="@+id/tv_scense_contact2"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_weight="1"
+                android:text="" />
+
+            <TextView
+                android:id="@+id/tv_call_contact2"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:paddingLeft="9dp"
+                android:paddingRight="25dp"
+                android:text="鎵撶數璇�"
+                android:textColor="@color/colorPrimary" />
+        </LinearLayout>
+    </LinearLayout>
+
+    <TextView
+        android:id="@+id/scene_status"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_alignParentEnd="true"
+        android:layout_alignParentBottom="true"
+        android:layout_marginBottom="246dp"
+        android:background="@drawable/shape_yellow"
+        android:backgroundTint="@color/main_color_3"
+        android:drawableStart="@drawable/ic_info_black_24dp"
+        android:drawableTint="@color/white"
+        android:elevation="@dimen/dimen4"
+        android:foreground="?android:attr/selectableItemBackground"
+        android:gravity="center"
+        android:padding="@dimen/dimen4"
+        android:text="@string/scene_status"
+        android:textColor="@color/white"
+        android:visibility="visible"
+        tools:ignore="UnusedAttribute" />
+
+    <TextView
+        android:id="@+id/scene_detail"
+        android:layout_width="32dp"
+        android:layout_height="36dp"
+        android:layout_alignParentStart="true"
+        android:layout_alignParentBottom="true"
+        android:layout_marginBottom="188dp"
+        android:background="@drawable/shape_yellow"
+        android:drawableTint="@color/white"
+        android:elevation="@dimen/dimen4"
+        android:foreground="?android:attr/selectableItemBackground"
+        android:gravity="center"
+        android:padding="@dimen/dimen4"
+        android:text="!"
+        android:textStyle="bold"
+        android:textColor="@color/white"
+        tools:ignore="UnusedAttribute" />
 
     <TextView
         android:id="@+id/user_account"
@@ -21,16 +368,17 @@
         android:layout_height="wrap_content"
         android:layout_alignParentEnd="true"
         android:layout_alignParentBottom="true"
-        android:text="鐢ㄦ埛璐﹀彿"
-        android:elevation="@dimen/dimen4"
         android:layout_marginBottom="188dp"
-        android:padding="@dimen/dimen4"
-        android:gravity="center"
-        android:textColor="@color/white"
         android:background="@drawable/shape_green"
-        android:foreground="?android:attr/selectableItemBackground"
+        android:backgroundTint="@color/lightGreen"
         android:drawableStart="@drawable/ic_group_black_24dp"
         android:drawableTint="@color/white"
+        android:elevation="@dimen/dimen4"
+        android:foreground="?android:attr/selectableItemBackground"
+        android:gravity="center"
+        android:padding="@dimen/dimen4"
+        android:text="鐢ㄦ埛璐﹀彿"
+        android:textColor="@color/white"
         tools:ignore="UnusedAttribute" />
 
     <LinearLayout
@@ -94,295 +442,5 @@
             android:scaleType="fitXY"
             android:layout_gravity="center"/>
     </LinearLayout>
-
-    <RelativeLayout
-        android:visibility="visible"
-        android:elevation="1dp"
-        android:id="@+id/ln_patrol_subtask_detail"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:background="@color/colorPrimary"
-
-        android:layout_alignParentTop="true"
-        android:layout_alignParentStart="true">
-
-        <LinearLayout
-            android:id="@+id/ll_show_hide_detail"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:orientation="vertical"
-            android:paddingTop="8dp"
-            android:paddingBottom="7dp"
-            android:clickable="true"
-            android:background="?android:attr/selectableItemBackground"
-            android:gravity="center">
-            <TextView
-                android:layout_marginLeft="50dp"
-                android:layout_marginRight="50dp"
-                android:id="@+id/tv_subtask_name_bar"
-                android:layout_width="wrap_content"
-                android:textColor="@color/white"
-                android:gravity="center"
-                android:singleLine="true"
-                android:layout_height="wrap_content"
-                android:textSize="16sp"
-                android:text="浠诲姟鍚嶇О"/>
-
-            <LinearLayout
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:orientation="horizontal"
-                android:layout_marginTop="-1dp"
-                android:layout_marginLeft="50dp"
-                android:gravity="center_vertical"
-                android:layout_marginRight="50dp">
-                <TextView
-                    android:id="@+id/tv_subtask_status_bar"
-                    android:layout_width="wrap_content"
-                    android:layout_height="wrap_content"
-                    android:singleLine="true"
-                    android:textSize="13dp"
-                    android:text="浠诲姟鐘舵��"
-                    android:textColor="@color/white"/>
-                <ImageView
-                    android:alpha="0.9"
-                    android:layout_marginLeft="2dp"
-                    android:layout_marginTop="1dp"
-                    android:id="@+id/iv_patrol_show_site_detail"
-                    android:src="@drawable/selector_show_hide_white"
-                    android:layout_width="14dp"
-                    android:layout_height="13dp"
-                    android:scaleType="fitXY" />
-            </LinearLayout>
-
-
-        </LinearLayout>
-
-        <ImageView
-            android:id="@+id/iv_patrol_back"
-            android:layout_width="45dp"
-           android:paddingLeft="18dp"
-            android:paddingTop="9dp"
-            android:paddingRight="9dp"
-            android:paddingBottom="9dp"
-            android:clickable="true"
-            android:layout_height="36dp"
-            android:layout_centerVertical="true"
-            android:scaleType="fitXY"
-            android:src="@drawable/icon_back_white"/>
-        <ImageView
-            android:alpha="0.9"
-            android:layout_width="50dp"
-            android:layout_height="40dp"
-            android:paddingRight="16dp"
-            android:paddingTop="6dp"
-            android:paddingBottom="6dp"
-            android:paddingLeft="6dp"
-            android:layout_centerVertical="true"
-            android:src="@drawable/selector_start_end_task"
-            android:layout_alignParentRight="true"
-            android:id="@+id/iv_start_end_task" />
-    </RelativeLayout>
-
-    <LinearLayout
-        android:paddingTop="12dp"
-        android:paddingBottom="14dp"
-        android:id="@+id/ll_patrol_task_detail"
-        android:background="@drawable/shap_stroke_bottom"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:orientation="vertical"
-        android:layout_below="@+id/ln_patrol_subtask_detail"
-        android:layout_alignParentStart="true">
-
-            <LinearLayout
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:orientation="vertical"
-                android:layout_marginLeft="16dp">
-                <LinearLayout
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:orientation="horizontal">
-
-                    <TextView
-                        android:id="@+id/textView3"
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:text="@string/task_name2" />
-
-                    <TextView
-                        android:id="@+id/tv_subtask_name"
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content" />
-                </LinearLayout>
-
-                <LinearLayout
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:orientation="horizontal">
-
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:text="@string/task_type2" />
-
-                    <TextView
-                        android:id="@+id/tv_subtask_type"
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:singleLine="true" />
-                </LinearLayout>
-
-                <LinearLayout
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:orientation="horizontal">
-
-                    <TextView
-                        android:id="@+id/textView"
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:text="@string/task_plan_time" />
-
-                    <TextView
-                        android:id="@+id/tv_subtask_plan_time"
-                        android:layout_width="wrap_content"
-                        android:singleLine="true"
-                        android:layout_height="wrap_content" />
-                </LinearLayout>
-                <LinearLayout
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:orientation="horizontal">
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:text="@string/task_execute_time"/>
-                    <TextView
-                        android:id="@+id/tv_subtask_execute_time"
-                        android:layout_width="wrap_content"
-                        android:singleLine="true"
-                        android:layout_height="wrap_content" />
-                </LinearLayout>
-                <LinearLayout
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:orientation="horizontal">
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:text="@string/task_executors"/>
-                    <TextView
-                        android:id="@+id/tv_subtask_executors"
-                        android:layout_width="wrap_content"
-                        android:singleLine="true"
-                        android:layout_height="wrap_content" />
-                </LinearLayout>
-
-            </LinearLayout>
-        <LinearLayout
-            android:layout_marginTop="16dp"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:orientation="horizontal">
-            <TextView
-                android:layout_marginLeft="16dp"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:text="@string/scense_name"
-                />
-            <TextView
-                android:id="@+id/tv_scense_name"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content" />
-        </LinearLayout>
-        <LinearLayout
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:orientation="horizontal">
-            <TextView
-                android:layout_marginLeft="16dp"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:text="@string/scense_type"
-                />
-            <TextView
-                android:id="@+id/tv_scense_type"
-                android:layout_width="wrap_content"
-                android:singleLine="true"
-                android:layout_height="wrap_content" />
-        </LinearLayout>
-        <LinearLayout
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:orientation="horizontal">
-            <TextView
-                android:layout_marginLeft="16dp"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:text="@string/scense_address"
-                />
-            <TextView
-                android:id="@+id/tv_scense_address"
-                android:layout_width="wrap_content"
-                android:singleLine="true"
-                android:layout_height="wrap_content" />
-        </LinearLayout>
-
-        <LinearLayout
-            android:layout_marginTop="4dp"
-            android:layout_marginLeft="16dp"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:gravity="center_vertical"
-            android:orientation="horizontal">
-            <TextView
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:text="鑱旂郴浜�  1锛�"/>
-            <TextView
-                android:id="@+id/tv_scense_contact1"
-                android:layout_weight="1"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:text=""/>
-            <TextView
-                android:id="@+id/tv_call_contact1"
-                android:layout_width="30dp"
-                android:layout_height="30dp"
-                android:layout_marginRight="16dp"
-                android:textColor="@color/colorPrimary"
-                android:background="@drawable/contactcompany"
-                android:text=""/>
-        </LinearLayout>
-        <LinearLayout
-            android:visibility="gone"
-            android:layout_marginLeft="16dp"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:orientation="horizontal">
-            <TextView
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:text="鑱旂郴浜�  2锛�"/>
-            <TextView
-                android:id="@+id/tv_scense_contact2"
-                android:layout_weight="1"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:text=""/>
-            <TextView
-                android:id="@+id/tv_call_contact2"
-                android:layout_width="wrap_content"
-                android:paddingLeft="9dp"
-                android:paddingRight="25dp"
-                android:layout_height="wrap_content"
-                android:textColor="@color/colorPrimary"
-                android:text="鎵撶數璇�"/>
-        </LinearLayout>
-        </LinearLayout>
-
-
 
 </RelativeLayout>
\ No newline at end of file

--
Gitblit v1.9.3