activity_sourcedetails.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  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. <import type="android.view.View" />
  7. <variable
  8. name="vm"
  9. type="com.quansu.heifengwuliu.vmodel.SourceDetailsVModel" />
  10. </data>
  11. <LinearLayout
  12. android:id="@+id/ll"
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent"
  15. android:background="@color/color_page_bg"
  16. android:orientation="vertical">
  17. <ScrollView
  18. android:layout_width="match_parent"
  19. android:layout_height="0dp"
  20. android:layout_weight="1"
  21. android:scrollbars="none">
  22. <LinearLayout
  23. android:layout_width="match_parent"
  24. android:layout_height="match_parent"
  25. android:orientation="vertical">
  26. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:layout_marginStart="17dp"
  30. android:layout_marginTop="12dp"
  31. android:layout_marginEnd="16dp"
  32. android:orientation="vertical"
  33. android:paddingStart="11dp"
  34. android:paddingTop="20dp"
  35. android:paddingEnd="14dp"
  36. android:paddingBottom="20dp"
  37. app:qmui_backgroundColor="@color/white"
  38. app:qmui_radius="@dimen/dp_4">
  39. <LinearLayout
  40. android:layout_width="match_parent"
  41. android:layout_height="wrap_content"
  42. android:gravity="center_vertical"
  43. android:orientation="horizontal">
  44. <ImageView
  45. android:id="@+id/iv_yellow"
  46. android:layout_width="9dp"
  47. android:layout_height="10dp"
  48. android:layout_marginStart="18dp"
  49. android:src="@drawable/ic_circle_yellow" />
  50. <TextView
  51. android:layout_width="0dp"
  52. android:layout_height="wrap_content"
  53. android:layout_weight="1"
  54. android:gravity="center"
  55. android:text="@{vm.info.order.send[0].province.name+vm.info.order.send[0].city.name}"
  56. android:textColor="@color/text_title"
  57. android:textSize="@dimen/sp_15"
  58. tools:text="山东 临沂"></TextView>
  59. <ImageView
  60. android:layout_width="26dp"
  61. android:layout_height="4dp"
  62. android:src="@drawable/ic_long_arrow"></ImageView>
  63. <ImageView
  64. android:id="@+id/iv_red"
  65. android:layout_width="9dp"
  66. android:layout_height="10dp"
  67. android:layout_marginStart="14dp"
  68. android:src="@drawable/ic_circle_red" />
  69. <TextView
  70. android:id="@+id/tv_city_in"
  71. android:layout_width="0dp"
  72. android:layout_height="wrap_content"
  73. android:layout_marginEnd="@dimen/dp_10"
  74. android:layout_weight="1"
  75. android:gravity="center"
  76. 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}"
  77. android:textColor="@color/text_title"
  78. android:textSize="@dimen/sp_15"
  79. tools:text="河北 唐山"></TextView>
  80. </LinearLayout>
  81. <View
  82. android:layout_width="match_parent"
  83. android:layout_height="1dp"
  84. android:layout_marginStart="2dp"
  85. android:layout_marginTop="17dp"
  86. android:background="#E3E4E5" />
  87. <RelativeLayout
  88. android:layout_width="match_parent"
  89. android:layout_height="wrap_content">
  90. <androidx.recyclerview.widget.RecyclerView
  91. android:id="@+id/recycler_view_out"
  92. android:layout_width="match_parent"
  93. android:layout_height="wrap_content"
  94. app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
  95. tools:listitem="@layout/item_peopleinfo"
  96. tools:visibility="gone">
  97. </androidx.recyclerview.widget.RecyclerView>
  98. </RelativeLayout>
  99. <View
  100. android:layout_width="match_parent"
  101. android:layout_height="1dp"
  102. android:layout_marginStart="2dp"
  103. android:layout_marginTop="24dp"
  104. android:background="#E3E4E5" />
  105. <RelativeLayout
  106. android:layout_width="match_parent"
  107. android:layout_height="wrap_content">
  108. <androidx.recyclerview.widget.RecyclerView
  109. android:id="@+id/recycler_view_in"
  110. android:layout_width="match_parent"
  111. android:layout_height="wrap_content"
  112. app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
  113. tools:listitem="@layout/item_enterinfo"
  114. tools:visibility="gone" />
  115. </RelativeLayout>
  116. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
  117. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
  118. android:layout_width="match_parent"
  119. android:layout_height="wrap_content"
  120. android:layout_marginStart="17dp"
  121. android:layout_marginTop="@dimen/dp_10"
  122. android:layout_marginEnd="16dp"
  123. android:orientation="vertical"
  124. android:paddingStart="21dp"
  125. android:paddingTop="20dp"
  126. android:paddingEnd="16dp"
  127. android:paddingBottom="18dp"
  128. app:qmui_backgroundColor="@color/white"
  129. app:qmui_borderColor="@color/white"
  130. app:qmui_radius="@dimen/dp_4">
  131. <LinearLayout
  132. android:layout_width="match_parent"
  133. android:layout_height="wrap_content"
  134. android:layout_marginTop="@dimen/dp_10"
  135. android:gravity="center_vertical"
  136. android:orientation="horizontal">
  137. <TextView
  138. android:layout_width="wrap_content"
  139. android:layout_height="wrap_content"
  140. android:text="运单号"
  141. android:textColor="#767778"
  142. android:textSize="@dimen/sp_14" />
  143. <TextView
  144. android:layout_width="0dp"
  145. android:layout_height="wrap_content"
  146. android:layout_weight="1"
  147. android:gravity="right"
  148. android:text="@{vm.info.order.info_sn}"
  149. android:textColor="@color/text_title"
  150. android:textSize="@dimen/sp_13"
  151. tools:text="电话:1835399999"></TextView>
  152. </LinearLayout>
  153. <LinearLayout
  154. android:layout_width="match_parent"
  155. android:layout_height="wrap_content"
  156. android:layout_marginTop="12dp"
  157. android:gravity="center_vertical"
  158. android:orientation="horizontal"
  159. >
  160. <TextView
  161. android:layout_width="wrap_content"
  162. android:layout_height="wrap_content"
  163. android:text="货源状态"
  164. android:textColor="#767778"
  165. android:textSize="@dimen/sp_14" />
  166. <TextView
  167. android:layout_width="0dp"
  168. android:layout_height="wrap_content"
  169. android:layout_weight="1"
  170. android:gravity="right"
  171. tools:text="进行中"
  172. android:text="@{vm.getOrderStatus(vm.info.order.info_state)}"
  173. android:textColor="@color/text_title"
  174. android:textSize="@dimen/sp_13"
  175. ></TextView>
  176. </LinearLayout>
  177. <LinearLayout
  178. android:layout_width="match_parent"
  179. android:layout_height="wrap_content"
  180. android:layout_marginTop="@dimen/dp_14"
  181. android:gravity="center_vertical"
  182. android:orientation="horizontal">
  183. <TextView
  184. android:layout_width="wrap_content"
  185. android:layout_height="wrap_content"
  186. android:text="车型车长"
  187. android:textColor="#767778"
  188. android:textSize="@dimen/sp_14" />
  189. <TextView
  190. android:layout_width="0dp"
  191. android:layout_height="wrap_content"
  192. android:layout_weight="1"
  193. android:gravity="right"
  194. android:text="@{vm.info.order.type_info.type_name+@string/spot+vm.info.order.type_info.length+@string/rice}"
  195. android:textColor="@color/text_title"
  196. android:textSize="@dimen/sp_14"
  197. tools:text="电话:1835399999"></TextView>
  198. </LinearLayout>
  199. <LinearLayout
  200. android:layout_width="match_parent"
  201. android:layout_height="wrap_content"
  202. android:layout_marginTop="@dimen/dp_13"
  203. android:gravity="center_vertical"
  204. android:orientation="horizontal">
  205. <TextView
  206. android:layout_width="wrap_content"
  207. android:layout_height="wrap_content"
  208. android:text="备注"
  209. android:textColor="#767778"
  210. android:textSize="@dimen/sp_14" />
  211. <TextView
  212. android:layout_width="0dp"
  213. android:layout_height="wrap_content"
  214. android:layout_weight="1"
  215. android:gravity="right"
  216. android:text="@{vm.info.order.data}"
  217. android:textColor="@color/text_title"
  218. android:textSize="@dimen/sp_14"
  219. tools:text="电话:1835399999"></TextView>
  220. </LinearLayout>
  221. <LinearLayout
  222. android:layout_width="match_parent"
  223. android:layout_height="wrap_content"
  224. android:layout_marginTop="13dp"
  225. android:gravity="center_vertical"
  226. android:orientation="horizontal">
  227. <TextView
  228. android:layout_width="wrap_content"
  229. android:layout_height="wrap_content"
  230. android:text="纸质回单"
  231. android:textColor="#767778"
  232. android:textSize="@dimen/sp_14" />
  233. <TextView
  234. android:layout_width="0dp"
  235. android:layout_height="wrap_content"
  236. android:layout_weight="1"
  237. android:gravity="right"
  238. android:textColor="@color/text_title"
  239. android:textSize="@dimen/sp_14"
  240. tools:text="电话:1835399999"></TextView>
  241. </LinearLayout>
  242. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
  243. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
  244. android:layout_width="match_parent"
  245. android:layout_height="50dp"
  246. android:layout_marginStart="@dimen/dp_17"
  247. android:layout_marginTop="@dimen/dp_12"
  248. android:layout_marginEnd="@dimen/dp_16"
  249. android:layout_marginBottom="9dp"
  250. android:gravity="center"
  251. android:orientation="vertical"
  252. android:paddingStart="21dp"
  253. android:paddingEnd="16dp"
  254. app:layout_goneMarginTop="@dimen/dp_10"
  255. app:qmui_backgroundColor="@color/white"
  256. app:qmui_radius="@dimen/dp_4">
  257. <LinearLayout
  258. android:layout_width="match_parent"
  259. android:layout_height="wrap_content"
  260. android:gravity="center_vertical"
  261. android:orientation="horizontal">
  262. <TextView
  263. android:layout_width="wrap_content"
  264. android:layout_height="wrap_content"
  265. android:text="运费"
  266. android:textColor="#767778"
  267. android:textSize="@dimen/sp_14"></TextView>
  268. <TextView
  269. android:layout_width="0dp"
  270. android:layout_height="wrap_content"
  271. android:layout_weight="1"
  272. android:gravity="right"
  273. android:text="@{@string/total_img+vm.info.order.total}"
  274. android:textColor="@color/text_title"
  275. android:textSize="@dimen/sp_14"
  276. tools:text="¥30000"></TextView>
  277. </LinearLayout>
  278. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
  279. </LinearLayout>
  280. </ScrollView>
  281. <!-- 货主端按钮-->
  282. <LinearLayout
  283. android:layout_width="match_parent"
  284. android:layout_height="wrap_content"
  285. android:layout_marginTop="10dp"
  286. android:layout_marginBottom="@dimen/dp_10"
  287. android:orientation="horizontal"
  288. >
  289. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
  290. android:id="@+id/but_cancel"
  291. android:layout_width="120dp"
  292. android:layout_height="@dimen/dp_40"
  293. android:layout_marginStart="@dimen/dp_10"
  294. android:onClick="@{v->vm.setCancelOrder(vm.info.order.info_id)}"
  295. android:text="取消发布"
  296. android:textColor="@color/white"
  297. android:textSize="16sp"
  298. android:visibility="@{vm.isShowCancelBut(vm.info.order.info_state)?View.VISIBLE:View.GONE}"
  299. app:qmui_backgroundColor="#FF6029"
  300. app:qmui_borderColor="#FF6029"
  301. app:qmui_radius="25dp">
  302. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton>
  303. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
  304. android:id="@+id/but_comeback"
  305. android:layout_width="120dp"
  306. android:layout_height="@dimen/dp_40"
  307. android:layout_marginStart="@dimen/dp_15"
  308. android:onClick="@{v->vm.anotherOne()}"
  309. android:text="再来一单"
  310. android:textColor="@color/white"
  311. android:textSize="16dp"
  312. app:qmui_backgroundColor="#F3B23E"
  313. app:qmui_borderColor="#F3B23E"
  314. app:qmui_radius="25dp">
  315. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton>
  316. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
  317. android:id="@+id/but_pay"
  318. android:layout_width="120dp"
  319. android:layout_height="@dimen/dp_40"
  320. android:layout_marginStart="@dimen/dp_10"
  321. android:onClick="@{v->vm.showPayDialog(vm.info.order.info_id)}"
  322. android:text="去支付"
  323. android:textColor="@color/white"
  324. android:textSize="16sp"
  325. android:visibility="@{vm.isShowPaylBut(vm.info.order.info_state)?View.VISIBLE:View.GONE}"
  326. app:qmui_backgroundColor="#FF6029"
  327. app:qmui_borderColor="#FF6029"
  328. app:qmui_radius="25dp">
  329. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton>
  330. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
  331. android:id="@+id/but_driver"
  332. android:layout_width="120dp"
  333. android:layout_height="@dimen/dp_40"
  334. android:layout_marginStart="@dimen/dp_15"
  335. android:onClick="@{v->vm.goDriverList(vm.info.order.info_id)}"
  336. android:text="@{@string/receiving_vehicle+@string/left_bracket+vm.info.order.car_nums+@string/right_bracket}"
  337. android:textColor="@color/white"
  338. android:textSize="16sp"
  339. android:visibility="@{vm.isShowReceiveVehicle(vm.info.order.info_state)?View.VISIBLE:View.GONE}"
  340. app:qmui_backgroundColor="#F3AC3C"
  341. app:qmui_borderColor="#F3AC3C"
  342. tools:text="接单车辆"
  343. app:qmui_radius="25dp">
  344. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton>
  345. </LinearLayout>
  346. </LinearLayout>
  347. </layout>