|
@@ -1,82 +1,180 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- xmlns:app="http://schemas.android.com/apk/res-auto" >
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
+
|
|
|
+ <data>
|
|
|
|
|
|
- <data >
|
|
|
<import type="android.view.View" />
|
|
|
|
|
|
<variable
|
|
|
name="vm"
|
|
|
type="com.quansu.heifengwuliu.vmodel.PersonalVerityVModel" />
|
|
|
- </data >
|
|
|
+ </data>
|
|
|
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:paddingStart="@dimen/dp_14"
|
|
|
- android:paddingEnd="@dimen/dp_14" >
|
|
|
+ android:background="#F5F5F5"
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_title"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="@dimen/dp_55"
|
|
|
- android:text="@string/id_information_upload"
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
-
|
|
|
-<!-- app:url="@{vm.imgIDMan}" -->
|
|
|
-
|
|
|
- <com.qmuiteam.qmui.widget.QMUIRadiusImageView
|
|
|
- android:id="@+id/img_id_man"
|
|
|
- android:layout_width="146dp"
|
|
|
- android:layout_height="96dp"
|
|
|
- android:layout_marginTop="@dimen/dp_8"
|
|
|
- android:onClick="@{v->vm.choseImg(1)}"
|
|
|
- android:scaleType="fitXY"
|
|
|
- android:src="@drawable/ic_default_image"
|
|
|
- app:layout_constraintStart_toStartOf="@id/tv_title"
|
|
|
- app:layout_constraintTop_toBottomOf="@id/tv_title"
|
|
|
- app:qmui_radius="1dp"
|
|
|
- app:url="@{vm.imgIDMan}" />
|
|
|
-
|
|
|
- <com.qmuiteam.qmui.widget.QMUIRadiusImageView
|
|
|
- android:id="@+id/img_id_emblem"
|
|
|
- android:layout_width="146dp"
|
|
|
- android:layout_height="96dp"
|
|
|
- android:scaleType="fitXY"
|
|
|
- android:src="@drawable/ic_default_image"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- android:onClick="@{v->vm.choseImg(2)}"
|
|
|
- app:layout_constraintTop_toTopOf="@id/img_id_man"
|
|
|
- app:qmui_radius="1dp"
|
|
|
- app:url="@{vm.imgIDEmblem}"/>
|
|
|
|
|
|
<com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
- android:id="@+id/lay_input"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="@dimen/dp_12"
|
|
|
- android:gravity="center_vertical"
|
|
|
+ android:layout_marginStart="17dp"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:layout_marginEnd="16dp"
|
|
|
android:orientation="vertical"
|
|
|
- android:paddingStart="@dimen/dp_8"
|
|
|
- android:paddingEnd="@dimen/dp_14"
|
|
|
- app:layout_constraintTop_toBottomOf="@id/img_id_man"
|
|
|
- app:qmui_borderColor="#F4F3F9"
|
|
|
- app:qmui_borderWidth="@dimen/dp_1"
|
|
|
- app:rv_radius="25dp" >
|
|
|
-
|
|
|
- <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
+ android:paddingStart="11dp"
|
|
|
+ android:paddingTop="14dp"
|
|
|
+ android:paddingEnd="11dp"
|
|
|
+ android:paddingBottom="21dp"
|
|
|
+ app:qmui_backgroundColor="@color/white"
|
|
|
+ app:qmui_borderColor="@color/white"
|
|
|
+ app:qmui_radius="4dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/id_information_upload" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="48dp"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:paddingStart="@dimen/dp_8"
|
|
|
- android:paddingEnd="@dimen/dp_14" >
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="22dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.QMUIRadiusImageView
|
|
|
+ android:id="@+id/img_id_man"
|
|
|
+ android:layout_width="137dp"
|
|
|
+ android:layout_height="86dp"
|
|
|
+ android:onClick="@{v->vm.choseImg(1)}"
|
|
|
+ android:scaleType="fitXY"
|
|
|
+ android:src="@drawable/ic_human_face"
|
|
|
+ app:qmui_corner_radius="@dimen/dp_4"
|
|
|
+ app:qmui_border_color="@color/white"
|
|
|
+ app:url="@{vm.imgIDMan}" />
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="9dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="点击上传 "
|
|
|
+ android:textColor="#7B7B7B"
|
|
|
+ android:textSize="13sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="人像面"
|
|
|
+ android:textColor="#F5BF41"
|
|
|
+ android:textSize="13sp" />
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.QMUIRadiusImageView
|
|
|
+ android:id="@+id/img_id_emblem"
|
|
|
+ android:layout_width="137dp"
|
|
|
+ android:layout_height="86dp"
|
|
|
+ android:onClick="@{v->vm.choseImg(2)}"
|
|
|
+ android:scaleType="fitXY"
|
|
|
+ android:src="@drawable/ic_national_emblem"
|
|
|
+ app:qmui_corner_radius="@dimen/dp_4"
|
|
|
+ app:qmui_border_color="@color/white"
|
|
|
+ app:url="@{vm.imgIDEmblem}" />
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="9dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="点击上传 "
|
|
|
+ android:textColor="#7B7B7B"
|
|
|
+ android:textSize="13sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="国徽面"
|
|
|
+ android:textColor="#F5BF41"
|
|
|
+ android:textSize="13sp" />
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="17dp"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:layout_marginEnd="16dp"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:paddingStart="11dp"
|
|
|
+ android:paddingTop="3dp"
|
|
|
+ android:paddingEnd="11dp"
|
|
|
+ android:paddingBottom="3dp"
|
|
|
+ app:qmui_backgroundColor="@color/white"
|
|
|
+ app:qmui_borderColor="@color/white"
|
|
|
+ app:qmui_radius="4dp">
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:gravity="center"
|
|
|
+ android:layout_height="50dp">
|
|
|
<TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="@string/name" />
|
|
|
+ android:textColor="#26292F"
|
|
|
+ android:textSize="14sp"
|
|
|
+ android:minWidth="56dp"
|
|
|
+ android:text="姓 名" />
|
|
|
|
|
|
<com.ysnows.base.widget.DelEditText
|
|
|
android:id="@+id/edt_name"
|
|
@@ -85,21 +183,35 @@
|
|
|
android:background="@color/white"
|
|
|
android:hint="@string/name_must_equal_to_id_card"
|
|
|
android:paddingStart="@dimen/dp_18"
|
|
|
+ android:gravity="right|center"
|
|
|
android:text="@={vm.name}"
|
|
|
+ android:textColorHint="#979899"
|
|
|
+ android:textColor="#26292F"
|
|
|
android:textSize="@dimen/sp_13" />
|
|
|
|
|
|
- </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout >
|
|
|
|
|
|
- <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_marginEnd="3dp"
|
|
|
+ android:layout_marginStart="2dp"
|
|
|
+ android:background="@color/line_color"
|
|
|
+ android:layout_height="@dimen/dp_1"/>
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="48dp"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:paddingStart="@dimen/dp_8"
|
|
|
- android:paddingEnd="@dimen/dp_14" >
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:gravity="center"
|
|
|
+ android:layout_height="50dp">
|
|
|
|
|
|
<TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:textColor="#26292F"
|
|
|
+ android:textSize="14sp"
|
|
|
+ android:minWidth="56dp"
|
|
|
android:text="@string/id_number" />
|
|
|
|
|
|
<com.ysnows.base.widget.DelEditText
|
|
@@ -111,35 +223,64 @@
|
|
|
android:inputType="phone"
|
|
|
android:paddingStart="@dimen/dp_18"
|
|
|
android:text="@={vm.iDNumber}"
|
|
|
+ android:gravity="center|right"
|
|
|
+ android:textColor="#26292F"
|
|
|
+ android:textColorHint="#979899"
|
|
|
android:textSize="@dimen/sp_13" />
|
|
|
|
|
|
- </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout >
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout >
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_tip"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="@dimen/sp_12"
|
|
|
+ android:layout_marginTop="14dp"
|
|
|
android:text="@string/personal_verify_tip"
|
|
|
- android:textColor="#F17706"
|
|
|
+ android:textColor="#767778"
|
|
|
android:textSize="@dimen/sp_12"
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@id/lay_input" />
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
+ android:layout_marginEnd="16dp"
|
|
|
+ />
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
|
|
|
- android:id="@+id/btn_submmit"
|
|
|
+
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="@dimen/dp_40"
|
|
|
- android:layout_marginStart="@dimen/dp_30"
|
|
|
- android:layout_marginEnd="@dimen/dp_30"
|
|
|
- android:layout_marginBottom="@dimen/dp_30"
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
+ android:layout_marginEnd="@dimen/dp_16"
|
|
|
+ android:layout_marginTop="13dp"
|
|
|
android:onClick="@{v->vm.toSubmit()}"
|
|
|
android:visibility="@{vm.isShow?View.VISIBLE :View.GONE}"
|
|
|
- android:text="@string/submit"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent" />
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="106dp"
|
|
|
+ android:src="@drawable/ic_details_grab" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:text="提交"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ </TextView>
|
|
|
+
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout >
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
-</layout >
|
|
|
+</layout>
|