|
@@ -1,8 +1,9 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<androidx.constraintlayout.widget.ConstraintLayout 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"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
android:background="@color/color_f6f8f9"
|
|
|
android:orientation="vertical">
|
|
|
|
|
@@ -11,88 +12,81 @@
|
|
|
layout="@layout/common_toolbar_layout" />
|
|
|
|
|
|
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
+ <TextView
|
|
|
+ android:layout_marginTop="25dp"
|
|
|
+ android:id="@+id/tv_name"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="14dp"
|
|
|
- android:layout_marginTop="15dp"
|
|
|
- android:layout_marginEnd="14dp">
|
|
|
+ android:layout_marginLeft="27dp"
|
|
|
+ android:text="姓名"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/sp_18"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/toolbar_include" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_name"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="27dp"
|
|
|
- android:text="姓名"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="@dimen/sp_18"
|
|
|
- android:textStyle="bold"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
-
|
|
|
- <EditText
|
|
|
- android:id="@+id/et_name"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="45dp"
|
|
|
- android:background="@null"
|
|
|
- android:hint="请输入真实姓名"
|
|
|
- android:paddingLeft="27dp"
|
|
|
- android:paddingRight="28dp"
|
|
|
- android:inputType="text"
|
|
|
- android:textColor="@color/black_333"
|
|
|
- android:textColorHint="@color/color_ffc1c1c1"
|
|
|
- android:textSize="@dimen/sp_16"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/tv_name" />
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/et_name"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="45dp"
|
|
|
+ android:background="@null"
|
|
|
+ android:hint="请输入真实姓名"
|
|
|
+ android:inputType="text"
|
|
|
+ android:paddingLeft="27dp"
|
|
|
+ android:paddingRight="28dp"
|
|
|
+ android:textColor="@color/black_333"
|
|
|
+ android:textColorHint="@color/color_ffc1c1c1"
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_name" />
|
|
|
|
|
|
- <View
|
|
|
- android:id="@+id/view_line1"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="1dp"
|
|
|
- android:layout_marginLeft="34dp"
|
|
|
- android:layout_marginRight="35dp"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/et_name" />
|
|
|
+ <View
|
|
|
+ android:id="@+id/view_line1"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:layout_marginLeft="34dp"
|
|
|
+ android:layout_marginRight="35dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/et_name" />
|
|
|
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_certificate_num"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="27dp"
|
|
|
- android:layout_marginTop="16dp"
|
|
|
- android:text="证件号码"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="@dimen/sp_18"
|
|
|
- android:textStyle="bold"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/view_line1" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_certificate_num"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="27dp"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ android:text="证件号码"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/sp_18"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_line1" />
|
|
|
|
|
|
- <EditText
|
|
|
- android:id="@+id/et_certificate_num"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="45dp"
|
|
|
- android:background="@null"
|
|
|
- android:hint="请输入身份证号"
|
|
|
- android:paddingLeft="27dp"
|
|
|
- android:paddingRight="28dp"
|
|
|
- android:textColor="@color/black_333"
|
|
|
- android:inputType="number"
|
|
|
- android:textColorHint="@color/color_ffc1c1c1"
|
|
|
- android:textSize="@dimen/sp_16"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/tv_certificate_num" />
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/et_certificate_num"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="45dp"
|
|
|
+ android:background="@null"
|
|
|
+ android:hint="请输入身份证号"
|
|
|
+ android:inputType="number"
|
|
|
+ android:paddingLeft="27dp"
|
|
|
+ android:paddingRight="28dp"
|
|
|
+ android:textColor="@color/black_333"
|
|
|
+ android:textColorHint="@color/color_ffc1c1c1"
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_certificate_num" />
|
|
|
|
|
|
- <View
|
|
|
- android:id="@+id/view_line3"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="1dp"
|
|
|
- android:layout_marginLeft="34dp"
|
|
|
- android:layout_marginRight="35dp"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/et_certificate_num" />
|
|
|
+ <View
|
|
|
+ android:id="@+id/view_line3"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:layout_marginLeft="34dp"
|
|
|
+ android:layout_marginRight="35dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/et_certificate_num" />
|
|
|
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_confirm"
|
|
@@ -106,5 +100,42 @@
|
|
|
android:gravity="center"
|
|
|
android:text="确定"
|
|
|
android:textColor="@color/white"
|
|
|
- android:textSize="@dimen/sp_14" />
|
|
|
-</LinearLayout>
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_line3" />
|
|
|
+
|
|
|
+
|
|
|
+ <CheckBox
|
|
|
+ android:id="@+id/cb_privacy"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:background="@android:color/transparent"
|
|
|
+ android:button="@null"
|
|
|
+ android:drawableStart="@drawable/register_privacy_selector_student"
|
|
|
+ android:drawablePadding="5dp"
|
|
|
+ android:paddingTop="10dp"
|
|
|
+ android:paddingBottom="10dp"
|
|
|
+ android:text="@string/read_privacy_and_agree_str"
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
+ android:textSize="@dimen/sp_12"
|
|
|
+ app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/tv_privacy"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_confirm" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_privacy"
|
|
|
+ tools:text="《用户注册协议》和《隐私政策》"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:textColor="@color/color_2dc7aa"
|
|
|
+ android:textSize="@dimen/sp_12"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/cb_privacy"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/cb_privacy"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/cb_privacy" />
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|