item_enterinfo.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout xmlns:app="http://schemas.android.com/apk/res-auto"
  3. xmlns:android="http://schemas.android.com/apk/res/android" >
  4. <data >
  5. <variable
  6. name="item"
  7. type="com.quansu.heifengwuliu.model.DataInfoBean.OrderBean.ReceiveBean" />
  8. </data >
  9. <LinearLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. xmlns:tools="http://schemas.android.com/tools"
  13. android:orientation="vertical">
  14. <LinearLayout
  15. android:layout_width="match_parent"
  16. android:orientation="horizontal"
  17. android:layout_marginTop="@dimen/dp_10"
  18. android:gravity="center_vertical"
  19. android:layout_height="wrap_content">
  20. <ImageView
  21. android:layout_width="25dp"
  22. android:layout_height="25dp"
  23. android:src="@drawable/ic_time"
  24. android:layout_marginEnd="@dimen/dp_10"
  25. />
  26. <TextView
  27. android:layout_width="match_parent"
  28. android:textSize="@dimen/sp_15"
  29. android:textColor="@color/text_title"
  30. android:text="@{item.time}"
  31. tools:text="08-01-1"
  32. android:layout_height="wrap_content">
  33. </TextView>
  34. </LinearLayout>
  35. <LinearLayout
  36. android:layout_width="match_parent"
  37. android:orientation="horizontal"
  38. android:layout_marginTop="@dimen/dp_10"
  39. android:gravity="center_vertical"
  40. android:layout_height="wrap_content">
  41. <ImageView
  42. android:layout_width="25dp"
  43. android:layout_height="25dp"
  44. android:src="@drawable/ic_enter"
  45. android:layout_marginEnd="@dimen/dp_10"
  46. />
  47. <TextView
  48. android:layout_width="match_parent"
  49. android:textSize="@dimen/sp_15"
  50. android:textColor="@color/text_title"
  51. android:text="@{item.province.name+item.city.name+item.area.name}"
  52. android:layout_height="wrap_content">
  53. </TextView>
  54. </LinearLayout>
  55. <LinearLayout
  56. android:layout_width="match_parent"
  57. android:orientation="horizontal"
  58. android:gravity="center_vertical"
  59. android:paddingStart="35dp"
  60. android:layout_marginTop="@dimen/dp_10"
  61. android:layout_marginBottom="@dimen/dp_5"
  62. android:layout_height="wrap_content">
  63. <TextView
  64. android:layout_width="wrap_content"
  65. android:textSize="@dimen/sp_15"
  66. android:textColor="@color/text_title"
  67. android:text="联系人:"
  68. android:layout_height="wrap_content">
  69. </TextView>
  70. <TextView
  71. android:layout_width="wrap_content"
  72. android:textSize="@dimen/sp_15"
  73. android:textColor="@color/text_title"
  74. android:text="@{item.name}"
  75. android:layout_height="wrap_content">
  76. </TextView>
  77. <TextView
  78. android:layout_width="0dp"
  79. android:layout_weight="1"
  80. android:gravity="right"
  81. android:textSize="@dimen/sp_15"
  82. android:textColor="@color/text_title"
  83. android:text="电话:"
  84. android:layout_height="wrap_content">
  85. </TextView>
  86. <TextView
  87. android:layout_width="wrap_content"
  88. android:textSize="@dimen/sp_15"
  89. android:textColor="@color/text_title"
  90. android:text="@{item.mobile}"
  91. android:layout_height="wrap_content">
  92. </TextView>
  93. </LinearLayout>
  94. </LinearLayout>
  95. </layout >