aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layout/fragment_xkpwgen.xml
blob: 47803e2727faa0b85d18e4658a24abad614e6dcc (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!--
  ~ Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
  ~ SPDX-License-Identifier: GPL-3.0-only
  -->

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent">

  <androidx.constraintlayout.widget.ConstraintLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingStart="24dp"
    android:paddingTop="20dp"
    android:paddingEnd="24dp"
    android:paddingBottom="20dp">

    <androidx.appcompat.widget.AppCompatTextView
      android:id="@+id/xkPasswordText"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:paddingBottom="8dp"
      android:textAppearance="?android:attr/textAppearanceMedium"
      android:textIsSelectable="true"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      tools:text="horisticia.tockmendprost" />

    <com.google.android.material.textfield.TextInputLayout
      android:id="@+id/total_words"
      android:layout_width="0dp"
      android:layout_height="wrap_content"
      android:layout_marginEnd="8dp"
      android:hint="@string/xkpwgen_length"
      android:labelFor="@id/xk_num_words"
      app:layout_constraintEnd_toStartOf="@id/separator"
      app:layout_constraintHorizontal_weight="0.5"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toBottomOf="@id/xkPasswordText">

      <com.google.android.material.textfield.TextInputEditText
        android:id="@+id/xk_num_words"
        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/separator"
      android:layout_width="0dp"
      android:layout_height="wrap_content"
      android:layout_marginStart="8dp"
      android:hint="@string/xkpwgen_separator"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_weight="0.5"
      app:layout_constraintStart_toEndOf="@id/total_words"
      app:layout_constraintTop_toTopOf="@id/total_words">

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

    <Spinner
      android:id="@+id/xkCapType"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginTop="16dp"
      android:entries="@array/capitalization_type_values"
      android:entryValues="@array/capitalization_type_values"
      android:spinnerMode="dropdown"
      app:layout_constraintEnd_toEndOf="@id/total_words"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toBottomOf="@id/total_words" />

    <com.google.android.material.textfield.TextInputLayout
      android:id="@+id/xk_numbers_symbols_label"
      android:layout_width="0dp"
      android:layout_height="wrap_content"
      android:hint="@string/xkpwgen_extrachars_label"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintStart_toStartOf="@id/separator"
      app:layout_constraintTop_toBottomOf="@id/separator"
      app:layout_constraintTop_toTopOf="@id/xkCapType">

      <com.google.android.material.textfield.TextInputEditText
        android:id="@+id/xk_number_symbol_mask"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:autofillHints=""
        android:inputType="text"
        android:text="@string/xk_numbers_symbols_append_default" />
    </com.google.android.material.textfield.TextInputLayout>

  </androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>