|
@@ -0,0 +1,143 @@
|
|
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:background="@color/colorPrimary"
|
|
|
|
|
+ android:fitsSystemWindows="true"
|
|
|
|
|
+ android:focusable="true"
|
|
|
|
|
+ android:focusableInTouchMode="true"
|
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
+ <!--启用深色模式之后,需要使用fitsSystemWindows来不让布局上滑-->
|
|
|
|
|
+
|
|
|
|
|
+ <include layout="@layout/view_toolbar" />
|
|
|
|
|
+ <!--阴影效果android:background="?android:attr/listDivider"-->
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
+ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginStart="@dimen/margin_default"
|
|
|
|
|
+ android:layout_marginTop="@dimen/margin_default"
|
|
|
|
|
+ android:layout_marginEnd="@dimen/margin_default"
|
|
|
|
|
+ android:hint="请输入邮箱"
|
|
|
|
|
+ app:boxBackgroundMode="outline"
|
|
|
|
|
+ app:boxCornerRadiusBottomEnd="4dp"
|
|
|
|
|
+ app:boxCornerRadiusBottomStart="4dp"
|
|
|
|
|
+ app:boxCornerRadiusTopEnd="4dp"
|
|
|
|
|
+ app:boxCornerRadiusTopStart="4dp"
|
|
|
|
|
+ app:boxStrokeWidth="@dimen/width_stroke"
|
|
|
|
|
+ app:boxStrokeWidthFocused="@dimen/width_stroke">
|
|
|
|
|
+
|
|
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
|
|
+ android:id="@+id/et_email"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:inputType="textEmailAddress"
|
|
|
|
|
+ android:maxLength="50"
|
|
|
|
|
+ android:paddingEnd="90dp"
|
|
|
|
|
+ android:textSize="@dimen/text_normal_s" />
|
|
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <FrameLayout
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginStart="@dimen/margin_default"
|
|
|
|
|
+ android:layout_marginTop="@dimen/margin_default"
|
|
|
|
|
+ android:layout_marginEnd="@dimen/margin_default">
|
|
|
|
|
+
|
|
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
+ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:hint="邮箱验证码"
|
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
|
+ app:boxBackgroundMode="outline"
|
|
|
|
|
+ app:boxCornerRadiusBottomEnd="4dp"
|
|
|
|
|
+ app:boxCornerRadiusBottomStart="4dp"
|
|
|
|
|
+ app:boxCornerRadiusTopEnd="4dp"
|
|
|
|
|
+ app:boxCornerRadiusTopStart="4dp"
|
|
|
|
|
+ app:boxStrokeWidth="@dimen/width_stroke"
|
|
|
|
|
+ app:boxStrokeWidthFocused="@dimen/width_stroke">
|
|
|
|
|
+
|
|
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
|
|
+ android:id="@+id/et_code"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:digits="0123456789"
|
|
|
|
|
+ android:inputType="number"
|
|
|
|
|
+ android:maxLength="6"
|
|
|
|
|
+ android:textSize="@dimen/text_normal_s" />
|
|
|
|
|
+
|
|
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <!--去除按钮阴影style="?android:attr/borderlessButtonStyle"-->
|
|
|
|
|
+ <!--用android.widget.Button代替Button就不会有Material风格了,当前style下Button的background无效-->
|
|
|
|
|
+ <android.widget.Button
|
|
|
|
|
+ android:id="@+id/btn_get_code"
|
|
|
|
|
+ style="?android:attr/borderlessButtonStyle"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_gravity="center_vertical|end"
|
|
|
|
|
+ android:elevation="0dp"
|
|
|
|
|
+ android:layout_marginTop="@dimen/margin_sss"
|
|
|
|
|
+ android:layout_marginEnd="@dimen/margin_ss"
|
|
|
|
|
+ android:minWidth="0dp"
|
|
|
|
|
+ android:minHeight="0dp"
|
|
|
|
|
+ android:paddingStart="@dimen/margin_s"
|
|
|
|
|
+ android:paddingTop="@dimen/margin_ss"
|
|
|
|
|
+ android:paddingEnd="@dimen/margin_s"
|
|
|
|
|
+ android:paddingBottom="@dimen/margin_ss"
|
|
|
|
|
+ android:text="获取验证码"
|
|
|
|
|
+ android:textColor="@color/green_logo"
|
|
|
|
|
+ android:textSize="@dimen/text_s"
|
|
|
|
|
+ android:textStyle="bold"
|
|
|
|
|
+ android:background="?selectableItemBackground" />
|
|
|
|
|
+ </FrameLayout>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
+ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginStart="@dimen/margin_default"
|
|
|
|
|
+ android:layout_marginTop="@dimen/margin_default"
|
|
|
|
|
+ android:layout_marginEnd="@dimen/margin_default"
|
|
|
|
|
+ android:hint="请输入新密码"
|
|
|
|
|
+ app:boxBackgroundMode="outline"
|
|
|
|
|
+ app:boxCornerRadiusBottomEnd="4dp"
|
|
|
|
|
+ app:boxCornerRadiusBottomStart="4dp"
|
|
|
|
|
+ app:boxCornerRadiusTopEnd="4dp"
|
|
|
|
|
+ app:boxCornerRadiusTopStart="4dp"
|
|
|
|
|
+ app:boxStrokeWidth="@dimen/width_stroke"
|
|
|
|
|
+ app:boxStrokeWidthFocused="@dimen/width_stroke">
|
|
|
|
|
+
|
|
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
|
|
+ android:id="@+id/et_new_password"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:inputType="textPassword"
|
|
|
|
|
+ android:maxLength="20"
|
|
|
|
|
+ android:textSize="@dimen/text_normal_s" />
|
|
|
|
|
+
|
|
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <android.widget.Button
|
|
|
|
|
+ android:id="@+id/btn_reset_password"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:minHeight="0dp"
|
|
|
|
|
+ android:layout_marginTop="@dimen/margin_default"
|
|
|
|
|
+ android:layout_marginStart="@dimen/margin_default"
|
|
|
|
|
+ android:layout_marginEnd="@dimen/margin_default"
|
|
|
|
|
+ android:paddingTop="@dimen/padding_full_width"
|
|
|
|
|
+ android:paddingBottom="@dimen/padding_full_width"
|
|
|
|
|
+ android:text="立即重设密码"
|
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
|
+ android:textStyle="bold"
|
|
|
|
|
+ android:background="@drawable/selector_btn"
|
|
|
|
|
+ style="?android:attr/borderlessButtonStyle"/>
|
|
|
|
|
+</LinearLayout>
|