activity_grabdetails.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools">
  5. <data>
  6. <variable
  7. name="vm"
  8. type="com.quansu.heifengwuliu.vmodel.GrabDetailsVModel" />
  9. </data>
  10. <LinearLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="match_parent"
  13. android:background="#F5F5F5"
  14. android:orientation="vertical">
  15. <FrameLayout
  16. android:layout_width="match_parent"
  17. android:layout_height="match_parent">
  18. <ScrollView
  19. android:layout_width="match_parent"
  20. android:layout_height="match_parent"
  21. android:layout_marginStart="17dp"
  22. android:layout_marginEnd="16dp"
  23. android:scrollbars="none">
  24. <LinearLayout
  25. android:layout_width="match_parent"
  26. android:layout_height="wrap_content"
  27. android:orientation="vertical">
  28. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content"
  31. android:orientation="vertical"
  32. android:paddingStart="@dimen/dp_11"
  33. android:layout_marginTop="12dp"
  34. android:paddingEnd="@dimen/dp_16"
  35. app:qmui_backgroundColor="@color/white"
  36. app:qmui_radius="@dimen/dp_4">
  37. <LinearLayout
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:layout_marginTop="16dp"
  41. android:gravity="center_vertical"
  42. android:orientation="horizontal">
  43. <LinearLayout
  44. android:layout_width="0dp"
  45. android:layout_height="wrap_content"
  46. android:layout_weight="1"
  47. android:gravity="center_vertical">
  48. <ImageView
  49. android:id="@+id/iv_yellow"
  50. android:layout_width="9dp"
  51. android:layout_height="10dp"
  52. android:src="@drawable/ic_circle_yellow" />
  53. <TextView
  54. android:id="@+id/tv_from"
  55. android:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:layout_marginStart="22dp"
  58. android:text="@{vm.info.order.send[0].province.name+vm.info.order.send[0].city.name}"
  59. android:textColor="@color/text_title"
  60. android:textSize="@dimen/sp_15"
  61. android:textStyle="bold"
  62. tools:text="12344" />
  63. </LinearLayout>
  64. <ImageView
  65. android:id="@+id/img_arrow"
  66. android:layout_width="26dp"
  67. android:layout_height="4dp"
  68. android:src="@drawable/ic_long_arrow" />
  69. <LinearLayout
  70. android:layout_width="0dp"
  71. android:layout_height="wrap_content"
  72. android:layout_weight="1"
  73. android:gravity="center_vertical">
  74. <ImageView
  75. android:id="@+id/iv_red"
  76. android:layout_width="9dp"
  77. android:layout_height="10dp"
  78. android:layout_marginStart="14dp"
  79. android:src="@drawable/ic_circle_red" />
  80. <TextView
  81. android:id="@+id/tv_to"
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. android:layout_marginStart="22dp"
  85. 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}"
  86. android:textColor="@color/text_title"
  87. android:textSize="@dimen/sp_15"
  88. android:textStyle="bold"
  89. tools:text="12344" />
  90. </LinearLayout>
  91. </LinearLayout>
  92. <LinearLayout
  93. android:layout_width="match_parent"
  94. android:layout_height="wrap_content"
  95. android:layout_marginTop="8dp"
  96. android:layout_marginBottom="25dp"
  97. android:orientation="horizontal">
  98. <TextView
  99. android:layout_width="0dp"
  100. android:layout_height="wrap_content"
  101. android:layout_weight="1"
  102. android:gravity="center"
  103. android:text="@{vm.info.order.send[0].address}"
  104. android:textColor="@color/text_title"
  105. android:textSize="13sp"
  106. tools:text="经开区香港路9号" />
  107. <TextView
  108. android:layout_width="0dp"
  109. android:layout_height="wrap_content"
  110. android:layout_weight="1"
  111. android:gravity="center"
  112. android:text="@{vm.info.order.receive[vm.info.order.receive.size()-1].address}"
  113. android:textColor="@color/text_title"
  114. android:textSize="13sp"
  115. tools:text="经开区香港路9号" />
  116. </LinearLayout>
  117. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
  118. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
  119. android:layout_width="match_parent"
  120. android:layout_height="wrap_content"
  121. android:layout_marginTop="@dimen/dp_12"
  122. android:gravity="center_vertical"
  123. android:orientation="horizontal"
  124. android:paddingStart="@dimen/dp_11"
  125. android:paddingEnd="@dimen/dp_16"
  126. app:qmui_backgroundColor="@color/white"
  127. app:qmui_radius="@dimen/dp_4">
  128. <ImageView
  129. android:layout_width="40dp"
  130. android:layout_height="40dp"
  131. android:layout_marginTop="21dp"
  132. android:layout_marginBottom="21dp"
  133. android:src="@drawable/bg_need_error" />
  134. <LinearLayout
  135. android:layout_width="0dp"
  136. android:layout_height="match_parent"
  137. android:layout_marginStart="8dp"
  138. android:layout_marginEnd="8dp"
  139. android:layout_weight="1"
  140. android:orientation="vertical">
  141. <TextView
  142. android:layout_width="wrap_content"
  143. android:layout_height="wrap_content"
  144. android:layout_marginTop="16dp"
  145. android:text="@{vm.info.company.company_name}"
  146. android:textColor="@color/text_title"
  147. android:textSize="16sp"
  148. android:textStyle="bold"
  149. tools:text="临沂市昆仑物流有限公司" />
  150. <LinearLayout
  151. android:layout_width="match_parent"
  152. android:layout_height="wrap_content"
  153. android:layout_marginTop="7dp"
  154. android:orientation="horizontal">
  155. <TextView
  156. android:layout_width="wrap_content"
  157. android:layout_height="wrap_content"
  158. android:layout_marginEnd="@dimen/dp_10"
  159. android:text="累计交易"
  160. android:textColor="#979899"
  161. android:textSize="16sp" />
  162. <TextView
  163. android:layout_width="wrap_content"
  164. android:layout_height="wrap_content"
  165. android:text="@{vm.info.company.info_nums+@string/single}"
  166. android:textColor="#979899"
  167. android:textSize="16sp"
  168. tools:text="@string/single" />
  169. <TextView
  170. android:layout_width="wrap_content"
  171. android:layout_height="wrap_content"
  172. android:layout_marginStart="@dimen/dp_10"
  173. android:layout_marginEnd="@dimen/dp_10"
  174. android:text="好评率"
  175. android:textColor="#979899"
  176. android:textSize="16sp" />
  177. <TextView
  178. android:layout_width="wrap_content"
  179. android:layout_height="wrap_content"
  180. android:text="@{vm.info.company.hpl+@string/percent_sign}"
  181. android:textColor="#979899"
  182. android:textSize="16sp"
  183. tools:text="@string/percent_sign" />
  184. </LinearLayout>
  185. </LinearLayout>
  186. <LinearLayout
  187. android:layout_width="wrap_content"
  188. android:layout_height="wrap_content"
  189. android:onClick="@{v->vm.toCallPhone(vm.info.company.mobile)}"
  190. android:orientation="vertical">
  191. <ImageView
  192. android:layout_width="24dp"
  193. android:layout_height="24dp"
  194. android:src="@drawable/ic_details_phone" />
  195. <TextView
  196. android:layout_width="wrap_content"
  197. android:layout_height="wrap_content"
  198. android:layout_marginTop="4dp"
  199. android:text="@{vm.info.company.name}"
  200. android:textColor="@color/text_title"
  201. android:textSize="13sp"
  202. tools:text="马勇" />
  203. </LinearLayout>
  204. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
  205. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
  206. android:layout_width="match_parent"
  207. android:layout_height="wrap_content"
  208. android:layout_marginTop="@dimen/dp_12"
  209. android:gravity="center_vertical"
  210. android:orientation="vertical"
  211. android:paddingStart="21dp"
  212. android:paddingEnd="16dp"
  213. app:qmui_backgroundColor="@color/white"
  214. app:qmui_radius="@dimen/dp_4">
  215. <TextView
  216. android:layout_width="match_parent"
  217. android:layout_height="wrap_content"
  218. android:layout_marginTop="16dp"
  219. android:gravity="center"
  220. android:text="详细信息"
  221. android:textColor="@color/text_title"
  222. android:textSize="15sp"
  223. android:textStyle="bold" />
  224. <LinearLayout
  225. android:layout_width="match_parent"
  226. android:layout_height="wrap_content"
  227. android:layout_marginTop="21dp"
  228. android:orientation="horizontal">
  229. <TextView
  230. android:layout_width="wrap_content"
  231. android:layout_height="wrap_content"
  232. android:text="装货时间"
  233. android:textColor="#767778"
  234. android:textSize="14sp" />
  235. <TextView
  236. android:layout_width="0dp"
  237. android:layout_height="wrap_content"
  238. android:layout_weight="1"
  239. android:gravity="right"
  240. android:text="@{vm.info.order.send[0].time}"
  241. android:textColor="@color/text_title"
  242. android:textSize="@dimen/sp_13"
  243. tools:text="2020-09-03 下午" />
  244. </LinearLayout>
  245. <LinearLayout
  246. android:layout_width="match_parent"
  247. android:layout_height="wrap_content"
  248. android:layout_marginTop="13dp"
  249. android:orientation="horizontal">
  250. <TextView
  251. android:layout_width="wrap_content"
  252. android:layout_height="wrap_content"
  253. android:text="卸货时间"
  254. android:textColor="#767778"
  255. android:textSize="14sp" />
  256. <TextView
  257. android:layout_width="0dp"
  258. android:layout_height="wrap_content"
  259. android:layout_weight="1"
  260. android:gravity="right"
  261. android:text="@{vm.info.order.receive[vm.info.order.receive.size()-1].time}"
  262. android:textColor="@color/text_title"
  263. android:textSize="@dimen/sp_13"
  264. tools:text="2020-09-03 下午" />
  265. </LinearLayout>
  266. <LinearLayout
  267. android:layout_width="match_parent"
  268. android:layout_height="wrap_content"
  269. android:layout_marginTop="13dp"
  270. android:orientation="horizontal">
  271. <TextView
  272. android:layout_width="wrap_content"
  273. android:layout_height="wrap_content"
  274. android:text="货物信息"
  275. android:textColor="#767778"
  276. android:textSize="14sp" />
  277. <TextView
  278. android:layout_width="0dp"
  279. android:layout_height="wrap_content"
  280. android:layout_weight="1"
  281. android:gravity="right"
  282. 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}"
  283. android:textColor="@color/text_title"
  284. android:textSize="@dimen/sp_13"
  285. tools:text="苹果(农产品)" />
  286. </LinearLayout>
  287. <LinearLayout
  288. android:layout_width="match_parent"
  289. android:layout_height="wrap_content"
  290. android:layout_marginTop="13dp"
  291. android:orientation="horizontal">
  292. <TextView
  293. android:layout_width="wrap_content"
  294. android:layout_height="wrap_content"
  295. android:text="车辆类型"
  296. android:textColor="#767778"
  297. android:textSize="14sp" />
  298. <TextView
  299. android:layout_width="0dp"
  300. android:layout_height="wrap_content"
  301. android:layout_weight="1"
  302. android:gravity="right"
  303. android:text="@{vm.info.order.type_info.type_name+@string/spot+vm.info.order.type_info.length}"
  304. android:textColor="@color/text_title"
  305. android:textSize="@dimen/sp_13"
  306. tools:text="平板货车 · 13米" />
  307. </LinearLayout>
  308. <LinearLayout
  309. android:layout_width="match_parent"
  310. android:layout_height="wrap_content"
  311. android:layout_marginTop="13dp"
  312. android:orientation="horizontal">
  313. <TextView
  314. android:layout_width="wrap_content"
  315. android:layout_height="wrap_content"
  316. android:text="本单重量"
  317. android:textColor="#767778"
  318. android:textSize="14sp" />
  319. <TextView
  320. android:layout_width="0dp"
  321. android:layout_height="wrap_content"
  322. android:layout_weight="1"
  323. android:gravity="right"
  324. 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}"
  325. android:textColor="@color/text_title"
  326. android:textSize="@dimen/sp_13"
  327. tools:text="35吨" />
  328. </LinearLayout>
  329. <LinearLayout
  330. android:layout_width="match_parent"
  331. android:layout_height="wrap_content"
  332. android:layout_marginTop="13dp"
  333. android:orientation="horizontal">
  334. <TextView
  335. android:layout_width="wrap_content"
  336. android:layout_height="wrap_content"
  337. android:text="本单价格"
  338. android:textColor="#767778"
  339. android:textSize="14sp" />
  340. <TextView
  341. android:layout_width="0dp"
  342. android:layout_height="wrap_content"
  343. android:layout_weight="1"
  344. android:gravity="right"
  345. android:text="@{@string/total_img+vm.info.order.receive[vm.info.order.receive.size()-1].price}"
  346. android:textColor="@color/text_title"
  347. android:textSize="@dimen/sp_13"
  348. tools:text="¥3500" />
  349. </LinearLayout>
  350. <LinearLayout
  351. android:layout_width="match_parent"
  352. android:layout_height="wrap_content"
  353. android:layout_marginTop="13dp"
  354. android:layout_marginBottom="20dp"
  355. android:orientation="horizontal">
  356. <TextView
  357. android:layout_width="wrap_content"
  358. android:layout_height="wrap_content"
  359. android:text="备注信息"
  360. android:textColor="#767778"
  361. android:textSize="14sp" />
  362. <TextView
  363. android:layout_width="0dp"
  364. android:layout_height="wrap_content"
  365. android:layout_weight="1"
  366. android:gravity="right"
  367. android:text="@{vm.info.order.data}"
  368. android:textColor="@color/text_title"
  369. android:textSize="@dimen/sp_13"
  370. tools:text="稳中求快" />
  371. </LinearLayout>
  372. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
  373. <TextView
  374. android:layout_width="match_parent"
  375. android:layout_height="wrap_content"
  376. android:layout_marginStart="66dp"
  377. android:layout_marginTop="20dp"
  378. android:layout_marginEnd="66dp"
  379. android:gravity="center"
  380. android:textColor="@color/text_title"
  381. android:textSize="14sp"
  382. android:text="@{vm.tips}"
  383. tools:text="*货主共计需要10辆车,运输350吨货物 当前已有7辆车接单">
  384. </TextView>
  385. <LinearLayout
  386. android:layout_width="match_parent"
  387. android:layout_height="wrap_content"
  388. android:layout_marginTop="56dp"
  389. android:paddingBottom="106dp"
  390. android:gravity="center"
  391. android:orientation="vertical">
  392. <LinearLayout
  393. android:layout_width="wrap_content"
  394. android:layout_height="wrap_content"
  395. android:orientation="horizontal">
  396. <TextView
  397. android:layout_width="wrap_content"
  398. android:layout_height="wrap_content"
  399. android:layout_marginEnd="20dp"
  400. android:text="使用协议"
  401. android:textColor="#FFBC00"
  402. android:textSize="13sp"></TextView>
  403. <View
  404. android:layout_width="1dp"
  405. android:layout_height="15dp"
  406. android:background="#979899" />
  407. <TextView
  408. android:layout_width="wrap_content"
  409. android:layout_height="wrap_content"
  410. android:layout_marginStart="20dp"
  411. android:text="操作指引"
  412. android:textColor="#FFBC00"
  413. android:textSize="13sp"></TextView>
  414. </LinearLayout>
  415. </LinearLayout>
  416. </LinearLayout>
  417. </ScrollView>
  418. <FrameLayout
  419. android:layout_width="match_parent"
  420. android:layout_height="wrap_content"
  421. android:layout_gravity="bottom"
  422. android:onClick="@{v->vm.toGrab(vm.info.order.info_id)}">
  423. <ImageView
  424. android:layout_width="match_parent"
  425. android:layout_height="106dp"
  426. android:src="@drawable/ic_details_grab" />
  427. <TextView
  428. android:layout_width="wrap_content"
  429. android:layout_height="wrap_content"
  430. android:layout_gravity="center"
  431. android:text="抢单"
  432. android:textColor="@color/white"
  433. android:textSize="16sp">
  434. </TextView>
  435. </FrameLayout>
  436. </FrameLayout>
  437. </LinearLayout>
  438. </layout>