<?xml version="1.0" encoding="utf-8"?>
|
<layout 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">
|
|
<data>
|
|
<variable
|
name="viewModel"
|
type="com.xw.yunwei.ui.task.taskDetail.TaskDetailVM" />
|
|
|
</data>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:id="@+id/parentLayout"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@color/white"
|
android:fitsSystemWindows="true">
|
|
|
<View
|
android:id="@+id/viewTop"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_44"
|
android:background="@color/white"
|
app:layout_constraintTop_toTopOf="parent" />
|
|
<androidx.appcompat.widget.AppCompatImageView
|
android:id="@+id/back"
|
android:layout_width="50dp"
|
android:layout_height="@dimen/dp_30"
|
android:onClick="@{viewModel.onClick}"
|
android:paddingVertical="@dimen/dp_5"
|
android:paddingStart="20dp"
|
android:paddingEnd="@dimen/dp_10"
|
android:src="@drawable/svg_back"
|
app:layout_constraintBottom_toBottomOf="@+id/viewTop"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="@+id/viewTop" />
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="已处理"
|
android:textColor="@color/gray_10"
|
android:textSize="@dimen/sp_16"
|
android:textStyle="bold"
|
app:layout_constraintBottom_toBottomOf="@+id/viewTop"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintTop_toTopOf="@+id/viewTop" />
|
|
<ScrollView
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_marginHorizontal="@dimen/dp_20"
|
android:layout_marginTop="@dimen/dp_8"
|
android:fillViewport="true"
|
android:scrollbars="none"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintTop_toBottomOf="@+id/viewTop">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:orientation="vertical">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_24"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<androidx.appcompat.widget.AppCompatImageView
|
android:layout_width="@dimen/dp_33"
|
android:layout_height="@dimen/dp_20"
|
android:src="@mipmap/ic_accident_one" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_centerVertical="true"
|
android:layout_marginStart="@dimen/dp_4"
|
android:layout_weight="1"
|
android:text="粤P·XV7029试"
|
android:textColor="@color/gray_9"
|
android:textSize="@dimen/sp_16" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="@dimen/dp_40"
|
android:layout_height="@dimen/dp_24"
|
android:layout_centerVertical="true"
|
android:layout_marginStart="@dimen/dp_30"
|
android:background="@drawable/shape_gray_3_bg_4"
|
android:gravity="center"
|
android:text="白色"
|
android:textColor="@color/gray_9"
|
android:textSize="@dimen/sp_14" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="@dimen/dp_8"
|
android:paddingHorizontal="@dimen/dp_8"
|
android:text="车身编码:01234"
|
android:textColor="@color/gray_9"
|
android:textSize="@dimen/sp_12" />
|
|
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/dp_12"
|
android:orientation="vertical">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_32"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerVertical="true"
|
android:text="车辆VIN码"
|
android:textColor="@color/gray_7"
|
android:textSize="@dimen/sp_14" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_alignParentEnd="true"
|
android:layout_centerVertical="true"
|
android:layout_marginStart="@dimen/dp_16"
|
android:layout_weight="1"
|
android:ellipsize="end"
|
android:gravity="end"
|
android:maxLines="1"
|
android:singleLine="true"
|
android:text="LINSPGHB2LA004618"
|
android:textColor="@color/gray_7"
|
android:textSize="@dimen/sp_14" />
|
|
</LinearLayout>
|
|
<!--<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_32"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerVertical="true"
|
android:text="详细地址"
|
android:textColor="@color/gray_7"
|
android:textSize="@dimen/sp_14" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_alignParentEnd="true"
|
android:layout_centerVertical="true"
|
android:layout_marginStart="@dimen/dp_16"
|
android:layout_weight="1"
|
android:ellipsize="end"
|
android:gravity="end"
|
android:maxLines="1"
|
android:singleLine="true"
|
android:text="深圳市南山区南大街龙葵小区7栋1701"
|
android:textColor="@color/gray_7"
|
android:textSize="@dimen/sp_14" />
|
|
</LinearLayout>-->
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_32"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerVertical="true"
|
android:text="任务单号"
|
android:textColor="@color/gray_7"
|
android:textSize="@dimen/sp_14" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_alignParentEnd="true"
|
android:layout_centerVertical="true"
|
android:layout_marginStart="@dimen/dp_16"
|
android:layout_weight="1"
|
android:ellipsize="end"
|
android:gravity="end"
|
android:maxLines="1"
|
android:singleLine="true"
|
android:text="331483672472134"
|
android:textColor="@color/gray_7"
|
android:textSize="@dimen/sp_14" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_32"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerVertical="true"
|
android:text="创建时间"
|
android:textColor="@color/gray_7"
|
android:textSize="@dimen/sp_14" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_alignParentEnd="true"
|
android:layout_centerVertical="true"
|
android:layout_marginStart="@dimen/dp_16"
|
android:layout_weight="1"
|
android:ellipsize="end"
|
android:gravity="end"
|
android:maxLines="1"
|
android:singleLine="true"
|
android:text="2026-1-25 17:43:02"
|
android:textColor="@color/gray_7"
|
android:textSize="@dimen/sp_14" />
|
|
</LinearLayout>
|
|
<!--<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_32"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerVertical="true"
|
android:text="创建人"
|
android:textColor="@color/gray_7"
|
android:textSize="@dimen/sp_14" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_alignParentEnd="true"
|
android:layout_centerVertical="true"
|
android:layout_marginStart="@dimen/dp_16"
|
android:layout_weight="1"
|
android:ellipsize="end"
|
android:gravity="end"
|
android:maxLines="1"
|
android:singleLine="true"
|
android:text="沐沐磊"
|
android:textColor="@color/gray_7"
|
android:textSize="@dimen/sp_14" />
|
|
</LinearLayout>-->
|
|
|
</LinearLayout>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_1"
|
android:layout_marginVertical="@dimen/dp_12"
|
android:background="@color/gray_5" />
|
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_22">
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerVertical="true"
|
android:text="任务类型"
|
android:textColor="@color/gray_9"
|
android:textSize="@dimen/sp_16" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_alignParentEnd="true"
|
android:layout_centerVertical="true"
|
android:text="标准说明"
|
android:textColor="@color/blue_5"
|
android:textSize="@dimen/sp_12" />
|
|
</RelativeLayout>
|
|
<!--日常检测-->
|
<include
|
layout="@layout/layout_normal_task_check_detail"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
|
|
<!--车辆充电-->
|
<include
|
layout="@layout/layout_normal_task_charge_detail"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
|
<!--车辆整备-->
|
<include
|
layout="@layout/layout_normal_task_maintain_detail"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
|
<!--车辆维修-->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_36"
|
android:layout_marginTop="@dimen/dp_12"
|
android:background="@drawable/shape_0fec5340_bg_4"
|
android:gravity="center_vertical"
|
android:orientation="horizontal"
|
android:paddingHorizontal="@dimen/dp_12"
|
tools:ignore="UselessLeaf">
|
|
<androidx.appcompat.widget.AppCompatImageView
|
android:layout_width="@dimen/dp_16"
|
android:layout_height="@dimen/dp_16"
|
android:src="@mipmap/ic_task_clwx" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="@dimen/dp_10"
|
android:text="车辆维修"
|
android:textColor="#ffEC5340"
|
android:textSize="@dimen/sp_14" />
|
|
</LinearLayout>
|
|
<include
|
layout="@layout/layout_normal_task_car_repair"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
|
|
<!--洗车-->
|
<include
|
layout="@layout/include_task_xc"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
|
<!--车辆保养-->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_36"
|
android:layout_marginTop="@dimen/dp_12"
|
android:background="@drawable/shape_0f006be1_bg_4"
|
android:gravity="center_vertical"
|
android:orientation="horizontal"
|
android:paddingHorizontal="@dimen/dp_12"
|
tools:ignore="UselessLeaf">
|
|
<androidx.appcompat.widget.AppCompatImageView
|
android:layout_width="@dimen/dp_16"
|
android:layout_height="@dimen/dp_16"
|
android:src="@mipmap/ic_task_clby" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="@dimen/dp_10"
|
android:text="车辆保养"
|
android:textColor="@color/blue_5"
|
android:textSize="@dimen/sp_14" />
|
|
</LinearLayout>
|
|
<include
|
layout="@layout/include_bx_by"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
|
<!--保险到期-->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_36"
|
android:layout_marginTop="@dimen/dp_12"
|
android:background="@drawable/shape_0fec5340_bg_4"
|
android:gravity="center_vertical"
|
android:orientation="horizontal"
|
android:paddingHorizontal="@dimen/dp_12"
|
tools:ignore="UselessLeaf">
|
|
<androidx.appcompat.widget.AppCompatImageView
|
android:layout_width="@dimen/dp_16"
|
android:layout_height="@dimen/dp_16"
|
android:src="@mipmap/ic_task_bxdq" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="@dimen/dp_10"
|
android:text="保险到期"
|
android:textColor="#ffEC5340"
|
android:textSize="@dimen/sp_14" />
|
|
</LinearLayout>
|
|
<include
|
layout="@layout/include_bx_by"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
|
|
<!--年检到期-->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_36"
|
android:layout_marginTop="@dimen/dp_12"
|
android:background="@drawable/shape_0fec5340_bg_4"
|
android:gravity="center_vertical"
|
android:orientation="horizontal"
|
android:paddingHorizontal="@dimen/dp_12"
|
tools:ignore="UselessLeaf">
|
|
<androidx.appcompat.widget.AppCompatImageView
|
android:layout_width="@dimen/dp_16"
|
android:layout_height="@dimen/dp_16"
|
android:src="@mipmap/ic_task_nxdq" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="@dimen/dp_10"
|
android:text="年检到期"
|
android:textColor="#ffEC5340"
|
android:textSize="@dimen/sp_14" />
|
|
</LinearLayout>
|
|
<include
|
layout="@layout/include_bx_by"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_100" />
|
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
</layout>
|