1 <?xml version="1.0" encoding="utf-8"?>
5 - Authors: Nathaniel McCallum <npmccallum@redhat.com>
7 - Copyright (C) 2013 Nathaniel McCallum, Red Hat
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
13 - http://www.apache.org/licenses/LICENSE-2.0
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.
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" >
28 android:layout_width="match_parent"
29 android:layout_height="48dp" >
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" />
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" />
47 android:layout_width="match_parent"
48 android:layout_height="48dp" >
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" />
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" />
67 android:layout_width="match_parent"
68 android:layout_height="48dp" >
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" />
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. 'GEZDGNBV')"
84 android:textAppearance="?android:attr/textAppearanceSmall" />
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"
96 android:layout_width="match_parent"
97 android:layout_height="48dp" >
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" />
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" />
114 android:layout_width="match_parent"
115 android:layout_height="48dp" >
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" />
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" />
132 android:layout_width="match_parent"
133 android:layout_height="48dp" >
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" />
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"
152 android:layout_width="match_parent"
153 android:layout_height="48dp" >
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" />
162 android:layout_width="0dp"
163 android:layout_height="match_parent"
164 android:layout_weight="1"
165 android:orientation="horizontal" >
167 android:id="@+id/digits6"
168 android:layout_width="0dp"
169 android:layout_height="match_parent"
170 android:layout_weight="1"
172 android:checked="true" />
175 android:id="@+id/digits8"
176 android:layout_width="0dp"
177 android:layout_height="match_parent"
178 android:layout_weight="1"