操作密码弹窗修改2

This commit is contained in:
2026-06-02 16:45:31 +08:00
parent a1b9acb2a6
commit 5822e562de
9 changed files with 261 additions and 314 deletions

View File

@@ -6,6 +6,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@color/white"
tools:context=".personal.LoginPasswordActivity">
<!-- 标题栏 -->
@@ -28,7 +29,6 @@
android:layout_weight="1"
android:gravity="center"
android:text="@string/password_management"
android:textColor="@color/black"
android:textSize="16dp"
android:textStyle="bold" />
</LinearLayout>
@@ -36,7 +36,6 @@
android:id="@+id/change_password"
android:layout_width="match_parent"
android:layout_height="60dp"
android:background="@color/white"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingHorizontal="16dp">
@@ -45,7 +44,6 @@
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/change_password"
android:textColor="@color/black"
android:textSize="16dp" />
<ImageView
android:layout_width="24dp"
@@ -58,7 +56,6 @@
android:id="@+id/retrieve_password"
android:layout_width="match_parent"
android:layout_height="60dp"
android:background="@color/white"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingHorizontal="16dp">
@@ -67,7 +64,6 @@
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/retrieve_password"
android:textColor="@color/black"
android:textSize="16dp" />
<ImageView
android:layout_width="24dp"

View File

@@ -6,7 +6,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@color/message_bg"
android:background="@color/white"
tools:context=".personal.OperationPasswordActivity">
<!-- 标题栏 -->
@@ -44,8 +44,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/operation_password_switch"
android:textSize="14dp"/>
android:textSize="16dp" />
<Switch
android:id="@+id/swOperationPassword"
android:layout_width="wrap_content"
@@ -57,65 +57,29 @@
</RelativeLayout>
<!-- 分割线 -->
<View
<LinearLayout
android:id="@+id/change_password"
android:layout_width="match_parent"
android:layout_height="1px"
android:background="@color/gray_divider"/>
android:layout_height="60dp"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingHorizontal="16dp">
<!-- 内容区域 -->
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:padding="16dp">
<LinearLayout
android:layout_width="match_parent"
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:orientation="vertical">
android:layout_weight="1"
android:text="@string/change_password"
android:textSize="16dp" />
<!-- 密码输入框 -->
<EditText
android:id="@+id/etPassword"
android:layout_width="match_parent"
android:layout_height="56dp"
android:background="@drawable/textinput_white_bg"
android:hint="@string/hint_operation_password"
android:inputType="numberPassword"
android:maxLength="6"
android:paddingHorizontal="16dp"
android:textColor="@color/black"
android:textColorHint="@color/gray"
android:textSize="16sp" />
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginStart="12dp"
android:src="@drawable/right_back" />
<!-- 确认密码输入框 -->
<EditText
android:id="@+id/etConfirmPassword"
android:layout_width="match_parent"
android:layout_height="56dp"
android:layout_marginTop="16dp"
android:background="@drawable/textinput_white_bg"
android:hint="@string/hint_confirm_password"
android:inputType="numberPassword"
android:maxLength="6"
android:paddingHorizontal="16dp"
android:textColor="@color/black"
android:textColorHint="@color/gray"
android:textSize="16sp" />
</LinearLayout>
<!-- 确定重设密码按钮 -->
<android.widget.Button
android:id="@+id/btnConfirmReset"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginTop="32dp"
android:background="@drawable/rounded_blue_bg"
android:text="@string/confirm_reset_password_btn"
android:textColor="@color/white"
android:textSize="16sp" />
</LinearLayout>
</ScrollView>
</LinearLayout>

View File

@@ -324,6 +324,7 @@
<string name="collect_face">采集人脸</string>
<string name="login_password">登录密码</string>
<string name="retrieve_password">找回密码</string>
<string name="input_new_op_pwd">请输入新操作密码</string>|
<string name="operation_password">操作密码</string>
<string name="enter_phone_number">请输入手机号</string>
<string name="enter_verification_code">请输入验证码</string>
@@ -440,6 +441,7 @@
<string name="regenerate">重新生成</string>
<string name="device_no">设备编号</string>
<string name="fw_version">固件版本</string>
<string name="generate_invite_code">生成邀请码</string>
<!-- WiFi管理 -->
<string name="not_set">未设置</string>
@@ -475,4 +477,15 @@
<string name="max_add_11_users">最多添加11个用户</string>
<string name="linked_user_phone_label">手机号码:%s</string>
<string name="linked_user_idcard_label">身份证号:%s</string>
<string name="direction_up">向上移动</string>
<string name="direction_down">向下移动</string>
<string name="direction_left">向左移动</string>
<string name="direction_right">向右移动</string>
<!-- 操作密码 -->
<string name="please_enable_operation_password_first">请先开启操作密码</string>
<string name="disable_operation_password_tip">确定要关闭操作密码吗?</string>
<string name="verify_failed">验证失败</string>
<string name="password_update_success">密码修改成功</string>
<string name="password_update_failed">密码修改失败</string>
</resources>

View File

@@ -232,6 +232,7 @@
<string name="use_smart_defense_app">Scan code to join via smart defense management APP</string>
<string name="cancel_invite">Cancel Invitation</string>
<string name="regenerate">Regenerate</string>
<string name="generate_invite_code">Generate Invite Code</string>
<!-- Dialog -->
<string name="tip">Tip</string>
@@ -308,6 +309,7 @@
<string name="face_in_circle">Please align your face within the circular area</string>
<string name="collect_face">Collect Face</string>
<string name="login_password">Login Password</string>
<string name="input_new_op_pwd">Enter new operation password</string>
<string name="enter_old_password">Enter old password</string>
<string name="confirm_reset_password">Confirm Reset Password</string>
<string name="retrieve_password">Retrieve Password</string>
@@ -485,4 +487,12 @@
<string name="direction_down">Move Down</string>
<string name="direction_left">Move Left</string>
<string name="direction_right">Move Right</string>
<!-- Operation Password -->
<string name="please_enable_operation_password_first">Please enable operation password first</string>
<string name="disable_operation_password_tip">Are you sure you want to disable operation password?</string>
<string name="verify_failed">Verification failed</string>
<string name="password_update_success">Password updated successfully</string>
<string name="password_update_failed">Failed to update password</string>
<string name="update_failed">Update failed</string>
</resources>