activity_modify_password.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout 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. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical"
  8. tools:ignore="MissingDefaultResource">
  9. <include
  10. android:id="@+id/toolbar_include"
  11. layout="@layout/common_toolbar_layout" />
  12. <TextView
  13. android:id="@+id/tv_phone"
  14. android:layout_width="wrap_content"
  15. android:layout_height="wrap_content"
  16. android:layout_marginLeft="12dp"
  17. android:layout_marginTop="15dp"
  18. android:text="--"
  19. android:textColor="@color/black"
  20. android:textSize="20sp" />
  21. <androidx.constraintlayout.widget.ConstraintLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:layout_marginTop="15dp"
  25. android:layout_marginStart="13dp"
  26. android:layout_marginEnd="13dp"
  27. android:background="@drawable/bg_white_10dp">
  28. <EditText
  29. android:textCursorDrawable="@drawable/shape_2dc7aa_1dp"
  30. android:id="@+id/et_password"
  31. android:layout_width="match_parent"
  32. android:layout_height="@dimen/dp_48"
  33. android:background="@null"
  34. android:gravity="center_vertical"
  35. android:hint="请输入6-20位密码"
  36. android:inputType="textPassword"
  37. android:paddingLeft="14dp"
  38. android:paddingRight="14dp"
  39. android:textColor="@color/color_1a1a1a"
  40. android:textColorHint="@color/color_999999"
  41. android:textSize="@dimen/sp_16"
  42. app:layout_constraintLeft_toLeftOf="parent"
  43. app:layout_constraintTop_toTopOf="parent" />
  44. <View
  45. android:id="@+id/view_line"
  46. android:layout_width="match_parent"
  47. android:layout_height="1px"
  48. android:layout_marginLeft="12dp"
  49. android:background="@color/divide_color_f0f0f0"
  50. app:layout_constraintLeft_toLeftOf="parent"
  51. app:layout_constraintTop_toBottomOf="@+id/et_password" />
  52. <EditText
  53. android:id="@+id/et_auth_code"
  54. android:layout_width="match_parent"
  55. android:layout_height="@dimen/dp_48"
  56. android:background="@null"
  57. android:gravity="center_vertical"
  58. android:hint="请输入验证码"
  59. android:inputType="number"
  60. android:maxLength="6"
  61. android:textCursorDrawable="@drawable/shape_2dc7aa_1dp"
  62. android:paddingLeft="14dp"
  63. android:paddingRight="14dp"
  64. android:textColor="@color/color_1a1a1a"
  65. android:textColorHint="@color/color_999999"
  66. android:textSize="@dimen/sp_16"
  67. app:layout_constraintLeft_toLeftOf="parent"
  68. app:layout_constraintTop_toBottomOf="@+id/view_line" />
  69. <TextView
  70. android:id="@+id/tv_get_auth_code"
  71. android:layout_width="wrap_content"
  72. android:layout_height="@dimen/dp_48"
  73. android:layout_marginRight="12dp"
  74. android:gravity="center"
  75. android:text="获取验证码"
  76. android:textColor="?attr/klx_main_color2"
  77. android:textSize="@dimen/sp_14"
  78. app:layout_constraintRight_toRightOf="parent"
  79. app:layout_constraintTop_toBottomOf="@+id/view_line" />
  80. </androidx.constraintlayout.widget.ConstraintLayout>
  81. <TextView
  82. android:id="@+id/tv_confirm"
  83. android:layout_width="match_parent"
  84. android:layout_height="44dp"
  85. android:layout_marginLeft="25dp"
  86. android:layout_marginTop="30dp"
  87. android:layout_marginRight="25dp"
  88. android:layout_marginBottom="48dp"
  89. android:background="?attr/klx_main_bt_background"
  90. android:gravity="center"
  91. android:text="确定"
  92. android:textStyle="bold"
  93. android:textColor="@color/white"
  94. android:textSize="@dimen/sp_18" />
  95. </LinearLayout>