246 lines
10 KiB
XML
246 lines
10 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:background="@mipmap/bg"
|
|
tools:context=".fragment.RegisterFragment">
|
|
|
|
<include layout="@layout/register_title"
|
|
android:id="@+id/regs_title"/>
|
|
<TextView
|
|
android:id="@+id/register_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="37dp"
|
|
android:layout_marginTop="30dp"
|
|
android:text="Welcome"
|
|
android:textColor="@color/colorWhite"
|
|
android:textSize="30sp"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/regs_title" />
|
|
|
|
<TextView
|
|
android:id="@+id/register_desc"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="35dp"
|
|
android:text="注册地图寻宝"
|
|
android:textColor="@color/colorWhite"
|
|
android:textSize="35sp"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/register_title" />
|
|
|
|
<TextView
|
|
android:id="@+id/register_phone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="25dp"
|
|
android:text="手机号"
|
|
android:textColor="@color/colorWhite"
|
|
android:textSize="14sp"
|
|
app:layout_constraintTop_toBottomOf="@id/register_desc"
|
|
app:layout_constraintLeft_toLeftOf="@id/register_desc"
|
|
/>
|
|
|
|
<EditText
|
|
android:id="@+id/et_register_phone"
|
|
android:layout_width="300dp"
|
|
android:layout_height="wrap_content"
|
|
android:hint="11为手机号码"
|
|
android:paddingBottom="10dp"
|
|
android:layout_marginTop="10dp"
|
|
android:background="@null"
|
|
android:textSize="15sp"
|
|
android:textColorHint="@color/colorTransparent"
|
|
android:textCursorDrawable="@drawable/text_color"
|
|
android:theme="@style/MyEditText"
|
|
app:layout_constraintLeft_toLeftOf="@id/register_phone"
|
|
app:layout_constraintTop_toBottomOf="@id/register_phone" />
|
|
<View
|
|
android:layout_width="300dp"
|
|
android:layout_height="1dp"
|
|
android:background="@color/colorHui"
|
|
app:layout_constraintTop_toBottomOf="@id/et_register_phone"
|
|
app:layout_constraintLeft_toLeftOf="@id/et_register_phone"/>
|
|
<TextView
|
|
android:id="@+id/register_note"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:text="短信验证码"
|
|
android:textColor="@color/colorWhite"
|
|
android:textSize="14sp"
|
|
app:layout_constraintTop_toBottomOf="@id/et_register_phone"
|
|
app:layout_constraintLeft_toLeftOf="@id/et_register_phone"
|
|
/>
|
|
|
|
<EditText
|
|
android:id="@+id/et_register_note"
|
|
android:layout_width="200dp"
|
|
android:layout_height="wrap_content"
|
|
android:hint="6为短信验证"
|
|
android:paddingBottom="10dp"
|
|
android:textSize="15sp"
|
|
android:background="@null"
|
|
android:layout_marginTop="10dp"
|
|
android:textColorHint="@color/colorTransparent"
|
|
android:textCursorDrawable="@drawable/text_color"
|
|
android:theme="@style/MyEditText"
|
|
app:layout_constraintLeft_toLeftOf="@id/register_note"
|
|
app:layout_constraintTop_toBottomOf="@id/register_note" />
|
|
<View
|
|
android:layout_width="300dp"
|
|
android:layout_height="1dp"
|
|
android:background="@color/colorHui"
|
|
app:layout_constraintTop_toBottomOf="@id/et_register_note"
|
|
app:layout_constraintLeft_toLeftOf="@id/et_register_note"/>
|
|
<TextView
|
|
android:id="@+id/register_get_note"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="获取短信验证码"
|
|
android:textSize="14sp"
|
|
android:textColor="@color/colorWhite"
|
|
app:layout_constraintTop_toTopOf="@id/et_register_note"
|
|
app:layout_constraintBottom_toBottomOf="@id/et_register_note"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
android:layout_marginRight="30dp"
|
|
/>
|
|
<TextView
|
|
android:id="@+id/register_referrer"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:text="推荐人"
|
|
android:textColor="@color/colorWhite"
|
|
android:textSize="14sp"
|
|
app:layout_constraintTop_toBottomOf="@id/et_register_note"
|
|
app:layout_constraintLeft_toLeftOf="@id/et_register_note"
|
|
/>
|
|
|
|
<EditText
|
|
android:id="@+id/et_register_referrer"
|
|
android:layout_width="300dp"
|
|
android:layout_height="wrap_content"
|
|
android:hint="推荐人(编码/邮箱/手机号)"
|
|
android:textSize="15sp"
|
|
android:paddingBottom="10dp"
|
|
android:paddingTop="10dp"
|
|
android:background="@null"
|
|
android:textColorHint="@color/colorTransparent"
|
|
android:textCursorDrawable="@drawable/text_color"
|
|
android:theme="@style/MyEditText"
|
|
app:layout_constraintLeft_toLeftOf="@id/register_referrer"
|
|
app:layout_constraintTop_toBottomOf="@id/register_referrer"/>
|
|
<View
|
|
android:layout_width="300dp"
|
|
android:layout_height="1dp"
|
|
android:background="@color/colorHui"
|
|
app:layout_constraintTop_toBottomOf="@id/et_register_referrer"
|
|
app:layout_constraintLeft_toLeftOf="@id/et_register_referrer"/>
|
|
<TextView
|
|
android:id="@+id/register_paw"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:text="密码"
|
|
android:textColor="@color/colorWhite"
|
|
android:textSize="14sp"
|
|
app:layout_constraintTop_toBottomOf="@id/et_register_referrer"
|
|
app:layout_constraintLeft_toLeftOf="@id/et_register_referrer"
|
|
/>
|
|
|
|
<EditText
|
|
android:id="@+id/et_register_paw"
|
|
android:layout_width="300dp"
|
|
android:layout_height="wrap_content"
|
|
android:hint="6-20位密码"
|
|
android:paddingBottom="10dp"
|
|
android:paddingTop="10dp"
|
|
android:background="@null"
|
|
android:textSize="15sp"
|
|
android:textColorHint="@color/colorTransparent"
|
|
android:textCursorDrawable="@drawable/text_color"
|
|
android:theme="@style/MyEditText"
|
|
app:layout_constraintLeft_toLeftOf="@id/register_paw"
|
|
app:layout_constraintTop_toBottomOf="@id/register_paw"/>
|
|
<View
|
|
android:layout_width="300dp"
|
|
android:layout_height="1dp"
|
|
android:background="@color/colorHui"
|
|
app:layout_constraintTop_toBottomOf="@id/et_register_paw"
|
|
app:layout_constraintLeft_toLeftOf="@id/et_register_paw"/>
|
|
<TextView
|
|
android:id="@+id/register_confirm_paw"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:text="确认密码"
|
|
android:textColor="@color/colorWhite"
|
|
android:textSize="14sp"
|
|
app:layout_constraintTop_toBottomOf="@id/et_register_paw"
|
|
app:layout_constraintLeft_toLeftOf="@id/et_register_paw"
|
|
/>
|
|
|
|
<EditText
|
|
android:id="@+id/et_register_confirm_paw"
|
|
android:layout_width="300dp"
|
|
android:layout_height="wrap_content"
|
|
android:hint="请再次输入一遍密码"
|
|
android:paddingBottom="10dp"
|
|
android:paddingTop="10dp"
|
|
android:background="@null"
|
|
android:textSize="15sp"
|
|
android:textColorHint="@color/colorTransparent"
|
|
android:textCursorDrawable="@drawable/text_color"
|
|
android:theme="@style/MyEditText"
|
|
app:layout_constraintLeft_toLeftOf="@id/register_confirm_paw"
|
|
app:layout_constraintTop_toBottomOf="@id/register_confirm_paw"/>
|
|
<View
|
|
android:layout_width="300dp"
|
|
android:layout_height="1dp"
|
|
android:background="@color/colorHui"
|
|
app:layout_constraintTop_toBottomOf="@id/et_register_confirm_paw"
|
|
app:layout_constraintLeft_toLeftOf="@id/et_register_confirm_paw"/>
|
|
<ImageView
|
|
android:id="@+id/iv_register_check"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:background="@drawable/select_check"
|
|
app:layout_constraintTop_toBottomOf="@id/et_register_confirm_paw"
|
|
app:layout_constraintLeft_toLeftOf="@id/et_register_confirm_paw"
|
|
android:layout_marginTop="5dp"/>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="免责声明"
|
|
android:textColor="@color/colorWhite"
|
|
app:layout_constraintTop_toTopOf="@id/iv_register_check"
|
|
app:layout_constraintLeft_toRightOf="@id/iv_register_check"
|
|
app:layout_constraintBottom_toBottomOf="@id/iv_register_check"
|
|
android:layout_marginLeft="2dp"/>
|
|
<TextView
|
|
android:id="@+id/have_go_login"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="已有账号,去登录"
|
|
android:textColor="@color/colorWhite"
|
|
app:layout_constraintTop_toTopOf="@id/iv_register_check"
|
|
app:layout_constraintRight_toRightOf="@id/et_register_confirm_paw"
|
|
app:layout_constraintBottom_toBottomOf="@id/iv_register_check"/>
|
|
<TextView
|
|
android:id="@+id/tv_register"
|
|
android:layout_width="300dp"
|
|
android:layout_height="50dp"
|
|
android:layout_marginTop="20dp"
|
|
android:background="@drawable/shape_login"
|
|
android:gravity="center"
|
|
android:text="注册"
|
|
android:textSize="20dp"
|
|
android:textColor="@color/colorPrimaryDark"
|
|
app:layout_constraintLeft_toLeftOf="@id/iv_register_check"
|
|
app:layout_constraintTop_toBottomOf="@id/iv_register_check"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |