]> Pileus Git - ~andy/freeotp/blob - res/layout/manual.xml
fd11414ad75ef859115e9af8ee24735a3c99ea89
[~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
22 <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
23     android:layout_width="match_parent"
24     android:layout_height="match_parent"
25     android:padding="16dp" >
26
27     <TableRow
28         android:layout_width="match_parent"
29         android:layout_height="48dp" >
30         <TextView
31             android:layout_width="wrap_content"
32             android:layout_height="match_parent"
33             android:gravity="center_vertical|right"
34             android:text="@string/issuer"
35             android:paddingRight="8dp" />
36
37         <EditText
38             android:id="@+id/issuer"
39             android:layout_width="0dp"
40             android:layout_height="match_parent"
41             android:layout_weight="1"
42             android:hint="jdoe@example.com"
43             android:textAppearance="?android:attr/textAppearanceSmallInverse" />
44     </TableRow>
45
46     <TableRow
47         android:layout_width="match_parent"
48         android:layout_height="48dp" >
49
50         <TextView
51             android:layout_width="wrap_content"
52             android:layout_height="match_parent"
53             android:gravity="center_vertical|right"
54             android:text="@string/id"
55             android:paddingRight="8dp" />
56
57         <EditText
58             android:id="@+id/id"
59             android:layout_width="0dp"
60             android:layout_height="match_parent"
61             android:layout_weight="1"
62             android:hint="18c5d06cfcbd4927"
63             android:textAppearance="?android:attr/textAppearanceSmallInverse" />
64     </TableRow>
65
66     <TableRow
67         android:layout_width="match_parent"
68         android:layout_height="48dp" >
69
70         <TextView
71             android:layout_width="wrap_content"
72             android:layout_height="match_parent"
73             android:gravity="center_vertical|right"
74             android:text="@string/secret"
75             android:paddingRight="8dp" />
76
77         <EditText
78             android:id="@+id/secret"
79             android:layout_width="0dp"
80             android:layout_height="match_parent"
81             android:layout_weight="1"
82             android:digits="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ234567="
83             android:hint="Base32 (ex. &apos;GEZDGNBV&apos;)"
84             android:textAppearance="?android:attr/textAppearanceSmall" />
85     </TableRow>
86
87     <View
88         android:layout_width="match_parent"
89         android:layout_height="1dp"
90         android:layout_marginTop="12dp"
91         android:layout_marginBottom="4dp"
92         android:background="?android:attr/dividerHorizontal"
93         />
94
95     <TableRow
96         android:layout_width="match_parent"
97         android:layout_height="48dp" >
98         <TextView
99             android:layout_width="wrap_content"
100             android:layout_height="match_parent"
101             android:gravity="center_vertical|right"
102             android:text="@string/type"
103             android:paddingRight="8dp" />
104
105         <Spinner
106             android:id="@+id/type"
107             android:layout_width="0dp"
108             android:layout_height="match_parent"
109             android:layout_weight="1"
110             android:entries="@array/token_types" />
111     </TableRow>
112
113     <TableRow
114         android:layout_width="match_parent"
115         android:layout_height="48dp" >
116         <TextView
117             android:layout_width="wrap_content"
118             android:layout_height="match_parent"
119             android:gravity="center_vertical|right"
120             android:text="@string/algorithm"
121             android:paddingRight="8dp" />
122
123         <Spinner
124             android:id="@+id/algorithm"
125             android:layout_width="0dp"
126             android:layout_height="match_parent"
127             android:layout_weight="1"
128             android:entries="@array/algorithms" />
129     </TableRow>
130
131     <TableRow
132         android:layout_width="match_parent"
133         android:layout_height="48dp" >
134         <TextView
135             android:id="@+id/interval_label"
136             android:layout_width="wrap_content"
137             android:layout_height="match_parent"
138             android:gravity="center_vertical|right"
139             android:text="@string/interval"
140             android:paddingRight="8dp" />
141
142         <EditText
143             android:id="@+id/interval"
144             android:layout_width="0dp"
145             android:layout_height="match_parent"
146             android:layout_weight="1"
147             android:inputType="number"
148             android:text="30" />
149     </TableRow>
150
151     <TableRow
152         android:layout_width="match_parent"
153         android:layout_height="48dp" >
154         <TextView
155             android:layout_width="wrap_content"
156             android:layout_height="match_parent"
157             android:gravity="center_vertical|right"
158             android:text="@string/digits"
159             android:paddingRight="8dp" />
160
161         <RadioGroup
162             android:layout_width="0dp"
163             android:layout_height="match_parent"
164             android:layout_weight="1"
165             android:orientation="horizontal" >
166             <RadioButton
167                 android:id="@+id/digits6"
168                 android:layout_width="0dp"
169                 android:layout_height="match_parent"
170                 android:layout_weight="1"
171                 android:text="6"
172                 android:checked="true" />
173
174             <RadioButton
175                 android:id="@+id/digits8"
176                 android:layout_width="0dp"
177                 android:layout_height="match_parent"
178                 android:layout_weight="1"
179                 android:text="8" />
180         </RadioGroup>
181     </TableRow>
182 </TableLayout>