activity_password.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  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. <import type="com.quansu.heifengwuliu.utils.MUiSwitch" />
  8. <variable
  9. name="vm"
  10. type="com.quansu.heifengwuliu.vmodel.PasswordVModel" />
  11. </data>
  12. <LinearLayout
  13. android:name="com.ysnows.login.activity.LoginActivity"
  14. android:layout_width="match_parent"
  15. android:layout_height="match_parent"
  16. android:background="@color/color_bg"
  17. android:fitsSystemWindows="true"
  18. android:orientation="vertical"
  19. tools:context="com.quansu.heifengwuliu.activity.LoginActivity">
  20. <LinearLayout
  21. android:layout_width="match_parent"
  22. android:layout_height="match_parent"
  23. android:orientation="vertical"
  24. android:visibility="@{vm.type==1?View.VISIBLE:View.GONE}"
  25. tools:visibility="gone">
  26. <LinearLayout
  27. android:layout_width="match_parent"
  28. android:layout_height="43dp"
  29. android:layout_marginTop="12dp"
  30. android:background="@color/white"
  31. android:gravity="center_vertical"
  32. android:orientation="horizontal"
  33. android:paddingStart="35dp"
  34. android:paddingEnd="@dimen/dp_14"
  35. android:visibility="@{vm.isShow?View.VISIBLE :View.GONE}">
  36. <TextView
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_marginEnd="18dp"
  40. android:text="原密码"
  41. android:textColor="@color/text_title"
  42. android:textSize="14sp" />
  43. <com.ysnows.base.widget.DelEditText
  44. android:id="@+id/edt_old_pwd"
  45. android:layout_width="match_parent"
  46. android:layout_height="match_parent"
  47. android:background="@null"
  48. android:hint="@string/please_input_old_pwd"
  49. android:inputType="textPassword"
  50. android:text="@={vm.oldpassWord}"
  51. android:textColor="@color/text_title"
  52. android:textColorHint="#979899"
  53. android:textSize="@dimen/sp_14" />
  54. </LinearLayout>
  55. <View
  56. android:layout_width="match_parent"
  57. android:layout_height="1dp"
  58. android:background="#F3F4F5"
  59. android:visibility="@{vm.isShow?View.VISIBLE :View.GONE}" />
  60. <LinearLayout
  61. android:layout_width="match_parent"
  62. android:layout_height="43dp"
  63. android:background="@color/white"
  64. android:gravity="center_vertical"
  65. android:orientation="horizontal"
  66. android:paddingStart="35dp"
  67. android:paddingEnd="@dimen/dp_14">
  68. <TextView
  69. android:layout_width="wrap_content"
  70. android:layout_height="wrap_content"
  71. android:layout_marginEnd="18dp"
  72. android:text="原密码"
  73. android:textColor="@color/text_title"
  74. android:textSize="14sp" />
  75. <com.ysnows.base.widget.DelEditText
  76. android:id="@+id/edt_new_pwd"
  77. android:layout_width="match_parent"
  78. android:layout_height="match_parent"
  79. android:background="@null"
  80. android:hint="@string/please_input_new_pwd"
  81. android:inputType="textPassword"
  82. android:text="@={vm.passWord}"
  83. android:textColor="@color/text_title"
  84. android:textColorHint="#979899"
  85. android:textSize="@dimen/sp_14" />
  86. </LinearLayout>
  87. <View
  88. android:layout_width="match_parent"
  89. android:layout_height="1dp"
  90. android:background="#F3F4F5" />
  91. <LinearLayout
  92. android:layout_width="match_parent"
  93. android:layout_height="43dp"
  94. android:background="@color/white"
  95. android:gravity="center_vertical"
  96. android:orientation="horizontal"
  97. android:paddingStart="35dp"
  98. android:paddingEnd="@dimen/dp_14">
  99. <TextView
  100. android:layout_width="wrap_content"
  101. android:layout_height="wrap_content"
  102. android:layout_marginEnd="18dp"
  103. android:text="原密码"
  104. android:textColor="@color/text_title"
  105. android:textSize="14sp" />
  106. <com.ysnows.base.widget.DelEditText
  107. android:id="@+id/edt_new_pwd_to"
  108. android:layout_width="match_parent"
  109. android:layout_height="match_parent"
  110. android:background="@null"
  111. android:hint="@string/please_input_new_pwd_twice"
  112. android:inputType="textPassword"
  113. android:text="@={vm.passWordTo}"
  114. android:textColor="@color/text_title"
  115. android:textColorHint="#979899"
  116. android:textSize="@dimen/sp_14" />
  117. </LinearLayout>
  118. <View
  119. android:layout_width="match_parent"
  120. android:layout_height="0dp"
  121. android:layout_weight="1">
  122. </View>
  123. <FrameLayout
  124. android:layout_width="match_parent"
  125. android:layout_height="wrap_content"
  126. android:layout_marginStart="16dp"
  127. android:layout_marginTop="13dp"
  128. android:layout_marginEnd="@dimen/dp_16"
  129. android:onClick="@{v->vm.toSubmit()}">
  130. <ImageView
  131. android:layout_width="match_parent"
  132. android:layout_height="106dp"
  133. android:src="@drawable/ic_details_grab" />
  134. <TextView
  135. android:layout_width="wrap_content"
  136. android:layout_height="wrap_content"
  137. android:layout_gravity="center"
  138. android:text="@string/submit"
  139. android:textColor="@color/white"
  140. android:textSize="16sp">
  141. </TextView>
  142. </FrameLayout>
  143. </LinearLayout>
  144. <!-- 支付密码-->
  145. <LinearLayout
  146. android:layout_width="match_parent"
  147. android:layout_height="match_parent"
  148. android:orientation="vertical"
  149. android:visibility="@{vm.type==2?View.VISIBLE:View.GONE}"
  150. tools:visibility="gone">
  151. <LinearLayout
  152. android:layout_width="match_parent"
  153. android:layout_height="wrap_content"
  154. android:layout_marginStart="35dp"
  155. android:layout_marginTop="25dp"
  156. android:layout_marginEnd="35dp"
  157. android:gravity="center_vertical"
  158. android:orientation="horizontal"
  159. android:visibility="@{vm.isPayShow?View.VISIBLE :View.GONE}">
  160. <TextView
  161. android:layout_width="wrap_content"
  162. android:layout_height="wrap_content"
  163. android:text="原支付密码:"
  164. android:textColor="@color/text_title"
  165. android:textSize="@dimen/sp_14">
  166. </TextView>
  167. <com.quansu.heifengwuliu.view.PasswordView
  168. android:id="@+id/ppet_old_password"
  169. android:layout_width="match_parent"
  170. android:layout_height="45dp"
  171. app:cipherEnable="true"
  172. app:passwordLength="6"
  173. app:smode="rect">
  174. </com.quansu.heifengwuliu.view.PasswordView>
  175. </LinearLayout>
  176. <LinearLayout
  177. android:layout_width="match_parent"
  178. android:layout_height="wrap_content"
  179. android:layout_marginStart="35dp"
  180. android:layout_marginTop="25dp"
  181. android:layout_marginEnd="35dp"
  182. android:gravity="center_vertical"
  183. android:orientation="horizontal">
  184. <TextView
  185. android:layout_width="wrap_content"
  186. android:layout_height="wrap_content"
  187. android:text="新支付密码:"
  188. android:textColor="@color/text_title"
  189. android:textSize="@dimen/sp_14">
  190. </TextView>
  191. <com.quansu.heifengwuliu.view.PasswordView
  192. android:id="@+id/ppet_new_password"
  193. android:layout_width="match_parent"
  194. android:layout_height="45dp"
  195. app:cipherEnable="true"
  196. app:passwordLength="6"
  197. app:smode="rect">
  198. </com.quansu.heifengwuliu.view.PasswordView>
  199. </LinearLayout>
  200. <View
  201. android:layout_width="match_parent"
  202. android:layout_height="0dp"
  203. android:layout_weight="1">
  204. </View>
  205. <FrameLayout
  206. android:id="@+id/fl_pay_submit"
  207. android:layout_width="match_parent"
  208. android:layout_height="wrap_content"
  209. android:layout_marginStart="16dp"
  210. android:layout_marginTop="13dp"
  211. android:layout_marginEnd="@dimen/dp_16">
  212. <ImageView
  213. android:layout_width="match_parent"
  214. android:layout_height="106dp"
  215. android:src="@drawable/ic_details_grab" />
  216. <TextView
  217. android:layout_width="wrap_content"
  218. android:layout_height="wrap_content"
  219. android:layout_gravity="center"
  220. android:text="@string/submit"
  221. android:textColor="@color/white"
  222. android:textSize="16sp">
  223. </TextView>
  224. </FrameLayout>
  225. </LinearLayout>
  226. <LinearLayout
  227. android:layout_width="match_parent"
  228. android:layout_height="match_parent"
  229. android:background="@color/color_bg"
  230. android:orientation="vertical"
  231. android:visibility="@{vm.type==3?View.VISIBLE:View.GONE}">
  232. <LinearLayout
  233. android:layout_width="match_parent"
  234. android:layout_height="44dp"
  235. android:layout_marginTop="12dp"
  236. android:background="@color/white"
  237. android:gravity="center_vertical"
  238. android:orientation="horizontal"
  239. android:paddingStart="22dp"
  240. android:paddingEnd="17dp">
  241. <TextView
  242. android:layout_width="0dp"
  243. android:layout_height="wrap_content"
  244. android:layout_weight="1"
  245. android:text="个人头像"
  246. android:textColor="@color/text_title"
  247. android:textSize="14sp" />
  248. <com.qmuiteam.qmui.widget.QMUIRadiusImageView
  249. android:id="@+id/img_user_avater"
  250. android:layout_width="34dp"
  251. android:layout_height="34dp"
  252. android:src="@drawable/ic_default_avatar"
  253. app:qmui_border_color="@color/white"
  254. app:url="@{vm.avatar}"
  255. android:onClick="@{v->vm.choseImg()}"
  256. app:qmui_is_circle="true" />
  257. <ImageView
  258. style="@style/mine_arrow_right"
  259. android:layout_marginStart="8dp"
  260. android:src="@drawable/mine_right" />
  261. </LinearLayout>
  262. <View
  263. android:layout_width="match_parent"
  264. android:layout_height="1dp"
  265. android:background="#EEEFF0" />
  266. <LinearLayout
  267. android:layout_width="match_parent"
  268. android:layout_height="44dp"
  269. android:background="@color/white"
  270. android:gravity="center_vertical"
  271. android:orientation="horizontal"
  272. android:paddingStart="23dp"
  273. android:paddingEnd="33dp">
  274. <TextView
  275. android:layout_width="wrap_content"
  276. android:layout_height="wrap_content"
  277. android:layout_marginEnd="18dp"
  278. android:text="姓名"
  279. android:textColor="@color/text_title"
  280. android:textSize="14sp" />
  281. <com.ysnows.base.widget.DelEditText
  282. android:id="@+id/edt_name"
  283. android:layout_width="match_parent"
  284. android:layout_height="match_parent"
  285. android:background="@null"
  286. android:gravity="right|center_vertical"
  287. android:hint="请输入姓名"
  288. android:text="@={vm.name}"
  289. android:textColor="@color/text_title"
  290. android:textColorHint="#979899"
  291. android:textSize="@dimen/sp_14" />
  292. </LinearLayout>
  293. <FrameLayout
  294. android:layout_width="match_parent"
  295. android:layout_height="wrap_content"
  296. android:layout_marginStart="16dp"
  297. android:layout_marginTop="25dp"
  298. android:layout_marginEnd="@dimen/dp_16"
  299. android:onClick="@{v->vm.toSaveInfo()}">
  300. <ImageView
  301. android:layout_width="match_parent"
  302. android:layout_height="106dp"
  303. android:src="@drawable/ic_details_grab" />
  304. <TextView
  305. android:layout_width="wrap_content"
  306. android:layout_height="wrap_content"
  307. android:layout_gravity="center"
  308. android:text="完成"
  309. android:textColor="@color/white"
  310. android:textSize="16sp">
  311. </TextView>
  312. </FrameLayout>
  313. </LinearLayout>
  314. </LinearLayout>
  315. </layout>