123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563 |
- <?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="vm"
- type="com.quansu.heifengwuliu.vmodel.GrabDetailsVModel" />
- </data>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#F5F5F5"
- android:orientation="vertical">
- <FrameLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <ScrollView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginStart="17dp"
- android:layout_marginEnd="16dp"
- android:scrollbars="none">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:paddingStart="@dimen/dp_11"
- android:layout_marginTop="12dp"
- android:paddingEnd="@dimen/dp_16"
- app:qmui_backgroundColor="@color/white"
- app:qmui_radius="@dimen/dp_4">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:gravity="center_vertical"
- android:orientation="horizontal">
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="center_vertical">
- <ImageView
- android:id="@+id/iv_yellow"
- android:layout_width="9dp"
- android:layout_height="10dp"
- android:src="@drawable/ic_circle_yellow" />
- <TextView
- android:id="@+id/tv_from"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="22dp"
- android:text="@{vm.info.order.send[0].province.name+vm.info.order.send[0].city.name}"
- android:textColor="@color/text_title"
- android:textSize="@dimen/sp_15"
- android:textStyle="bold"
- tools:text="12344" />
- </LinearLayout>
- <ImageView
- android:id="@+id/img_arrow"
- android:layout_width="26dp"
- android:layout_height="4dp"
- android:src="@drawable/ic_long_arrow" />
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="center_vertical">
- <ImageView
- android:id="@+id/iv_red"
- android:layout_width="9dp"
- android:layout_height="10dp"
- android:layout_marginStart="14dp"
- android:src="@drawable/ic_circle_red" />
- <TextView
- android:id="@+id/tv_to"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="22dp"
- android:text="@{vm.info.order.receive[vm.info.order.receive.size()-1].province.name+vm.info.order.receive[vm.info.order.receive.size()-1].city.name}"
- android:textColor="@color/text_title"
- android:textSize="@dimen/sp_15"
- android:textStyle="bold"
- tools:text="12344" />
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:layout_marginBottom="25dp"
- android:orientation="horizontal">
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="center"
- android:text="@{vm.info.order.send[0].address}"
- android:textColor="@color/text_title"
- android:textSize="13sp"
- tools:text="经开区香港路9号" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="center"
- android:text="@{vm.info.order.receive[vm.info.order.receive.size()-1].address}"
- android:textColor="@color/text_title"
- android:textSize="13sp"
- tools:text="经开区香港路9号" />
- </LinearLayout>
- </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
- <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="@dimen/dp_12"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:paddingStart="@dimen/dp_11"
- android:paddingEnd="@dimen/dp_16"
- app:qmui_backgroundColor="@color/white"
- app:qmui_radius="@dimen/dp_4">
- <ImageView
- android:layout_width="40dp"
- android:layout_height="40dp"
- android:layout_marginTop="21dp"
- android:layout_marginBottom="21dp"
- android:src="@drawable/bg_need_error" />
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_marginStart="8dp"
- android:layout_marginEnd="8dp"
- android:layout_weight="1"
- android:orientation="vertical">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:text="@{vm.info.company.company_name}"
- android:textColor="@color/text_title"
- android:textSize="16sp"
- android:textStyle="bold"
- tools:text="临沂市昆仑物流有限公司" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="7dp"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/dp_10"
- android:text="累计交易"
- android:textColor="#979899"
- android:textSize="16sp" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@{vm.info.company.info_nums+@string/single}"
- android:textColor="#979899"
- android:textSize="16sp"
- tools:text="@string/single" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/dp_10"
- android:layout_marginEnd="@dimen/dp_10"
- android:text="好评率"
- android:textColor="#979899"
- android:textSize="16sp" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@{vm.info.company.hpl+@string/percent_sign}"
- android:textColor="#979899"
- android:textSize="16sp"
- tools:text="@string/percent_sign" />
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:onClick="@{v->vm.toCallPhone(vm.info.company.mobile)}"
- android:orientation="vertical">
- <ImageView
- android:layout_width="24dp"
- android:layout_height="24dp"
- android:src="@drawable/ic_details_phone" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="4dp"
- android:text="@{vm.info.company.name}"
- android:textColor="@color/text_title"
- android:textSize="13sp"
- tools:text="马勇" />
- </LinearLayout>
- </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
- <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="@dimen/dp_12"
- android:gravity="center_vertical"
- android:orientation="vertical"
- android:paddingStart="21dp"
- android:paddingEnd="16dp"
- app:qmui_backgroundColor="@color/white"
- app:qmui_radius="@dimen/dp_4">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:gravity="center"
- android:text="详细信息"
- android:textColor="@color/text_title"
- android:textSize="15sp"
- android:textStyle="bold" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="21dp"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="装货时间"
- android:textColor="#767778"
- android:textSize="14sp" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="right"
- android:text="@{vm.info.order.send[0].time}"
- android:textColor="@color/text_title"
- android:textSize="@dimen/sp_13"
- tools:text="2020-09-03 下午" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="13dp"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="卸货时间"
- android:textColor="#767778"
- android:textSize="14sp" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="right"
- android:text="@{vm.info.order.receive[vm.info.order.receive.size()-1].time}"
- android:textColor="@color/text_title"
- android:textSize="@dimen/sp_13"
- tools:text="2020-09-03 下午" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="13dp"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="货物信息"
- android:textColor="#767778"
- android:textSize="14sp" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="right"
- android:text="@{vm.info.order.receive[vm.info.order.receive.size()-1].goods+@string/left_bracket+vm.info.order.receive[vm.info.order.receive.size()-1].goods_type.name+@string/right_bracket}"
- android:textColor="@color/text_title"
- android:textSize="@dimen/sp_13"
- tools:text="苹果(农产品)" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="13dp"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="车辆类型"
- android:textColor="#767778"
- android:textSize="14sp" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="right"
- android:text="@{vm.info.order.type_info.type_name+@string/spot+vm.info.order.type_info.length}"
- android:textColor="@color/text_title"
- android:textSize="@dimen/sp_13"
- tools:text="平板货车 · 13米" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="13dp"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="本单重量"
- android:textColor="#767778"
- android:textSize="14sp" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="right"
- android:text="@{vm.info.order.receive[vm.info.order.receive.size()-1].nums+vm.info.order.receive[vm.info.order.receive.size()-1].nums_type.name}"
- android:textColor="@color/text_title"
- android:textSize="@dimen/sp_13"
- tools:text="35吨" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="13dp"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="本单价格"
- android:textColor="#767778"
- android:textSize="14sp" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="right"
- android:text="@{@string/total_img+vm.info.order.receive[vm.info.order.receive.size()-1].price}"
- android:textColor="@color/text_title"
- android:textSize="@dimen/sp_13"
- tools:text="¥3500" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="13dp"
- android:layout_marginBottom="20dp"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="备注信息"
- android:textColor="#767778"
- android:textSize="14sp" />
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="right"
- android:text="@{vm.info.order.data}"
- android:textColor="@color/text_title"
- android:textSize="@dimen/sp_13"
- tools:text="稳中求快" />
- </LinearLayout>
- </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="66dp"
- android:layout_marginTop="20dp"
- android:layout_marginEnd="66dp"
- android:gravity="center"
- android:textColor="@color/text_title"
- android:textSize="14sp"
- android:text="@{vm.tips}"
- tools:text="*货主共计需要10辆车,运输350吨货物 当前已有7辆车接单">
- </TextView>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="56dp"
- android:paddingBottom="106dp"
- android:gravity="center"
- android:orientation="vertical">
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="20dp"
- android:text="使用协议"
- android:textColor="#FFBC00"
- android:textSize="13sp"></TextView>
- <View
- android:layout_width="1dp"
- android:layout_height="15dp"
- android:background="#979899" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="20dp"
- android:text="操作指引"
- android:textColor="#FFBC00"
- android:textSize="13sp"></TextView>
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
- </ScrollView>
- <FrameLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="bottom"
- android:onClick="@{v->vm.toGrab(vm.info.order.info_id)}">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="106dp"
- android:src="@drawable/ic_details_grab" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:text="抢单"
- android:textColor="@color/white"
- android:textSize="16sp">
- </TextView>
- </FrameLayout>
- </FrameLayout>
- </LinearLayout>
- </layout>
|