From 0f58aa8ea118c3bd0b28396febc58fdbd94eef75 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 27 十月 2025 17:33:33 +0800
Subject: [PATCH] 2025.10.27 1. 新增巡查场景历史详情界面(待完成)
---
app/src/main/res/layout/fragment_inspection_content.xml | 336 ++++++++++++++++++++++++++++++++-----------------------
1 files changed, 196 insertions(+), 140 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..f768e0a 100644
--- a/app/src/main/res/layout/fragment_inspection_content.xml
+++ b/app/src/main/res/layout/fragment_inspection_content.xml
@@ -6,14 +6,50 @@
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" />
+
+ <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"
@@ -21,16 +57,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
@@ -185,203 +221,223 @@
</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">
+ 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="vertical"
- android:layout_marginLeft="16dp">
- <LinearLayout
- android:layout_width="match_parent"
+ android:orientation="horizontal">
+
+ <TextView
+ android:id="@+id/textView3"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:orientation="horizontal">
+ android:text="@string/task_name2" />
- <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>
-
+ <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_marginTop="16dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_marginTop="16dp"
android:orientation="horizontal">
+
<TextView
- android:layout_marginLeft="16dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="@string/scense_name"
- />
+ 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_marginLeft="16dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="@string/scense_type"
- />
+ android:layout_marginLeft="16dp"
+ 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" />
+ android:singleLine="true" />
</LinearLayout>
<LinearLayout
- android:layout_marginTop="4dp"
- 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: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锛�"/>
+ 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=""/>
+ 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:textColor="@color/colorPrimary"
android:background="@drawable/contactcompany"
- android:text=""/>
+ android:text=""
+ android:textColor="@color/colorPrimary" />
</LinearLayout>
+
<LinearLayout
- android:visibility="gone"
- android:layout_marginLeft="16dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:orientation="horizontal">
+ android:layout_marginLeft="16dp"
+ android:orientation="horizontal"
+ android:visibility="gone">
+
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="鑱旂郴浜� 2锛�"/>
+ 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=""/>
+ 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:layout_height="wrap_content"
- android:textColor="@color/colorPrimary"
- android:text="鎵撶數璇�"/>
+ android:text="鎵撶數璇�"
+ android:textColor="@color/colorPrimary" />
</LinearLayout>
- </LinearLayout>
+ </LinearLayout>
--
Gitblit v1.9.3