From e9aa93f381afcf9f9cf0c39f2b9e32375ed49528 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 30 十月 2025 17:39:43 +0800
Subject: [PATCH] 2025.10.30 1. 新增巡查场景历史详情相关数据逻辑(待完成);

---
 app/src/main/res/layout/fragment_inspection_content.xml |  648 +++++++++++++++++++++++++++++++---------------------------
 1 files changed, 351 insertions(+), 297 deletions(-)

diff --git a/app/src/main/res/layout/fragment_inspection_content.xml b/app/src/main/res/layout/fragment_inspection_content.xml
index d57665b..b795437 100644
--- a/app/src/main/res/layout/fragment_inspection_content.xml
+++ b/app/src/main/res/layout/fragment_inspection_content.xml
@@ -12,7 +12,351 @@
         android:layout_height="match_parent"
         android:layout_alignParentStart="true"
         android:layout_alignParentTop="true"
-        android:layout_marginBottom="20dp"></com.amap.api.maps.MapView>
+        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: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: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:visibility="gone"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_alignParentEnd="true"
+        android:layout_alignParentBottom="true"
+        android:layout_marginBottom="230dp"
+        android:background="@drawable/shape_yellow"
+        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="@string/scene_status"
+        android:textColor="@color/white"
+        tools:ignore="UnusedAttribute" />
+
+    <TextView
+        android:id="@+id/scene_detail"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_alignParentEnd="true"
+        android:layout_alignParentBottom="true"
+        android:layout_marginBottom="230dp"
+        android:background="@drawable/shape_yellow"
+        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="鐐逛綅鎯呭喌"
+        android:textColor="@color/white"
+        tools:ignore="UnusedAttribute" />
 
     <TextView
         android:id="@+id/user_account"
@@ -20,16 +364,16 @@
         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: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
@@ -93,295 +437,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