Files
packages_apps_Settings/res/layout/set_backup_pw.xml
Alex 8a5b8b0253 Settings: Desktop backup password: Tint buttons to match system theme
Change-Id: I91e75eab0b6d9ffc608af1f5977ddd79350b22fc
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:26 +09:00

88 lines
3.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 The Android Open Source Project
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.
-->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="16dip"
>
<TextView
android:id="@+id/prompt1"
android:text="@string/current_backup_pw_prompt"
android:layout_height="wrap_content"
android:layout_width="wrap_content" />
<EditText
android:id="@+id/current_backup_pw"
android:layout_below="@id/prompt1"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:singleLine="true"
android:password="true" />
<TextView
android:id="@+id/prompt2"
android:layout_below="@id/current_backup_pw"
android:text="@string/new_backup_pw_prompt"
android:layout_height="wrap_content"
android:layout_width="wrap_content" />
<EditText
android:id="@+id/new_backup_pw"
android:layout_below="@id/prompt2"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:singleLine="true"
android:password="true" />
<TextView
android:id="@+id/prompt3"
android:layout_below="@id/new_backup_pw"
android:text="@string/confirm_new_backup_pw_prompt"
android:layout_height="wrap_content"
android:layout_width="wrap_content" />
<EditText
android:id="@+id/confirm_new_backup_pw"
android:layout_below="@id/prompt3"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:singleLine="true"
android:password="true" />
<Button
android:id="@+id/backup_pw_cancel_button"
android:layout_below="@id/confirm_new_backup_pw"
android:text="@string/backup_pw_cancel_button_text"
android:backgroundTint="?android:attr/colorAccent"
android:textColor="?android:textColorPrimaryInverse"
android:layout_height="wrap_content"
android:layout_width="wrap_content" />
<Button
android:id="@+id/backup_pw_set_button"
android:layout_below="@id/confirm_new_backup_pw"
android:layout_toEndOf="@id/backup_pw_cancel_button"
android:backgroundTint="?android:attr/colorAccent"
android:textColor="?android:textColorPrimaryInverse"
android:text="@string/backup_pw_set_button_text"
android:layout_height="wrap_content"
android:layout_width="wrap_content" />
</RelativeLayout>