142 lines
6.1 KiB
XML
142 lines
6.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
<data />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@android:color/white"
|
|
android:fitsSystemWindows="true"
|
|
android:focusableInTouchMode="true"
|
|
android:orientation="vertical"
|
|
tools:context=".mine.AccountDeletionActivity"
|
|
tools:locale="en">
|
|
|
|
<include layout="@layout/include_account_deletion_title" />
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:fillViewport="true">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingStart="24dp"
|
|
android:paddingTop="20dp"
|
|
android:paddingEnd="24dp"
|
|
android:paddingBottom="20dp">
|
|
|
|
<TextView
|
|
style="@style/AccountDeletionBody"
|
|
android:text="@string/account_deletion_verification_hint" />
|
|
|
|
<TextView
|
|
style="@style/AccountDeletionLabel"
|
|
android:layout_marginTop="20dp"
|
|
android:text="@string/personal_info_phone" />
|
|
|
|
<!-- 区号与脱敏号码只读,身份验证不能改用其他手机号。 -->
|
|
<LinearLayout
|
|
style="@style/AccountDeletionField"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="12dp">
|
|
|
|
<ImageView
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:importantForAccessibility="no"
|
|
android:src="@drawable/ic_account_deletion_phone" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_deletion_dial_code"
|
|
style="@style/AccountDeletionPhone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="10dp"
|
|
tools:text="+251" />
|
|
|
|
<View
|
|
android:id="@+id/view_deletion_dial_code_divider"
|
|
android:layout_width="1dp"
|
|
android:layout_height="22dp"
|
|
android:layout_marginStart="12dp"
|
|
android:background="@color/account_deletion_field_border" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_deletion_bound_phone"
|
|
style="@style/AccountDeletionPhone"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_marginStart="9dp"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
tools:text="138****5542" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
style="@style/AccountDeletionLabel"
|
|
android:layout_marginTop="20dp"
|
|
android:labelFor="@id/et_deletion_code"
|
|
android:text="@string/account_deletion_code_label" />
|
|
|
|
<LinearLayout
|
|
style="@style/AccountDeletionField"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="6dp">
|
|
|
|
<ImageView
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:importantForAccessibility="no"
|
|
android:src="@drawable/ic_account_deletion_verification" />
|
|
|
|
<!-- 验证码不放入实例状态,也不使用设计稿中的示例验证码。 -->
|
|
<EditText
|
|
android:id="@+id/et_deletion_code"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:background="@null"
|
|
android:gravity="start|center_vertical"
|
|
android:hint="@string/account_deletion_code_hint"
|
|
android:imeOptions="actionDone"
|
|
android:inputType="number"
|
|
android:maxLength="6"
|
|
android:padding="0dp"
|
|
android:saveEnabled="false"
|
|
android:singleLine="true"
|
|
android:textColor="@color/account_deletion_text"
|
|
android:textSize="15sp"
|
|
tools:text="111222" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_deletion_get_code"
|
|
android:layout_width="97dp"
|
|
android:layout_height="44dp"
|
|
android:background="@drawable/account_deletion_code_bg"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:fontFamily="sans-serif-medium"
|
|
android:gravity="center"
|
|
android:text="@string/account_deletion_get_code"
|
|
android:textColor="@color/account_deletion_code_text"
|
|
android:textSize="15sp" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_confirm_account_deletion"
|
|
style="@style/AccountDeletionAction"
|
|
android:text="@string/account_deletion_title" />
|
|
</LinearLayout>
|
|
</layout>
|