aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layout/dialog_password_entry.xml
blob: e2ad5a2f88477232f5da27f92cfd3cb70be5924f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright © 2014-2022 The Android Password Store Authors. All Rights Reserved.
  ~ SPDX-License-Identifier: GPL-3.0-only
  -->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"
  android:padding="@dimen/activity_horizontal_margin">

  <com.google.android.material.textfield.TextInputLayout
    android:id="@+id/password_field"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:hint="@string/password"
    app:endIconMode="password_toggle"
    app:hintAnimationEnabled="true"
    app:hintEnabled="true">

    <com.google.android.material.textfield.TextInputEditText
      android:id="@+id/password_edit_text"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:inputType="textPassword" />
    <requestFocus />
  </com.google.android.material.textfield.TextInputLayout>

  <com.google.android.material.checkbox.MaterialCheckBox
    android:id="@+id/auto_clear_cache"
    android:layout_width="match_parent"
    android:text="@string/clear_cached_password_on_screen_off"
    android:layout_height="wrap_content" />
</LinearLayout>