|
@@ -3,20 +3,24 @@
|
|
|
|
|
|
<data>
|
|
|
|
|
|
+ <variable
|
|
|
+ name="vm"
|
|
|
+ type="com.quansu.heifengwuliu.vmodel.GrabDetailsVModel" />
|
|
|
+
|
|
|
</data>
|
|
|
|
|
|
<LinearLayout 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:layout_marginStart="17dp"
|
|
|
- android:layout_marginEnd="16dp"
|
|
|
android:background="#F5F5F5"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
<ScrollView
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
+ android:layout_marginStart="17dp"
|
|
|
+ android:layout_marginEnd="16dp"
|
|
|
android:scrollbars="none">
|
|
|
|
|
|
|
|
@@ -63,44 +67,48 @@
|
|
|
android:textColor="@color/text_title"
|
|
|
android:textSize="@dimen/sp_15"
|
|
|
android:textStyle="bold"
|
|
|
- tools:text="12344" />
|
|
|
+ android:text="@{vm.info.info.send[0].province.name+vm.info.info.send[0].city.name}"
|
|
|
+ tools:text="12344" />
|
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
- <ImageView
|
|
|
- android:id="@+id/img_arrow"
|
|
|
- android:layout_width="26dp"
|
|
|
- android:layout_height="4dp"
|
|
|
- android:src="@drawable/ic_long_arrow" />
|
|
|
|
|
|
+ <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" />
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center_vertical">
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_to"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="22dp"
|
|
|
- android:textColor="@color/text_title"
|
|
|
- android:textSize="@dimen/sp_15"
|
|
|
- android:textStyle="bold"
|
|
|
- tools:text="12344" />
|
|
|
+ <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:textColor="@color/text_title"
|
|
|
+ android:textSize="@dimen/sp_15"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:text="@{vm.info.info.receive[vm.info.info.receive.size()-1].province.name+vm.info.info.send[vm.info.info.receive.size()-1].city.name}"
|
|
|
+ tools:text="12344" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
+
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
@@ -115,21 +123,27 @@
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_weight="1"
|
|
|
android:gravity="center"
|
|
|
- android:text="经开区香港路9号"
|
|
|
+ tools:text="经开区香港路9号"
|
|
|
+ android:text="@{vm.info.info.send[0].address}"
|
|
|
android:textColor="@color/text_title"
|
|
|
android:textSize="13sp" />
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<TextView
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_weight="1"
|
|
|
android:gravity="center"
|
|
|
- android:text="经开区香港路9号"
|
|
|
+ tools:text="经开区香港路9号"
|
|
|
+ android:text="@{vm.info.info.receive[vm.info.info.receive.size()-1].address}"
|
|
|
android:textColor="@color/text_title"
|
|
|
android:textSize="13sp" />
|
|
|
|
|
|
|
|
|
+
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
@@ -168,8 +182,10 @@
|
|
|
android:textColor="@color/text_title"
|
|
|
android:textSize="16sp"
|
|
|
android:textStyle="bold"
|
|
|
+ android:text="@{vm.info.company.company_name}"
|
|
|
tools:text="临沂市昆仑物流有限公司" />
|
|
|
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
@@ -181,7 +197,17 @@
|
|
|
android:layout_height="wrap_content"
|
|
|
android:textColor="#979899"
|
|
|
android:textSize="16sp"
|
|
|
- tools:text="累计交易 1569单" />
|
|
|
+ android:text="累计交易"
|
|
|
+ android:layout_marginEnd="@dimen/dp_10"
|
|
|
+ />
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textColor="#979899"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:text="@{vm.info.company.info_nums+@string/single}"
|
|
|
+ tools:text="@string/single" />
|
|
|
+
|
|
|
|
|
|
|
|
|
<TextView
|
|
@@ -190,7 +216,18 @@
|
|
|
android:layout_marginStart="@dimen/dp_10"
|
|
|
android:textColor="#979899"
|
|
|
android:textSize="16sp"
|
|
|
- tools:text="好评率 100%" />
|
|
|
+ android:layout_marginEnd="@dimen/dp_10"
|
|
|
+ android:text="好评率" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textColor="#979899"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:text="@{vm.info.company.hpl+@string/percent_sign}"
|
|
|
+
|
|
|
+ tools:text="@string/percent_sign" />
|
|
|
+
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
@@ -198,10 +235,11 @@
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
- <LinearLayout
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:orientation="vertical">
|
|
|
+ android:onClick="@{v->vm.toCallPhone(vm.info.company.mobile)}"
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
<ImageView
|
|
|
android:layout_width="24dp"
|
|
@@ -215,6 +253,7 @@
|
|
|
android:layout_marginTop="4dp"
|
|
|
android:textColor="@color/text_title"
|
|
|
android:textSize="13sp"
|
|
|
+ android:text="@{vm.info.company.name}"
|
|
|
tools:text="马勇" />
|
|
|
|
|
|
|
|
@@ -266,8 +305,11 @@
|
|
|
android:gravity="right"
|
|
|
android:textColor="@color/text_title"
|
|
|
android:textSize="@dimen/sp_13"
|
|
|
+ android:text="@{vm.info.info.send[0].time}"
|
|
|
+
|
|
|
tools:text="2020-09-03 下午" />
|
|
|
|
|
|
+
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
@@ -291,8 +333,10 @@
|
|
|
android:gravity="right"
|
|
|
android:textColor="@color/text_title"
|
|
|
android:textSize="@dimen/sp_13"
|
|
|
+ android:text="@{vm.info.info.receive[vm.info.info.receive.size()-1].time}"
|
|
|
tools:text="2020-09-03 下午" />
|
|
|
|
|
|
+
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
@@ -316,8 +360,10 @@
|
|
|
android:gravity="right"
|
|
|
android:textColor="@color/text_title"
|
|
|
android:textSize="@dimen/sp_13"
|
|
|
+ android:text="@{vm.info.info.receive[vm.info.info.receive.size()-1].goods+@string/left_bracket+vm.info.info.receive[vm.info.info.receive.size()-1].goods_type.name+@string/right_bracket}"
|
|
|
tools:text="苹果(农产品)" />
|
|
|
|
|
|
+
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
@@ -341,6 +387,7 @@
|
|
|
android:gravity="right"
|
|
|
android:textColor="@color/text_title"
|
|
|
android:textSize="@dimen/sp_13"
|
|
|
+ android:text="@{vm.info.info.type_info.type_name+@string/spot+vm.info.info.type_info.longx}"
|
|
|
tools:text="平板货车 · 13米" />
|
|
|
|
|
|
</LinearLayout>
|
|
@@ -366,6 +413,7 @@
|
|
|
android:gravity="right"
|
|
|
android:textColor="@color/text_title"
|
|
|
android:textSize="@dimen/sp_13"
|
|
|
+ android:text="@{vm.info.info.receive[vm.info.info.receive.size()-1].nums+vm.info.info.receive[vm.info.info.receive.size()-1].nums_type.name}"
|
|
|
tools:text="35吨" />
|
|
|
|
|
|
</LinearLayout>
|
|
@@ -391,6 +439,7 @@
|
|
|
android:gravity="right"
|
|
|
android:textColor="@color/text_title"
|
|
|
android:textSize="@dimen/sp_13"
|
|
|
+ android:text="@{@string/total_img+vm.info.info.receive[vm.info.info.receive.size()-1].price}"
|
|
|
tools:text="¥3500" />
|
|
|
|
|
|
</LinearLayout>
|
|
@@ -417,6 +466,7 @@
|
|
|
android:gravity="right"
|
|
|
android:textColor="@color/text_title"
|
|
|
android:textSize="@dimen/sp_13"
|
|
|
+ android:text="@{vm.info.info.data}"
|
|
|
tools:text="稳中求快" />
|
|
|
|
|
|
</LinearLayout>
|
|
@@ -478,6 +528,7 @@
|
|
|
<ImageView
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="106dp"
|
|
|
+ android:onClick="@{v->vm.toGrab(vm.info.info.info_id)}"
|
|
|
android:src="@drawable/ic_details_grab" />
|
|
|
|
|
|
|