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.
21 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
22 android:layout_width="match_parent"
23 android:layout_height="match_parent" >
25 android:layout_width="match_parent"
26 android:layout_height="wrap_content"
27 android:padding="16dp" >
30 android:layout_width="match_parent"
31 android:layout_height="48dp" >
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" />
41 android:id="@+id/issuer"
42 android:layout_width="0dp"
43 android:layout_height="match_parent"
44 android:layout_weight="1"
45 android:hint="jdoe@example.com"
46 android:textAppearance="?android:attr/textAppearanceSmallInverse" />
50 android:layout_width="match_parent"
51 android:layout_height="48dp" >
54 android:layout_width="wrap_content"
55 android:layout_height="match_parent"
56 android:gravity="center_vertical|right"
57 android:paddingRight="8dp"
58 android:text="@string/id" />
62 android:layout_width="0dp"
63 android:layout_height="match_parent"
64 android:layout_weight="1"
65 android:hint="18c5d06cfcbd4927"
66 android:textAppearance="?android:attr/textAppearanceSmallInverse" />
70 android:layout_width="match_parent"
71 android:layout_height="48dp" >
74 android:layout_width="wrap_content"
75 android:layout_height="match_parent"
76 android:gravity="center_vertical|right"
77 android:paddingRight="8dp"
78 android:text="@string/secret" />
81 android:id="@+id/secret"
82 android:layout_width="0dp"
83 android:layout_height="match_parent"
84 android:layout_weight="1"
85 android:digits="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ234567="
86 android:hint="(Base32 encoded)"
87 android:textAppearance="?android:attr/textAppearanceSmall" />
91 android:layout_width="match_parent"
92 android:layout_height="1dp"
93 android:layout_marginBottom="4dp"
94 android:layout_marginTop="12dp"
95 android:background="?android:attr/dividerHorizontal" />
98 android:layout_width="match_parent"
99 android:layout_height="48dp" >
102 android:layout_width="wrap_content"
103 android:layout_height="match_parent"
104 android:gravity="center_vertical|right"
105 android:paddingRight="8dp"
106 android:text="@string/type" />
109 android:id="@+id/type"
110 android:layout_width="0dp"
111 android:layout_height="match_parent"
112 android:layout_weight="1"
113 android:entries="@array/token_types" />
117 android:layout_width="match_parent"
118 android:layout_height="48dp" >
121 android:layout_width="wrap_content"
122 android:layout_height="match_parent"
123 android:gravity="center_vertical|right"
124 android:paddingRight="8dp"
125 android:text="@string/algorithm" />
128 android:id="@+id/algorithm"
129 android:layout_width="0dp"
130 android:layout_height="match_parent"
131 android:layout_weight="1"
132 android:entries="@array/algorithms" />
136 android:layout_width="match_parent"
137 android:layout_height="48dp" >
140 android:id="@+id/interval_label"
141 android:layout_width="wrap_content"
142 android:layout_height="match_parent"
143 android:gravity="center_vertical|right"
144 android:paddingRight="8dp"
145 android:text="@string/interval" />
148 android:id="@+id/interval"
149 android:layout_width="0dp"
150 android:layout_height="match_parent"
151 android:layout_weight="1"
152 android:inputType="number"
157 android:layout_width="match_parent"
158 android:layout_height="48dp" >
161 android:layout_width="wrap_content"
162 android:layout_height="match_parent"
163 android:gravity="center_vertical|right"
164 android:paddingRight="8dp"
165 android:text="@string/digits" />
168 android:layout_width="0dp"
169 android:layout_height="match_parent"
170 android:layout_weight="1"
171 android:orientation="horizontal" >
174 android:id="@+id/digits6"
175 android:layout_width="0dp"
176 android:layout_height="match_parent"
177 android:layout_weight="1"
178 android:checked="true"
182 android:id="@+id/digits8"
183 android:layout_width="0dp"
184 android:layout_height="match_parent"
185 android:layout_weight="1"