fragment_mine.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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.MineVModel" />
  9. </data >
  10. <LinearLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="match_parent"
  13. android:orientation="vertical" >
  14. <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
  15. android:id="@+id/refresh_layout"
  16. android:layout_width="match_parent"
  17. android:layout_height="match_parent" >
  18. <androidx.constraintlayout.widget.ConstraintLayout
  19. android:layout_width="match_parent"
  20. android:layout_height="match_parent"
  21. android:orientation="vertical" >
  22. <RelativeLayout
  23. android:id="@+id/lay_title"
  24. android:layout_width="match_parent"
  25. android:layout_height="@dimen/title_bar_height"
  26. app:layout_constraintStart_toStartOf="parent"
  27. app:layout_constraintTop_toTopOf="parent" >
  28. <TextView
  29. android:id="@+id/tv_title"
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:layout_centerInParent="true"
  33. android:layout_marginTop="20dp"
  34. android:text="个人中心"
  35. android:textColor="@color/text_title"
  36. android:textSize="@dimen/sp_16"
  37. android:textStyle="bold" />
  38. <ImageView
  39. android:layout_width="25dp"
  40. android:layout_height="25dp"
  41. android:layout_alignParentEnd="true"
  42. android:layout_centerVertical="true"
  43. android:layout_marginEnd="@dimen/dp_10"
  44. android:src="@drawable/ic_to_wxchat" />
  45. </RelativeLayout >
  46. <androidx.constraintlayout.widget.ConstraintLayout
  47. android:id="@+id/lay_user_info"
  48. android:layout_width="match_parent"
  49. android:layout_height="106dp"
  50. android:paddingStart="@dimen/dp_10"
  51. android:paddingEnd="@dimen/dp_10"
  52. app:layout_constraintStart_toStartOf="parent"
  53. app:layout_constraintTop_toBottomOf="@id/lay_title" >
  54. <com.qmuiteam.qmui.widget.QMUIRadiusImageView
  55. android:id="@+id/img_user_avater"
  56. android:layout_width="55dp"
  57. android:layout_height="55dp"
  58. android:src="@drawable/ic_math"
  59. app:layout_constraintBottom_toBottomOf="parent"
  60. app:layout_constraintStart_toStartOf="parent"
  61. app:layout_constraintTop_toTopOf="parent"
  62. app:qmui_is_circle="true" />
  63. <TextView
  64. android:id="@+id/tv_user_name"
  65. android:layout_width="wrap_content"
  66. android:layout_height="wrap_content"
  67. android:layout_marginStart="@dimen/dp_10"
  68. android:layout_marginTop="10dp"
  69. app:layout_constraintStart_toEndOf="@id/img_user_avater"
  70. app:layout_constraintTop_toTopOf="@id/img_user_avater"
  71. tools:text="郑货主" />
  72. <TextView
  73. android:id="@+id/tv_user_mobile"
  74. android:layout_width="wrap_content"
  75. android:layout_height="wrap_content"
  76. android:layout_marginStart="@dimen/dp_10"
  77. android:layout_marginBottom="10dp"
  78. app:layout_constraintBottom_toBottomOf="@id/img_user_avater"
  79. app:layout_constraintStart_toEndOf="@id/img_user_avater"
  80. tools:text="18353965350" />
  81. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
  82. android:layout_width="72dp"
  83. android:layout_height="30dp"
  84. android:layout_marginEnd="@dimen/dp_10"
  85. android:text="未认证"
  86. android:textColor="#459AEA"
  87. app:layout_constraintBottom_toBottomOf="parent"
  88. app:layout_constraintEnd_toEndOf="parent"
  89. app:layout_constraintTop_toTopOf="parent"
  90. app:qmui_backgroundColor="#E8F1FB"
  91. app:qmui_borderColor="#459AEA"
  92. app:qmui_radius="@dimen/dp_4" />
  93. </androidx.constraintlayout.widget.ConstraintLayout >
  94. <com.qmuiteam.qmui.layout.QMUILinearLayout
  95. android:id="@+id/ll_center"
  96. android:layout_width="match_parent"
  97. android:layout_height="wrap_content"
  98. android:layout_marginStart="10dp"
  99. android:layout_marginTop="@dimen/dp_20"
  100. android:layout_marginEnd="10dp"
  101. android:background="@color/white"
  102. android:orientation="horizontal"
  103. android:paddingTop="15dp"
  104. android:paddingBottom="20dp"
  105. app:layout_constraintLeft_toLeftOf="parent"
  106. app:layout_constraintRight_toRightOf="parent"
  107. app:layout_constraintTop_toBottomOf="@id/lay_user_info" >
  108. <LinearLayout
  109. android:layout_width="0dp"
  110. android:layout_height="wrap_content"
  111. android:layout_weight="1"
  112. android:gravity="center"
  113. android:orientation="vertical" >
  114. <ImageView
  115. android:layout_width="50dp"
  116. android:layout_height="50dp"
  117. android:src="@drawable/ic_math" />
  118. <TextView
  119. android:layout_width="wrap_content"
  120. android:layout_height="wrap_content"
  121. android:layout_marginTop="6dp"
  122. android:text="@string/my_account" />
  123. </LinearLayout >
  124. <LinearLayout
  125. android:layout_width="0dp"
  126. android:layout_height="wrap_content"
  127. android:layout_weight="1"
  128. android:gravity="center"
  129. android:orientation="vertical" >
  130. <ImageView
  131. android:layout_width="50dp"
  132. android:layout_height="50dp"
  133. android:src="@drawable/ic_math" />
  134. <TextView
  135. android:layout_width="wrap_content"
  136. android:layout_height="wrap_content"
  137. android:layout_marginTop="6dp"
  138. android:text="@string/my_collection" />
  139. </LinearLayout >
  140. <LinearLayout
  141. android:layout_width="0dp"
  142. android:layout_height="wrap_content"
  143. android:layout_weight="1"
  144. android:gravity="center"
  145. android:orientation="vertical" >
  146. <ImageView
  147. android:layout_width="50dp"
  148. android:layout_height="50dp"
  149. android:src="@drawable/ic_math" />
  150. <TextView
  151. android:layout_width="wrap_content"
  152. android:layout_height="wrap_content"
  153. android:layout_marginTop="6dp"
  154. android:text="@string/invoice_manage" />
  155. </LinearLayout >
  156. <LinearLayout
  157. android:layout_width="0dp"
  158. android:layout_height="wrap_content"
  159. android:layout_weight="1"
  160. android:gravity="center"
  161. android:orientation="vertical" >
  162. <ImageView
  163. android:layout_width="50dp"
  164. android:layout_height="50dp"
  165. android:src="@drawable/ic_math" />
  166. <TextView
  167. android:layout_width="wrap_content"
  168. android:layout_height="wrap_content"
  169. android:layout_marginTop="6dp"
  170. android:text="@string/connect_service" />
  171. </LinearLayout >
  172. </com.qmuiteam.qmui.layout.QMUILinearLayout >
  173. <LinearLayout
  174. android:layout_width="match_parent"
  175. android:layout_height="wrap_content"
  176. android:layout_marginTop="10dp"
  177. android:orientation="vertical"
  178. app:layout_constraintLeft_toLeftOf="parent"
  179. app:layout_constraintRight_toRightOf="parent"
  180. app:layout_constraintTop_toBottomOf="@id/ll_center" >
  181. <LinearLayout
  182. style="@style/mine_list"
  183. android:layout_marginTop="4dp" >
  184. <ImageView
  185. style="@style/mine_img"
  186. android:layout_width="wrap_content"
  187. android:src="@drawable/mine_update" />
  188. <TextView
  189. style="@style/mine_text"
  190. android:text="我的评价" />
  191. <ImageView
  192. style="@style/mine_arrow_right"
  193. android:src="@drawable/mine_right" />
  194. </LinearLayout >
  195. <View
  196. android:layout_width="match_parent"
  197. android:layout_height="1dp"
  198. android:background="#DDDDDD"
  199. android:visibility="visible" >
  200. </View >
  201. <LinearLayout style="@style/mine_list" >
  202. <ImageView
  203. style="@style/mine_img"
  204. android:layout_width="wrap_content"
  205. android:src="@drawable/mine_update" />
  206. <TextView
  207. style="@style/mine_text"
  208. android:text="地址薄" />
  209. <ImageView
  210. style="@style/mine_arrow_right"
  211. android:src="@drawable/mine_right" />
  212. </LinearLayout >
  213. <View
  214. android:layout_width="match_parent"
  215. android:layout_height="1dp"
  216. android:background="#DDDDDD"
  217. android:visibility="visible" >
  218. </View >
  219. <LinearLayout style="@style/mine_list" >
  220. <ImageView
  221. style="@style/mine_img"
  222. android:layout_width="wrap_content"
  223. android:src="@drawable/mine_update" />
  224. <TextView
  225. style="@style/mine_text"
  226. android:text="设置" />
  227. <ImageView
  228. style="@style/mine_arrow_right"
  229. android:src="@drawable/mine_right" />
  230. </LinearLayout >
  231. <View
  232. android:layout_width="match_parent"
  233. android:layout_height="1dp"
  234. android:background="#DDDDDD"
  235. android:visibility="visible" >
  236. </View >
  237. <LinearLayout
  238. style="@style/mine_list"
  239. android:onClick="@{v->vm.checkUpdates()}" >
  240. <ImageView
  241. style="@style/mine_img"
  242. android:layout_width="wrap_content"
  243. android:src="@drawable/mine_update" />
  244. <TextView
  245. style="@style/mine_text"
  246. android:text="检查更新" />
  247. <ImageView
  248. style="@style/mine_arrow_right"
  249. android:src="@drawable/mine_right" />
  250. </LinearLayout >
  251. <View
  252. android:layout_width="match_parent"
  253. android:layout_height="1dp"
  254. android:background="#DDDDDD"
  255. android:visibility="visible" />
  256. </LinearLayout >
  257. <TextView
  258. style="@style/mine_text"
  259. android:layout_gravity="center"
  260. android:layout_marginBottom="@dimen/dp_40"
  261. android:onClick="@{v->vm.callPhone()}"
  262. android:text="平台联系方式:1835397689"
  263. app:layout_constraintBottom_toBottomOf="parent"
  264. app:layout_constraintEnd_toEndOf="parent"
  265. app:layout_constraintStart_toStartOf="parent" />
  266. </androidx.constraintlayout.widget.ConstraintLayout >
  267. </androidx.swiperefreshlayout.widget.SwipeRefreshLayout >
  268. </LinearLayout >
  269. </layout >