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