纯蓝牙通信,个人中心相关。

This commit is contained in:
fengjignqi
2026-11-09 15:11:45 +08:00
parent 6f2b1b55bc
commit 5f06114d39
90 changed files with 5377 additions and 81 deletions

View File

@@ -0,0 +1,115 @@
<?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:tools="http://schemas.android.com/tools">
<data />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/personal_info_background"
android:fitsSystemWindows="true"
android:orientation="vertical"
tools:context=".mine.ChangeEmailActivity">
<!-- 顶部沿用个人信息页的通用标题栏与背景色。 -->
<include
android:id="@+id/include_title"
layout="@layout/include_activity_top_title_layout"
android:layout_width="match_parent"
android:layout_height="48dp"
app:title="@{@string/change_email_title}"
app:titleTextColor="@{@color/personal_info_title_text}" />
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:fillViewport="true"
android:scrollbars="none">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingStart="26dp"
android:paddingTop="18dp"
android:paddingEnd="29dp"
android:paddingBottom="32dp">
<TextView
style="@style/ChangeBindingLabel"
android:layout_width="match_parent"
android:layout_height="19dp"
android:text="@string/change_binding_email_hint" />
<EditText
android:id="@+id/et_binding_email"
style="@style/ChangeBindingInput"
android:layout_width="match_parent"
android:layout_height="46dp"
android:layout_marginTop="8dp"
android:hint="@string/change_binding_email_hint"
android:imeOptions="actionNext"
android:inputType="textEmailAddress"
android:maxLength="254"
android:autofillHints="emailAddress" />
<TextView
style="@style/ChangeBindingLabel"
android:layout_width="match_parent"
android:layout_height="19dp"
android:layout_marginTop="14dp"
android:text="@string/change_binding_email_code_label" />
<!-- 验证码输入框占据剩余空间,右侧获取按钮固定宽度。 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="46dp"
android:layout_marginTop="8dp"
android:orientation="horizontal">
<EditText
android:id="@+id/et_binding_code"
style="@style/ChangeBindingInput"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:hint="@string/change_binding_code_hint"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLength="6"
android:saveEnabled="false" />
<TextView
android:id="@+id/tv_binding_get_code"
android:layout_width="74dp"
android:layout_height="match_parent"
android:layout_marginStart="8dp"
android:background="@drawable/change_binding_code_bg"
android:clickable="true"
android:focusable="true"
android:gravity="center"
android:text="@string/change_binding_get_code"
android:textColor="@color/change_binding_orange"
android:textSize="13.33sp" />
</LinearLayout>
<TextView
android:id="@+id/tv_binding_confirm"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginTop="22dp"
android:background="@drawable/login_design_button_bg"
android:clickable="true"
android:focusable="true"
android:fontFamily="sans-serif-medium"
android:gravity="center"
android:text="@string/change_email_confirm"
android:textColor="@android:color/white"
android:textSize="16sp" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout>
</layout>