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:inputType="textNoSuggestions"
46 android:hint="jdoe@example.com"
47 android:textAppearance="?android:attr/textAppearanceSmallInverse" />
51 android:layout_width="match_parent"
52 android:layout_height="48dp" >
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" />
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" />
72 android:layout_width="match_parent"
73 android:layout_height="48dp" >
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" />
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|textNoSuggestions"
89 android:hint="(Base32 encoded)"
90 android:textAppearance="?android:attr/textAppearanceSmall" />
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" />
101 android:layout_width="match_parent"
102 android:layout_height="48dp" >
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" />
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" />
120 android:layout_width="match_parent"
121 android:layout_height="48dp" >
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" />
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" />
139 android:layout_width="match_parent"
140 android:layout_height="48dp" >
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" />
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"
160 android:layout_width="match_parent"
161 android:layout_height="48dp" >
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" />
171 android:layout_width="0dp"
172 android:layout_height="match_parent"
173 android:layout_weight="1"
174 android:orientation="horizontal" >
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"
185 android:id="@+id/digits8"
186 android:layout_width="0dp"
187 android:layout_height="match_parent"
188 android:layout_weight="1"