activity_sms_login.xml 7.96 KB
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@mipmap/bg"
    tools:ignore="HardcodedText,SpUsage,ContentDescription,Autofill">


    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="30dp"
        android:layout_marginTop="64dp"
        android:text="登录"
        android:textColor="#333333"
        android:textSize="25dp"
        android:textStyle="bold"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <TextView
        android:id="@+id/tvEntrance"
        android:text="教师入口"
        android:textSize="13sp"
        android:textColor="#666"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="72dp"
        android:layout_marginEnd="30dp"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintEnd_toEndOf="parent"/>

    <View
        android:id="@+id/view_1"
        android:layout_width="315dp"
        android:layout_height="50dp"
        android:layout_marginTop="166dp"
        android:background="@drawable/bg_solid_white"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <ImageView
        android:id="@+id/iv_1"
        android:layout_width="16dp"
        android:layout_height="18dp"
        android:layout_marginStart="20dp"
        android:background="@mipmap/sjh"
        app:layout_constraintBottom_toBottomOf="@id/view_1"
        app:layout_constraintLeft_toLeftOf="@id/view_1"
        app:layout_constraintTop_toTopOf="@id/view_1" />

    <ImageView
        android:id="@+id/iv_2"
        android:layout_width="13dp"
        android:layout_height="13dp"
        android:layout_marginEnd="20dp"
        android:background="@mipmap/sc"
        app:layout_constraintBottom_toBottomOf="@id/view_1"
        app:layout_constraintRight_toRightOf="@id/view_1"
        app:layout_constraintTop_toTopOf="@id/view_1" />

    <EditText
        android:id="@+id/etPhone"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_marginStart="46dp"
        android:background="@android:color/transparent"
        android:gravity="start|center_vertical"
        android:hint="请输入手机号"
        android:inputType="number"
        android:maxLength="11"
        android:textColorHint="#999999"
        android:textSize="16dp"
        app:layout_constraintBottom_toBottomOf="@id/view_1"
        app:layout_constraintLeft_toLeftOf="@id/view_1"
        app:layout_constraintRight_toLeftOf="@id/iv_2"
        app:layout_constraintTop_toTopOf="@id/view_1"
        tools:ignore="TextFields" />


    <View
        android:id="@+id/view_2"
        android:layout_width="315dp"
        android:layout_height="50dp"
        android:layout_marginTop="241dp"
        android:background="@drawable/bg_solid_white"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <ImageView
        android:id="@+id/iv_3"
        android:layout_width="16dp"
        android:layout_height="18dp"
        android:layout_marginStart="20dp"
        android:background="@mipmap/mm"
        app:layout_constraintBottom_toBottomOf="@id/view_2"
        app:layout_constraintLeft_toLeftOf="@id/view_2"
        app:layout_constraintTop_toTopOf="@id/view_2" />

    <TextView
        android:id="@+id/btnGetCode"
        android:text="获取验证码"
        android:textSize="13dp"
        android:textColor="#999"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginEnd="20dp"
        app:layout_constraintBottom_toBottomOf="@id/view_2"
        app:layout_constraintRight_toRightOf="@id/view_2"
        app:layout_constraintTop_toTopOf="@id/view_2" />

    <EditText
        android:id="@+id/etCode"
        android:maxLength="6"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_marginStart="46dp"
        android:layout_marginEnd="20dp"
        android:background="@android:color/transparent"
        android:gravity="start|center_vertical"
        android:hint="请输入验证码"
        android:inputType="number"
        android:textColorHint="#999999"
        android:textSize="16dp"
        app:layout_constraintBottom_toBottomOf="@id/view_2"
        app:layout_constraintLeft_toLeftOf="@id/view_2"
        app:layout_constraintRight_toLeftOf="@id/btnGetCode"
        app:layout_constraintTop_toTopOf="@id/view_2" />


    <Button
        android:id="@+id/btnLogin"
        android:layout_width="315dp"
        android:layout_height="50dp"
        android:layout_marginTop="331dp"
        android:background="@drawable/bg_solid_btn"
        android:text="登录"
        android:textColor="@color/white"
        android:textSize="18dp"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />


    <CheckBox
        android:id="@+id/chkPermission"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="67dp"
        android:layout_marginBottom="50dp"
        android:background="@android:color/transparent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent" />

    <TextView
        android:id="@+id/tv_3"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="5dp"
        android:text="已阅读并同意《"
        android:textColor="#999999"
        android:textSize="12dp"
        app:layout_constraintBottom_toBottomOf="@id/chkPermission"
        app:layout_constraintLeft_toRightOf="@id/chkPermission"
        app:layout_constraintTop_toTopOf="@id/chkPermission" />

    <TextView
        android:id="@+id/tv_4"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="用户协议"
        android:textColor="#FE5E09"
        android:textSize="12dp"
        app:layout_constraintBottom_toBottomOf="@id/chkPermission"
        app:layout_constraintLeft_toRightOf="@id/tv_3"
        app:layout_constraintTop_toTopOf="@id/chkPermission" />

    <TextView
        android:id="@+id/tv_5"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="》和《"
        android:textColor="#999999"
        android:textSize="12dp"
        app:layout_constraintBottom_toBottomOf="@id/chkPermission"
        app:layout_constraintLeft_toRightOf="@id/tv_4"
        app:layout_constraintTop_toTopOf="@id/chkPermission" />

    <TextView
        android:id="@+id/tv_6"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="隐私政策"
        android:textColor="#FE5E09"
        android:textSize="12dp"
        app:layout_constraintBottom_toBottomOf="@id/chkPermission"
        app:layout_constraintLeft_toRightOf="@id/tv_5"
        app:layout_constraintTop_toTopOf="@id/chkPermission" />

    <TextView
        android:id="@+id/tv_7"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="》"
        android:textColor="#999999"
        android:textSize="12dp"
        app:layout_constraintBottom_toBottomOf="@id/chkPermission"
        app:layout_constraintLeft_toRightOf="@id/tv_6"
        app:layout_constraintTop_toTopOf="@id/chkPermission" />


</androidx.constraintlayout.widget.ConstraintLayout>