|
|
@@ -0,0 +1,97 @@
|
|
|
+<?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:orientation="vertical"
|
|
|
+ android:focusable="true"
|
|
|
+ android:focusableInTouchMode="true">
|
|
|
+ <!--启用深色模式之后,需要使用fitsSystemWindows来不让布局上滑-->
|
|
|
+
|
|
|
+ <include layout="@layout/view_toolbar" />
|
|
|
+ <!--阴影效果android:background="?android:attr/listDivider"-->
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/margin_default"
|
|
|
+ android:layout_marginEnd="@dimen/margin_default"
|
|
|
+ android:layout_marginTop="@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"
|
|
|
+ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
+ android:id="@+id/et_email"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textSize="@dimen/text_normal_s"
|
|
|
+ android:inputType="textEmailAddress"
|
|
|
+ android:maxLength="50"/>
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/margin_default"
|
|
|
+ android:layout_marginEnd="@dimen/margin_default"
|
|
|
+ android:layout_marginTop="@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"
|
|
|
+ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
+ android:id="@+id/et_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>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_forget"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="@dimen/margin_message"
|
|
|
+ android:layout_marginEnd="@dimen/margin_default"
|
|
|
+ android:text="忘记密码"
|
|
|
+ android:textColor="@color/gray_hint"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:textSize="@dimen/text_s"
|
|
|
+ android:background="?attr/selectableItemBackground"
|
|
|
+ android:layout_gravity="end"/>
|
|
|
+
|
|
|
+ <android.widget.Button
|
|
|
+ android:id="@+id/btn_login"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:minHeight="0dp"
|
|
|
+ android:layout_marginTop="@dimen/margin_message"
|
|
|
+ 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>
|