]> Pileus Git - ~andy/freeotp/blob - res/layout/manual.xml
Make secret entry use capital characters
[~andy/freeotp] / res / layout / manual.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3    - FreeOTP
4    -
5    - Authors: Nathaniel McCallum <npmccallum@redhat.com>
6    -
7    - Copyright (C) 2013  Nathaniel McCallum, Red Hat
8    -
9    - Licensed under the Apache License, Version 2.0 (the "License");
10    - you may not use this file except in compliance with the License.
11    - You may obtain a copy of the License at
12    -
13    -     http://www.apache.org/licenses/LICENSE-2.0
14    -
15    - Unless required by applicable law or agreed to in writing, software
16    - distributed under the License is distributed on an "AS IS" BASIS,
17    - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18    - See the License for the specific language governing permissions and
19    - limitations under the License.
20    -->
21 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
22     android:layout_width="match_parent"
23     android:layout_height="match_parent" >
24     <TableLayout
25         android:layout_width="match_parent"
26         android:layout_height="wrap_content"
27         android:padding="16dp" >
28
29         <TableRow
30             android:layout_width="match_parent"
31             android:layout_height="48dp" >
32
33             <TextView
34                 android:layout_width="wrap_content"
35                 android:layout_height="match_parent"
36                 android:gravity="center_vertical|right"
37                 android:paddingRight="8dp"
38                 android:text="@string/issuer" />
39
40             <EditText
41                 android:id="@+id/issuer"
42                 android:layout_width="0dp"
43                 android:layout_height="match_parent"
44                 android:layout_weight="1"
45                 android:inputType="textNoSuggestions"
46                 android:hint="jdoe@example.com"
47                 android:textAppearance="?android:attr/textAppearanceSmallInverse" />
48         </TableRow>
49
50         <TableRow
51             android:layout_width="match_parent"
52             android:layout_height="48dp" >
53
54             <TextView
55                 android:layout_width="wrap_content"
56                 android:layout_height="match_parent"
57                 android:gravity="center_vertical|right"
58                 android:paddingRight="8dp"
59                 android:text="@string/id" />
60
61             <EditText
62                 android:id="@+id/id"
63                 android:layout_width="0dp"
64                 android:layout_height="match_parent"
65                 android:layout_weight="1"
66                 android:inputType="textNoSuggestions"
67                 android:hint="18c5d06cfcbd4927"
68                 android:textAppearance="?android:attr/textAppearanceSmallInverse" />
69         </TableRow>
70
71         <TableRow
72             android:layout_width="match_parent"
73             android:layout_height="48dp" >
74
75             <TextView
76                 android:layout_width="wrap_content"
77                 android:layout_height="match_parent"
78                 android:gravity="center_vertical|right"
79                 android:paddingRight="8dp"
80                 android:text="@string/secret" />
81
82             <EditText
83                 android:id="@+id/secret"
84                 android:layout_width="0dp"
85                 android:layout_height="match_parent"
86                 android:layout_weight="1"
87                 android:digits="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ234567="
88                 android:inputType="textVisiblePassword|textCapCharacters|textNoSuggestions"
89                 android:hint="(Base32 encoded)"
90                 android:textAppearance="?android:attr/textAppearanceSmall" />
91         </TableRow>
92
93         <View
94             android:layout_width="match_parent"
95             android:layout_height="1dp"
96             android:layout_marginBottom="4dp"
97             android:layout_marginTop="12dp"
98             android:background="?android:attr/dividerHorizontal" />
99
100         <TableRow
101             android:layout_width="match_parent"
102             android:layout_height="48dp" >
103
104             <TextView
105                 android:layout_width="wrap_content"
106                 android:layout_height="match_parent"
107                 android:gravity="center_vertical|right"
108                 android:paddingRight="8dp"
109                 android:text="@string/type" />
110
111             <Spinner
112                 android:id="@+id/type"
113                 android:layout_width="0dp"
114                 android:layout_height="match_parent"
115                 android:layout_weight="1"
116                 android:entries="@array/token_types" />
117         </TableRow>
118
119         <TableRow
120             android:layout_width="match_parent"
121             android:layout_height="48dp" >
122
123             <TextView
124                 android:layout_width="wrap_content"
125                 android:layout_height="match_parent"
126                 android:gravity="center_vertical|right"
127                 android:paddingRight="8dp"
128                 android:text="@string/algorithm" />
129
130             <Spinner
131                 android:id="@+id/algorithm"
132                 android:layout_width="0dp"
133                 android:layout_height="match_parent"
134                 android:layout_weight="1"
135                 android:entries="@array/algorithms" />
136         </TableRow>
137
138         <TableRow
139             android:layout_width="match_parent"
140             android:layout_height="48dp" >
141
142             <TextView
143                 android:id="@+id/interval_label"
144                 android:layout_width="wrap_content"
145                 android:layout_height="match_parent"
146                 android:gravity="center_vertical|right"
147                 android:paddingRight="8dp"
148                 android:text="@string/interval" />
149
150             <EditText
151                 android:id="@+id/interval"
152                 android:layout_width="0dp"
153                 android:layout_height="match_parent"
154                 android:layout_weight="1"
155                 android:inputType="number"
156                 android:text="30" />
157         </TableRow>
158
159         <TableRow
160             android:layout_width="match_parent"
161             android:layout_height="48dp" >
162
163             <TextView
164                 android:layout_width="wrap_content"
165                 android:layout_height="match_parent"
166                 android:gravity="center_vertical|right"
167                 android:paddingRight="8dp"
168                 android:text="@string/digits" />
169
170             <RadioGroup
171                 android:layout_width="0dp"
172                 android:layout_height="match_parent"
173                 android:layout_weight="1"
174                 android:orientation="horizontal" >
175
176                 <RadioButton
177                     android:id="@+id/digits6"
178                     android:layout_width="0dp"
179                     android:layout_height="match_parent"
180                     android:layout_weight="1"
181                     android:checked="true"
182                     android:text="6" />
183
184                 <RadioButton
185                     android:id="@+id/digits8"
186                     android:layout_width="0dp"
187                     android:layout_height="match_parent"
188                     android:layout_weight="1"
189                     android:text="8" />
190             </RadioGroup>
191         </TableRow>
192     </TableLayout>
193 </RelativeLayout>