登录注册修改密码,网络请求
This commit is contained in:
@@ -97,6 +97,64 @@
|
||||
app:layout_constraintStart_toEndOf="@+id/ivPhoneIcon"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<!-- 验证码输入框 -->
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/smsRowLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:background="@drawable/textinput_white_bg"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
app:layout_constraintTop_toBottomOf="@+id/phoneRowLayout"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:visibility="visible">
|
||||
|
||||
<!-- 左侧图标 -->
|
||||
<ImageView
|
||||
android:id="@+id/ivSmsIcon"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:src="@mipmap/vc"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent" />
|
||||
|
||||
<!-- 验证码输入框(无背景) -->
|
||||
<EditText
|
||||
android:id="@+id/etSmsCode"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:hint="@string/sms_code_hint"
|
||||
android:textColorHint="@color/gray"
|
||||
android:textColor="@android:color/black"
|
||||
android:background="@null"
|
||||
android:inputType="number"
|
||||
android:paddingVertical="16dp"
|
||||
app:layout_constraintStart_toEndOf="@+id/ivSmsIcon"
|
||||
app:layout_constraintEnd_toStartOf="@+id/sendCodeBtn"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent" />
|
||||
|
||||
<!-- 发送验证码按钮 -->
|
||||
<android.widget.Button
|
||||
android:id="@+id/sendCodeBtn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/send_sms_code"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@color/white"
|
||||
android:background="@drawable/rounded_blue_bg"
|
||||
android:paddingHorizontal="12dp"
|
||||
android:maxWidth="120dp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:layout_marginStart="12dp" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<!-- 身份证号输入框 -->
|
||||
@@ -110,7 +168,7 @@
|
||||
android:paddingEnd="16dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/phoneRowLayout">
|
||||
app:layout_constraintTop_toBottomOf="@+id/smsRowLayout">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivIdIcon"
|
||||
|
||||
Reference in New Issue
Block a user