You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
2.7 KiB
70 lines
2.7 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
|
|
密码输入界面布局文件
|
|
用于显示密码输入界面,包含标题、密码输入框和操作按钮
|
|
-->
|
|
<!-- 根布局:垂直方向的线性布局,内容居中显示 -->
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:padding="16dp"
|
|
android:gravity="center">
|
|
|
|
<!-- 标题文本视图:显示"请输入密码"标题 -->
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/password_input_title"
|
|
android:textSize="20sp"
|
|
android:textStyle="bold"
|
|
android:layout_marginBottom="24dp" />
|
|
|
|
<!-- 密码输入框:用于输入加密便签的密码,输入类型为密码模式(隐藏输入内容) -->
|
|
<EditText
|
|
android:id="@+id/et_password"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/password_hint"
|
|
android:inputType="textPassword"
|
|
android:layout_marginBottom="16dp" />
|
|
|
|
<!-- 按钮容器:水平方向的线性布局,按钮右对齐 -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="end">
|
|
|
|
<!-- 返回按钮:点击后关闭当前界面,返回上一界面 -->
|
|
<Button
|
|
android:id="@+id/btn_return"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/return_button"
|
|
android:layout_marginEnd="8dp" />
|
|
|
|
<!-- 确认按钮:点击后验证密码,密码正确则跳转到便签编辑界面 -->
|
|
<Button
|
|
android:id="@+id/btn_confirm"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/confirm_button" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|