aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/fragment_pwgen_diceware.xml
blob: b8627670b34f514fc00bd6b8eaf46f7cc61313b9 (about) (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright © 2014-2024 The Android Password Store Authors. All Rights Reserved.
  ~ SPDX-License-Identifier: GPL-3.0-only
  -->

<androidx.constraintlayout.widget.ConstraintLayout 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="wrap_content"
  android:orientation="vertical"
  android:paddingLeft="24dp"
  android:paddingTop="20dp"
  android:paddingRight="24dp"
  android:paddingBottom="20dp">

  <androidx.appcompat.widget.AppCompatTextView
    android:id="@+id/password_text"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:textAppearance="?android:attr/textAppearanceMedium"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

  <com.google.android.material.textfield.TextInputLayout
    android:id="@+id/password_length"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginTop="8dp"
    android:layout_marginEnd="4dp"
    android:hint="@string/pwgen_length"
    android:labelFor="@id/password_length_text"
    app:hintAnimationEnabled="true"
    app:hintEnabled="true"
    app:layout_constraintEnd_toStartOf="@id/password_separator"
    app:layout_constraintHorizontal_weight="0.5"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@id/password_text">

    <com.google.android.material.textfield.TextInputEditText
      android:id="@+id/password_length_text"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:inputType="number"
      android:maxLength="2" />
  </com.google.android.material.textfield.TextInputLayout>

  <com.google.android.material.textfield.TextInputLayout
    android:id="@+id/password_separator"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginStart="4dp"
    android:layout_marginTop="8dp"
    android:hint="@string/pwgen_separator"
    android:labelFor="@id/password_separator_text"
    app:hintAnimationEnabled="true"
    app:hintEnabled="true"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintHorizontal_weight="0.5"
    app:layout_constraintStart_toEndOf="@id/password_length"
    app:layout_constraintTop_toBottomOf="@id/password_text">

    <com.google.android.material.textfield.TextInputEditText
      android:id="@+id/password_separator_text"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:autofillHints=""
      android:importantForAutofill="no"
      android:inputType="text"
      android:maxLength="1" />
  </com.google.android.material.textfield.TextInputLayout>

</androidx.constraintlayout.widget.ConstraintLayout>