<?xml version="1.0" encoding="utf-8"?>
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
style="@style/style_common_text"
|
android:text="手机号"
|
android:drawablePadding="10dp"
|
android:drawableStart="@mipmap/icon_login_phone"
|
app:layout_constraintTop_toTopOf="parent"
|
android:layout_margin="23dp"
|
android:id="@+id/tv_phone"/>
|
<EditText
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:layout_constraintTop_toBottomOf="@id/tv_phone"
|
android:layout_marginStart="23dp"
|
android:layout_marginEnd="23dp"
|
android:background="@null"
|
android:paddingTop="12dp"
|
android:paddingBottom="8dp"
|
android:hint="请输入有效手机号"
|
android:id="@+id/et_phone"
|
android:inputType="number"
|
android:maxLength="11"
|
style="@style/style_common_text"/>
|
<View
|
android:layout_width="0dp"
|
android:layout_height="1px"
|
android:background="@color/dividing_line_color"
|
app:layout_constraintStart_toStartOf="@id/et_phone"
|
app:layout_constraintEnd_toEndOf="@id/et_phone"
|
app:layout_constraintTop_toBottomOf="@id/et_phone"/>
|
<CheckedTextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
style="@style/style_common_text"
|
android:text="验证码"
|
android:checked="true"
|
android:drawablePadding="10dp"
|
android:drawableStart="@drawable/selector_ic_pwd_code"
|
app:layout_constraintTop_toBottomOf="@id/et_phone"
|
android:layout_margin="23dp"
|
android:id="@+id/tv_code_title"/>
|
<EditText
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:layout_constraintTop_toBottomOf="@id/tv_code_title"
|
android:layout_marginStart="23dp"
|
android:layout_marginEnd="23dp"
|
android:background="@null"
|
android:paddingTop="12dp"
|
android:paddingBottom="8dp"
|
android:hint="请输入验证码"
|
android:id="@+id/et_code"
|
android:inputType="number"
|
android:maxLength="4"
|
style="@style/style_common_text"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_code"
|
app:layout_constraintBaseline_toBaselineOf="@id/et_code"
|
app:layout_constraintEnd_toEndOf="@id/et_code"
|
android:text="获取验证码"
|
android:textColor="@color/colorPrimary"
|
android:textSize="14sp"
|
android:paddingTop="8dp"
|
android:paddingBottom="8dp"/>
|
<View
|
android:layout_width="0dp"
|
android:layout_height="1px"
|
android:background="@color/dividing_line_color"
|
app:layout_constraintStart_toStartOf="@id/et_phone"
|
app:layout_constraintEnd_toEndOf="@id/et_phone"
|
app:layout_constraintTop_toBottomOf="@id/et_code"/>
|
<CheckedTextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
style="@style/style_common_text"
|
android:text="密码"
|
android:drawablePadding="10dp"
|
android:drawableStart="@drawable/selector_ic_pwd_code"
|
app:layout_constraintTop_toBottomOf="@id/et_code"
|
android:layout_margin="23dp"
|
android:id="@+id/tv_pwd"/>
|
<EditText
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:layout_constraintTop_toBottomOf="@id/tv_pwd"
|
android:layout_marginStart="23dp"
|
android:layout_marginEnd="23dp"
|
android:background="@null"
|
android:paddingTop="12dp"
|
android:paddingBottom="8dp"
|
android:hint="请输入密码"
|
android:id="@+id/et_pwd"
|
android:inputType="textPassword"
|
android:maxLength="18"
|
style="@style/style_common_text"/>
|
<View
|
android:layout_width="0dp"
|
android:layout_height="1px"
|
android:background="@color/dividing_line_color"
|
app:layout_constraintStart_toStartOf="@id/et_phone"
|
app:layout_constraintEnd_toEndOf="@id/et_phone"
|
app:layout_constraintTop_toBottomOf="@id/et_pwd"/>
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_action"
|
app:layout_constraintTop_toBottomOf="@id/et_pwd"
|
android:layout_marginTop="50dp"
|
android:layout_marginHorizontal="14dp"
|
android:text="确定"
|
style="@style/style_tv_action"/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|