item_enterinfo.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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. <data>
  5. <import type="android.view.View" />
  6. <variable
  7. name="position"
  8. type="Integer" />
  9. <variable
  10. name="item"
  11. type="com.quansu.heifengwuliu.model.DataInfoBean.OrderBean.ReceiveBean" />
  12. </data>
  13. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
  14. xmlns:tools="http://schemas.android.com/tools"
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:layout_marginTop="9dp"
  18. android:paddingTop="10dp"
  19. android:paddingBottom="10dp"
  20. android:paddingLeft="5dp"
  21. app:qmui_borderColor="#E3E4E5"
  22. app:qmui_backgroundColor="@color/white"
  23. app:qmui_borderWidth="@dimen/dp_1"
  24. app:qmui_radius="@dimen/dp_10"
  25. android:orientation="vertical">
  26. <LinearLayout
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:gravity="center_vertical"
  30. android:orientation="horizontal">
  31. <ImageView
  32. android:layout_width="19dp"
  33. android:layout_height="19dp"
  34. android:layout_marginEnd="8dp"
  35. android:src="@drawable/ic_time" />
  36. <TextView
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:text="@{item.time}"
  40. android:textColor="@color/text_title"
  41. android:textSize="@dimen/sp_14"
  42. tools:text="08-01-1"></TextView>
  43. </LinearLayout>
  44. <LinearLayout
  45. android:layout_width="match_parent"
  46. android:layout_height="wrap_content"
  47. android:layout_marginTop="14dp"
  48. android:gravity="center_vertical"
  49. android:orientation="horizontal">
  50. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
  51. android:layout_width="26dp"
  52. android:layout_height="26dp"
  53. android:layout_marginEnd="6dp"
  54. android:gravity="center"
  55. app:qmui_backgroundColor="#ED702D"
  56. app:qmui_borderColor="#ED702D"
  57. app:qmui_radius="25dp">
  58. <TextView
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:text="@{@string/discharge+(position+1)}"
  62. android:textColor="@color/white"
  63. android:textSize="@dimen/sp_14" />
  64. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
  65. <TextView
  66. android:layout_width="match_parent"
  67. android:layout_height="wrap_content"
  68. android:text="@{item.province.name+item.city.name+item.area.name}"
  69. android:textColor="@color/text_title"
  70. android:textSize="@dimen/sp_15"
  71. android:textStyle="bold"
  72. tools:text="山东省 临沂市 河东区 香港路999号"></TextView>
  73. </LinearLayout>
  74. <LinearLayout
  75. android:layout_width="match_parent"
  76. android:layout_height="wrap_content"
  77. android:layout_marginTop="8dp"
  78. android:layout_marginBottom="14dp"
  79. android:gravity="center_vertical"
  80. android:orientation="horizontal"
  81. android:paddingStart="31dp">
  82. <LinearLayout
  83. android:layout_width="0dp"
  84. android:layout_height="wrap_content"
  85. android:layout_weight="1">
  86. <TextView
  87. android:layout_width="wrap_content"
  88. android:layout_height="wrap_content"
  89. android:text="联系人:"
  90. android:textColor="#636465"
  91. android:textSize="@dimen/sp_13" />
  92. <TextView
  93. android:layout_width="wrap_content"
  94. android:layout_height="wrap_content"
  95. android:text="@{item.name}"
  96. android:textColor="#636465"
  97. android:textSize="@dimen/sp_13" />
  98. </LinearLayout>
  99. <LinearLayout
  100. android:layout_width="0dp"
  101. android:layout_height="wrap_content"
  102. android:layout_weight="1">
  103. <TextView
  104. android:layout_width="wrap_content"
  105. android:layout_height="wrap_content"
  106. android:text="电话:"
  107. android:textColor="#636465"
  108. android:textSize="@dimen/sp_13" />
  109. <TextView
  110. android:layout_width="wrap_content"
  111. android:layout_height="wrap_content"
  112. android:text="@{item.mobile}"
  113. android:textColor="#636465"
  114. android:textSize="@dimen/sp_13" />
  115. </LinearLayout>
  116. </LinearLayout>
  117. <LinearLayout
  118. android:layout_width="match_parent"
  119. android:layout_height="wrap_content"
  120. android:orientation="vertical"
  121. >
  122. <LinearLayout
  123. android:layout_width="match_parent"
  124. android:layout_height="wrap_content"
  125. android:gravity="center_vertical"
  126. android:orientation="horizontal"
  127. android:paddingStart="31dp">
  128. <TextView
  129. android:layout_width="@dimen/dp_80"
  130. android:layout_height="wrap_content"
  131. android:text="货物信息:"
  132. android:textColor="@color/text_title"
  133. android:textSize="@dimen/sp_14"></TextView>
  134. <TextView
  135. android:layout_width="0dp"
  136. android:layout_height="wrap_content"
  137. android:layout_weight="1"
  138. android:text="@{item.goods+@string/spot+item.nums+item.nums_type.name}"
  139. android:textColor="@color/text_title"
  140. android:textSize="@dimen/sp_14"
  141. tools:text="水泥 35吨"></TextView>
  142. </LinearLayout>
  143. </LinearLayout>
  144. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
  145. </layout>