<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 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/mainBackColor" android:orientation="vertical" tools:context=".view.WorkOrderDetailActivity"> <include layout="@layout/include_base_title" /> <androidx.core.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:padding="@dimen/dp_10"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/bg_layout" android:orientation="vertical"> <RelativeLayout style="@style/itemLayoutStyle"> <TextView style="@style/textViewStyle" android:text="报警内容" /> <TextView android:id="@+id/alarmContentView" style="@style/textViewStyle" android:layout_alignParentEnd="true" android:text="@string/unknown" android:textColor="@color/redTextColor" android:textSize="@dimen/menuFontSize" /> </RelativeLayout> <View style="@style/dividerViewStyle" /> <RelativeLayout style="@style/itemLayoutStyle"> <TextView style="@style/textViewStyle" android:text="报警时间" /> <TextView android:id="@+id/alarmDateView" style="@style/textViewStyle" android:layout_alignParentEnd="true" android:text="@string/unknown" android:textSize="@dimen/textFontSize" /> </RelativeLayout> <View style="@style/dividerViewStyle" /> <RelativeLayout style="@style/itemLayoutStyle"> <TextView style="@style/textViewStyle" android:text="工单编号" /> <TextView android:id="@+id/orderCodeView" style="@style/textViewStyle" android:layout_alignParentEnd="true" android:text="@string/unknown" android:textSize="@dimen/textFontSize" /> </RelativeLayout> <View style="@style/dividerViewStyle" /> <RelativeLayout style="@style/itemLayoutStyle"> <TextView style="@style/textViewStyle" android:text="窨井编号" /> <TextView android:id="@+id/wellCodeView" style="@style/textViewStyle" android:layout_alignParentEnd="true" android:text="@string/unknown" android:textColor="@color/mainThemeColor" android:textSize="@dimen/textFontSize" /> </RelativeLayout> <View style="@style/dividerViewStyle" /> <RelativeLayout style="@style/itemLayoutStyle"> <TextView style="@style/textViewStyle" android:text="设备编号" /> <TextView android:id="@+id/devCodeView" style="@style/textViewStyle" android:layout_alignParentEnd="true" android:text="@string/unknown" android:textSize="@dimen/textFontSize" /> </RelativeLayout> <View style="@style/dividerViewStyle" /> <RelativeLayout style="@style/itemLayoutStyle"> <TextView style="@style/textViewStyle" android:text="告警等级" /> <TextView android:id="@+id/alarmLevelView" style="@style/textViewStyle" android:layout_alignParentEnd="true" android:text="@string/unknown" android:textColor="@color/redTextColor" android:textSize="@dimen/textFontSize" /> </RelativeLayout> <View style="@style/dividerViewStyle" /> <RelativeLayout style="@style/itemLayoutStyle"> <TextView style="@style/textViewStyle" android:text="告警数值" /> <TextView android:id="@+id/alarmValueView" style="@style/textViewStyle" android:layout_alignParentEnd="true" android:text="@string/unknown" android:textColor="@color/redTextColor" android:textSize="@dimen/textFontSize" /> </RelativeLayout> <View style="@style/dividerViewStyle" /> <RelativeLayout style="@style/itemLayoutStyle"> <LinearLayout android:id="@+id/tempLayout" android:layout_width="wrap_content" android:layout_height="match_parent" android:paddingHorizontal="@dimen/dp_10"> <TextView android:layout_width="wrap_content" android:layout_height="match_parent" android:gravity="center_vertical" android:text="@string/app_name" android:textColor="@color/mainTextColor" android:textSize="@dimen/titleFontSize" /> <ImageView android:id="@+id/tipsImageView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/dp_10" android:background="@drawable/ic_info" android:visibility="gone" /> </LinearLayout> <TextView android:id="@+id/wellLocationView" style="@style/textViewStyle" android:layout_width="match_parent" android:layout_alignParentEnd="true" android:layout_toEndOf="@id/tempLayout" android:gravity="end|center_vertical" android:singleLine="true" android:text="@string/unknown" android:textSize="@dimen/textFontSize" /> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/dp_10" android:background="@drawable/bg_layout" android:orientation="vertical"> <RelativeLayout style="@style/itemLayoutStyle"> <TextView style="@style/textViewStyle" android:text="派单时间" /> <TextView android:id="@+id/dispatchDateView" style="@style/textViewStyle" android:layout_alignParentEnd="true" android:text="@string/unknown" android:textSize="@dimen/textFontSize" /> </RelativeLayout> <View style="@style/dividerViewStyle" /> <RelativeLayout style="@style/itemLayoutStyle"> <TextView style="@style/textViewStyle" android:text="完成时间" /> <TextView android:id="@+id/completedDateView" style="@style/textViewStyle" android:layout_alignParentEnd="true" android:text="@string/unknown" android:textSize="@dimen/textFontSize" /> </RelativeLayout> </LinearLayout> </LinearLayout> </androidx.core.widget.NestedScrollView> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:padding="@dimen/dp_20"> <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton android:id="@+id/acceptOrderButton" style="@style/buttonStyle" android:layout_width="0dp" android:layout_marginEnd="@dimen/dp_10" android:layout_weight="1" android:text="接单" /> <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton android:id="@+id/navigationButton" style="@style/buttonStyle" android:layout_width="0dp" android:layout_marginStart="@dimen/dp_10" android:layout_weight="1" android:text="到这里去" android:textColor="@color/mainTextColor" app:qmui_backgroundColor="@color/white" app:qmui_borderColor="@color/hintTextColor" /> </LinearLayout> </LinearLayout>