|
@@ -1,7 +1,7 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- xmlns:tools="http://schemas.android.com/tools"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
android:background="@color/bg"
|
|
@@ -12,18 +12,18 @@
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:fitsSystemWindows="true"
|
|
|
android:background="@color/white"
|
|
|
+ android:fitsSystemWindows="true"
|
|
|
android:theme="@style/MyAppTheme.Light.AppBarOverlay">
|
|
|
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
|
android:id="@+id/toolbar_layout"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- app:titleEnabled="false"
|
|
|
android:fitsSystemWindows="true"
|
|
|
+ app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"
|
|
|
app:statusBarScrim="@android:color/transparent"
|
|
|
- app:layout_scrollFlags="scroll|exitUntilCollapsed|snap">
|
|
|
+ app:titleEnabled="false">
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
@@ -38,8 +38,8 @@
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:padding="6dp"
|
|
|
android:orientation="vertical"
|
|
|
+ android:padding="6dp"
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
@@ -60,6 +60,7 @@
|
|
|
android:padding="10dp">
|
|
|
|
|
|
<LinearLayout style="@style/ReportDetail.Section.LinearLayout">
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/ReportDetail.Header.Text"
|
|
|
android:text="位置信息" />
|
|
@@ -76,29 +77,29 @@
|
|
|
style="@style/ReportDetail.Header.Text"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:text="地址"
|
|
|
- android:textColor="@color/black"/>
|
|
|
+ android:textColor="@color/black" />
|
|
|
|
|
|
<Space
|
|
|
android:layout_width="0dp"
|
|
|
- android:layout_weight="1"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1" />
|
|
|
|
|
|
<LinearLayout
|
|
|
android:id="@+id/layout_select_addr"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:gravity="center_vertical"
|
|
|
android:foreground="?android:selectableItemBackground"
|
|
|
- android:stateListAnimator="@anim/anim_touch_raise" >
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:stateListAnimator="@anim/anim_touch_raise">
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/text_select_addr"
|
|
|
- android:text="指定地点"
|
|
|
- android:textSize="14sp"
|
|
|
- android:textColor="@color/black"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="5dp" />
|
|
|
+ android:layout_marginLeft="5dp"
|
|
|
+ android:text="指定地点"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="14sp" />
|
|
|
|
|
|
<ImageView
|
|
|
android:layout_width="18dp"
|
|
@@ -110,6 +111,7 @@
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content">
|
|
|
+
|
|
|
<ImageView
|
|
|
android:layout_width="18dp"
|
|
|
android:layout_height="18dp"
|
|
@@ -118,17 +120,18 @@
|
|
|
|
|
|
<EditText
|
|
|
android:id="@+id/edit_report_addr"
|
|
|
- android:hint="@string/trouble_report_addr_hint"
|
|
|
style="@style/DangerReport.Content.EditText"
|
|
|
- android:layout_height="wrap_content" />
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:hint="@string/trouble_report_addr_hint" />
|
|
|
</LinearLayout>
|
|
|
+
|
|
|
<View style="@style/ReportDetail.Line.Bottom" />
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
|
style="@style/ReportDetail.Info.LinearLayout"
|
|
|
- android:paddingLeft="6dp"
|
|
|
- android:layout_marginTop="0dp">
|
|
|
+ android:layout_marginTop="0dp"
|
|
|
+ android:paddingLeft="6dp">
|
|
|
|
|
|
<TextView
|
|
|
style="@style/ReportDetail.Info.Title"
|
|
@@ -137,20 +140,23 @@
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:gravity="center"
|
|
|
- android:background="@color/white">
|
|
|
+ android:background="@color/white"
|
|
|
+ android:gravity="center">
|
|
|
+
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
|
|
android:id="@+id/spinner_trouble_region"
|
|
|
style="@style/DangerReport.Content.Spinner"
|
|
|
- android:paddingLeft="0dp"
|
|
|
android:layout_height="26dp"
|
|
|
- android:prompt="@string/trouble_region_select_prompt_hint"/>
|
|
|
+ android:paddingLeft="0dp"
|
|
|
+ android:prompt="@string/trouble_region_select_prompt_hint" />
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
|
|
|
- <LinearLayout style="@style/ReportDetail.Section.LinearLayout"
|
|
|
+ <LinearLayout
|
|
|
+ style="@style/ReportDetail.Section.LinearLayout"
|
|
|
android:paddingTop="0dp">
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/ReportDetail.Header.Text"
|
|
|
android:text="数据信息" />
|
|
@@ -158,8 +164,8 @@
|
|
|
<LinearLayout
|
|
|
android:id="@+id/layout_trouble_name"
|
|
|
style="@style/ReportDetail.Info.LinearLayout"
|
|
|
- android:paddingLeft="6dp"
|
|
|
- android:gravity="bottom">
|
|
|
+ android:gravity="bottom"
|
|
|
+ android:paddingLeft="6dp">
|
|
|
|
|
|
<TextView
|
|
|
style="@style/ReportDetail.Info.Title"
|
|
@@ -169,9 +175,10 @@
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:orientation="vertical">
|
|
|
+
|
|
|
<EditText
|
|
|
android:id="@+id/edit_trouble_name"
|
|
|
- style="@style/PointRepair.Content.EditText"/>
|
|
|
+ style="@style/PointRepair.Content.EditText" />
|
|
|
|
|
|
<View style="@style/ReportDetail.Line.Bottom" />
|
|
|
</LinearLayout>
|
|
@@ -179,8 +186,8 @@
|
|
|
|
|
|
<LinearLayout
|
|
|
style="@style/ReportDetail.Info.LinearLayout"
|
|
|
- android:paddingLeft="6dp"
|
|
|
- android:gravity="center_vertical">
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingLeft="6dp">
|
|
|
|
|
|
<TextView
|
|
|
style="@style/ReportDetail.Info.Title"
|
|
@@ -189,21 +196,22 @@
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:gravity="center"
|
|
|
- android:background="@color/white">
|
|
|
+ android:background="@color/white"
|
|
|
+ android:gravity="center">
|
|
|
+
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
|
|
android:id="@+id/spinner_trouble_part"
|
|
|
style="@style/DangerReport.Content.Spinner"
|
|
|
- android:paddingLeft="0dp"
|
|
|
android:layout_height="26dp"
|
|
|
- android:prompt="@string/trouble_part_select_prompt_hint"/>
|
|
|
+ android:paddingLeft="0dp"
|
|
|
+ android:prompt="@string/trouble_part_select_prompt_hint" />
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
|
style="@style/ReportDetail.Info.LinearLayout"
|
|
|
- android:paddingLeft="6dp"
|
|
|
- android:gravity="center_vertical">
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingLeft="6dp">
|
|
|
|
|
|
<TextView
|
|
|
style="@style/ReportDetail.Info.Title"
|
|
@@ -212,14 +220,42 @@
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:gravity="center"
|
|
|
- android:background="@color/white">
|
|
|
+ android:background="@color/white"
|
|
|
+ android:gravity="center">
|
|
|
+
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
|
|
android:id="@+id/spinner_trouble_reason"
|
|
|
style="@style/DangerReport.Content.Spinner"
|
|
|
+ android:layout_height="26dp"
|
|
|
android:paddingLeft="0dp"
|
|
|
+ android:prompt="@string/trouble_type_select_prompt_hint" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:visibility="gone"
|
|
|
+ style="@style/ReportDetail.Info.LinearLayout"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingLeft="6dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ style="@style/ReportDetail.Info.Title"
|
|
|
+ android:text="隐患等级:" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:gravity="center">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatSpinner
|
|
|
+ android:id="@+id/spinner_trouble_level"
|
|
|
+ style="@style/DangerReport.Content.Spinner"
|
|
|
android:layout_height="26dp"
|
|
|
- android:prompt="@string/trouble_type_select_prompt_hint"/>
|
|
|
+ android:paddingLeft="0dp"
|
|
|
+ android:prompt="@string/trouble_type_select_prompt_hint_level" />
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
|
|
@@ -229,107 +265,114 @@
|
|
|
android:paddingBottom="0dp">
|
|
|
|
|
|
<TextView
|
|
|
- android:paddingLeft="6dp"
|
|
|
style="@style/ReportDetail.Header.Text"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:text="隐患原因备注:" />
|
|
|
+ android:paddingLeft="6dp"
|
|
|
+ android:text="隐患原因备注:"
|
|
|
+ android:textColor="@color/black" />
|
|
|
|
|
|
<EditText
|
|
|
android:id="@+id/edit_trouble_reason_note"
|
|
|
style="@style/DangerReport.Content.EditText"
|
|
|
android:layout_height="0dp"
|
|
|
android:layout_weight="1"
|
|
|
- android:hint="@string/trouble_report_empty_reason"/>
|
|
|
+ android:hint="@string/trouble_report_empty_reason" />
|
|
|
|
|
|
<View style="@style/ReportDetail.Line.Bottom" />
|
|
|
</LinearLayout>
|
|
|
|
|
|
- <LinearLayout style="@style/ReportDetail.Section.LinearLayout"
|
|
|
+ <LinearLayout
|
|
|
+ style="@style/ReportDetail.Section.LinearLayout"
|
|
|
android:paddingBottom="0dp">
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/ReportDetail.Header.Text"
|
|
|
android:paddingLeft="6dp"
|
|
|
android:text="消除隐患建议:"
|
|
|
- android:textColor="@color/black"/>
|
|
|
+ android:textColor="@color/black" />
|
|
|
|
|
|
<EditText
|
|
|
android:id="@+id/edit_report_suggest"
|
|
|
- android:hint="@string/trouble_report_empty_suggest"
|
|
|
style="@style/DangerReport.Content.EditText"
|
|
|
android:layout_height="0dp"
|
|
|
- android:layout_weight="1"/>
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:hint="@string/trouble_report_empty_suggest" />
|
|
|
+
|
|
|
<View style="@style/ReportDetail.Line.Bottom" />
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
|
|
|
- <LinearLayout style="@style/ReportDetail.Section.LinearLayout"
|
|
|
+ <LinearLayout
|
|
|
+ style="@style/ReportDetail.Section.LinearLayout"
|
|
|
android:paddingTop="0dp">
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/ReportDetail.Header.Text"
|
|
|
android:text="审核人员" />
|
|
|
|
|
|
- <LinearLayout
|
|
|
- style="@style/ReportDetail.Section.LinearLayout"
|
|
|
- android:visibility="visible">
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="10dp"
|
|
|
- android:gravity="center">
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="200dp"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginRight="5dp"
|
|
|
- android:layout_weight="1"
|
|
|
- android:background="@color/white"
|
|
|
- android:gravity="center"
|
|
|
- android:padding="2dp">
|
|
|
-
|
|
|
- <androidx.appcompat.widget.AppCompatSpinner
|
|
|
- android:id="@+id/spinner_depart"
|
|
|
- style="@style/DangerReport.Content.Spinner"
|
|
|
- android:layout_height="26dp"
|
|
|
- android:prompt="@string/depart_spinner_prompt" />
|
|
|
- </LinearLayout>
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="~"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textStyle="bold" />
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="200dp"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="5dp"
|
|
|
- android:layout_weight="1"
|
|
|
- android:background="@color/white"
|
|
|
- android:gravity="center"
|
|
|
- android:padding="2dp">
|
|
|
-
|
|
|
- <androidx.appcompat.widget.AppCompatSpinner
|
|
|
- android:id="@+id/spinner_user"
|
|
|
- style="@style/DangerReport.Content.Spinner"
|
|
|
- android:layout_height="26dp"
|
|
|
- android:prompt="@string/user_spinner_prompt" />
|
|
|
- </LinearLayout>
|
|
|
- </LinearLayout>
|
|
|
- </LinearLayout>
|
|
|
- </LinearLayout>
|
|
|
-
|
|
|
- <LinearLayout style="@style/ReportDetail.Section.LinearLayout"
|
|
|
+ <LinearLayout
|
|
|
+ style="@style/ReportDetail.Section.LinearLayout"
|
|
|
+ android:visibility="visible">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:gravity="center">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="200dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginRight="5dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="2dp">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatSpinner
|
|
|
+ android:id="@+id/spinner_depart"
|
|
|
+ style="@style/DangerReport.Content.Spinner"
|
|
|
+ android:layout_height="26dp"
|
|
|
+ android:prompt="@string/depart_spinner_prompt" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="~"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textStyle="bold" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="200dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="5dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="2dp">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatSpinner
|
|
|
+ android:id="@+id/spinner_user"
|
|
|
+ style="@style/DangerReport.Content.Spinner"
|
|
|
+ android:layout_height="26dp"
|
|
|
+ android:prompt="@string/user_spinner_prompt" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ style="@style/ReportDetail.Section.LinearLayout"
|
|
|
android:paddingTop="0dp">
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/ReportDetail.Header.Text"
|
|
|
android:text="施工信息" />
|
|
|
|
|
|
<LinearLayout
|
|
|
style="@style/ReportDetail.Info.LinearLayout"
|
|
|
- android:paddingLeft="6dp"
|
|
|
- android:gravity="center">
|
|
|
+ android:gravity="center"
|
|
|
+ android:paddingLeft="6dp">
|
|
|
|
|
|
<TextView
|
|
|
style="@style/ReportDetail.Info.Title"
|
|
@@ -357,18 +400,18 @@
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="10dp"
|
|
|
- android:text="否"
|
|
|
- android:checked="true"/>
|
|
|
+ android:checked="true"
|
|
|
+ android:text="否" />
|
|
|
</RadioGroup>
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
|
- android:visibility="gone"
|
|
|
android:id="@+id/layout_select_build"
|
|
|
style="@style/ReportDetail.Info.LinearLayout"
|
|
|
+ android:gravity="center_vertical"
|
|
|
android:paddingLeft="6dp"
|
|
|
- android:gravity="center_vertical">
|
|
|
+ android:visibility="gone">
|
|
|
|
|
|
<TextView
|
|
|
style="@style/ReportDetail.Info.Title"
|
|
@@ -377,32 +420,35 @@
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:gravity="center"
|
|
|
- android:background="@color/white">
|
|
|
+ android:background="@color/white"
|
|
|
+ android:gravity="center">
|
|
|
+
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
|
|
android:id="@+id/spinner_build"
|
|
|
style="@style/DangerReport.Content.Spinner"
|
|
|
- android:paddingLeft="0dp"
|
|
|
android:layout_height="26dp"
|
|
|
- android:prompt="@string/build_select_prompt_hint"/>
|
|
|
+ android:paddingLeft="0dp"
|
|
|
+ android:prompt="@string/build_select_prompt_hint" />
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
|
|
|
- <LinearLayout
|
|
|
- style="@style/ReportDetail.Section.LinearLayout">
|
|
|
+ <LinearLayout style="@style/ReportDetail.Section.LinearLayout">
|
|
|
+
|
|
|
<TextView
|
|
|
android:id="@+id/text_add_photo"
|
|
|
style="@style/ReportDetail.Header.Text"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_centerVertical="true"
|
|
|
- android:text="附件上传"/>
|
|
|
+ android:text="附件上传" />
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:id="@+id/layout_btn_add"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="36dp"
|
|
|
android:gravity="center_vertical"
|
|
|
android:paddingLeft="6dp">
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/ReportDetail.Info.Title"
|
|
|
android:layout_width="wrap_content"
|
|
@@ -414,8 +460,8 @@
|
|
|
android:layout_height="24dp"
|
|
|
android:layout_centerVertical="true"
|
|
|
android:layout_marginLeft="6dp"
|
|
|
- android:background="@mipmap/btn_add_file"
|
|
|
android:layout_toRightOf="@id/text_add_photo"
|
|
|
+ android:background="@mipmap/btn_add_file"
|
|
|
android:textColor="@color/white" />
|
|
|
</LinearLayout>
|
|
|
|
|
@@ -423,11 +469,11 @@
|
|
|
android:id="@+id/layout_addpic_area"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:paddingLeft="10dp"
|
|
|
- android:paddingRight="10dp"
|
|
|
android:layout_gravity="center_vertical"
|
|
|
android:background="@color/white"
|
|
|
- android:orientation="vertical">
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:paddingLeft="10dp"
|
|
|
+ android:paddingRight="10dp">
|
|
|
|
|
|
<View
|
|
|
android:layout_width="match_parent"
|
|
@@ -437,8 +483,8 @@
|
|
|
<HorizontalScrollView
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="100dp"
|
|
|
- android:layout_marginBottom="5dp"
|
|
|
- android:layout_marginTop="5dp">
|
|
|
+ android:layout_marginTop="5dp"
|
|
|
+ android:layout_marginBottom="5dp">
|
|
|
|
|
|
<LinearLayout
|
|
|
android:id="@+id/photo_gallery"
|