feat: 增加虚拟定位检查,增加修改手机号功能

This commit is contained in:
2022-08-31 11:05:45 +08:00
parent ea4b004637
commit 7432920fda
5 changed files with 133 additions and 55 deletions
+8 -13
View File
@@ -2,17 +2,9 @@
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/default_widget_padding"
android:paddingHorizontal="@dimen/fab_margin"
android:background="@color/white"
xmlns:app="http://schemas.android.com/apk/res-auto">
<TextView
android:id="@+id/edit_phone_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
android:gravity="center"
style="@style/text_style_title"
android:text="修改手机号"></TextView>
<EditText
android:id="@+id/edt_phone_new"
android:layout_width="match_parent"
@@ -20,16 +12,17 @@
android:hint="请输入新手机号"
android:maxLength="11"
android:digits="0123456789"
app:layout_constraintTop_toBottomOf="@id/edit_phone_title"
app:layout_constraintTop_toTopOf="parent"
style="@style/MyEditText"></EditText>
<RelativeLayout
android:id="@+id/layer_confirm"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/default_widget_padding"
app:layout_constraintTop_toBottomOf="@id/edt_phone_new"
android:layout_marginTop="@dimen/default_widget_padding"
android:orientation="horizontal">
<TextView
android:id="@+id/tv_confirm_code"
style="@style/user_style"
@@ -39,6 +32,7 @@
android:layout_centerVertical="true"
android:layout_marginEnd="10dp"
android:text="获取验证码"
android:layout_marginHorizontal="@dimen/default_widget_padding"
android:textColor="#fff" />
<EditText
@@ -54,12 +48,13 @@
</RelativeLayout>
<Button
android:id="@+id/btm_finish"
android:id="@+id/btn_finish"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/default_widget_padding"
app:layout_constraintTop_toBottomOf="@id/layer_confirm"
android:textColor="@color/white"
style="@style/user_style"
android:visibility="gone"
android:text="确认修改"></Button>
</androidx.constraintlayout.widget.ConstraintLayout>