<?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:orientation="vertical"
|
android:padding="24dp">
|
|
<ImageButton
|
android:id="@+id/btnBack"
|
android:layout_width="48dp"
|
android:layout_height="48dp"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
android:src="@drawable/left_forward"
|
android:padding="12dp" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="24dp"
|
android:text="手机登录"
|
android:textSize="24sp"
|
android:textStyle="bold"
|
android:textColor="#333333" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="32dp"
|
android:orientation="vertical">
|
|
<EditText
|
android:id="@+id/etPhone"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@null"
|
android:hint="请输入手机号"
|
android:text="177625318565"
|
android:inputType="phone"
|
android:maxLength="11"
|
android:textSize="16sp"
|
android:padding="12dp"/>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#EEEEEE" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:layout_marginTop="16dp">
|
|
<EditText
|
android:id="@+id/etCode"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:background="@null"
|
android:hint="请输入验证码"
|
android:text="123456"
|
android:inputType="number"
|
android:maxLength="6"
|
android:textSize="16sp"
|
android:padding="12dp"/>
|
|
<TextView
|
android:id="@+id/tvSendCode"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:padding="12dp"
|
android:text="获取验证码"
|
android:textColor="#2196F3"/>
|
</LinearLayout>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#EEEEEE" />
|
</LinearLayout>
|
|
<Button
|
android:id="@+id/btnLogin"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="32dp"
|
android:backgroundTint="@color/cardview_dark_background"
|
android:text="登录"
|
android:textColor="#FFFFFF"
|
android:textSize="16sp"
|
android:padding="12dp"
|
app:cornerRadius="14dp"/>
|
</LinearLayout>
|