Mercurial > 510Connectbot
annotate res/layout/act_generatepubkey.xml @ 437:208b31032318
fix f11 and f12 keys on full hardware keyboards
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 19 Jun 2015 13:41:57 -0700 |
parents | 82d127ae1550 |
children |
rev | line source |
---|---|
0 | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <!-- | |
3 /* | |
4 * ConnectBot: simple, powerful, open-source SSH client for Android | |
5 * Copyright 2007 Kenny Root, Jeffrey Sharkey | |
6 * | |
7 * Licensed under the Apache License, Version 2.0 (the "License"); | |
8 * you may not use this file except in compliance with the License. | |
9 * You may obtain a copy of the License at | |
10 * | |
11 * http://www.apache.org/licenses/LICENSE-2.0 | |
12 * | |
13 * Unless required by applicable law or agreed to in writing, software | |
14 * distributed under the License is distributed on an "AS IS" BASIS, | |
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
16 * See the License for the specific language governing permissions and | |
17 * limitations under the License. | |
18 */ | |
19 --> | |
20 | |
21 <ScrollView | |
22 xmlns:android="http://schemas.android.com/apk/res/android" | |
23 android:layout_height="wrap_content" | |
24 android:scrollbars="vertical" | |
25 android:layout_width="fill_parent"> | |
26 | |
27 <TableLayout | |
28 android:orientation="vertical" | |
29 android:layout_height="wrap_content" | |
30 android:paddingLeft="10dip" | |
31 android:paddingRight="10dip" | |
32 android:scrollbars="vertical" | |
33 android:layout_width="fill_parent"> | |
34 | |
35 <TableRow> | |
36 <TextView | |
37 android:text="@string/prompt_nickname" | |
38 android:paddingRight="10dip" | |
39 android:gravity="right|center_vertical" | |
40 android:textAppearance="?android:attr/textAppearanceMedium" /> | |
41 | |
42 <EditText | |
43 android:id="@+id/nickname" | |
44 android:hint="@string/prompt_nickname_hint_pubkey" | |
45 android:layout_height="wrap_content" | |
46 android:singleLine="true" | |
47 android:layout_weight="1" /> | |
48 </TableRow> | |
49 | |
50 <TableRow> | |
51 <TextView | |
52 android:text="@string/prompt_type" | |
53 android:paddingRight="10dip" | |
54 android:textAppearance="?android:attr/textAppearanceMedium" | |
55 android:gravity="bottom|right" | |
56 android:layout_gravity="center_vertical" /> | |
57 | |
58 <RadioGroup | |
59 android:id="@+id/key_type" | |
60 android:layout_width="wrap_content" | |
61 android:layout_height="wrap_content" | |
62 android:orientation="horizontal" | |
63 android:checkedButton="@+id/rsa"> | |
64 | |
65 <RadioButton | |
66 android:id="@+id/rsa" | |
67 android:layout_width="wrap_content" | |
68 android:layout_height="wrap_content" | |
340
82d127ae1550
fix pubkey display; better layout for generate pub keys
Carl Byington <carl@five-ten-sg.com>
parents:
0
diff
changeset
|
69 android:text="RSA" /> |
0 | 70 |
71 <RadioButton | |
72 android:id="@+id/dsa" | |
73 android:layout_width="wrap_content" | |
74 android:layout_height="wrap_content" | |
75 android:text="DSA" /> | |
76 | |
77 <RadioButton | |
78 android:id="@+id/ec" | |
79 android:layout_width="wrap_content" | |
80 android:layout_height="wrap_content" | |
81 android:text="EC" /> | |
82 </RadioGroup> | |
83 </TableRow> | |
84 | |
85 <TableRow> | |
86 <TextView | |
87 android:text="@string/prompt_bits" | |
88 android:paddingRight="10dip" | |
89 android:textAppearance="?android:attr/textAppearanceMedium" | |
90 android:gravity="right|center_vertical" /> | |
91 | |
92 <EditText | |
93 android:id="@+id/bits" | |
94 android:inputType="number" | |
95 android:layout_height="wrap_content" | |
96 android:text="2048" | |
97 android:singleLine="true" | |
98 android:layout_weight="1" /> | |
99 </TableRow> | |
100 | |
101 <SeekBar | |
102 android:layout_height="wrap_content" | |
103 android:id="@+id/bits_slider" | |
104 android:layout_width="fill_parent" | |
105 android:paddingBottom="10dip" | |
106 android:max="3328" | |
107 android:progress="256" /> | |
108 | |
109 <TextView | |
110 android:text="@string/prompt_password_can_be_blank" | |
111 android:gravity="left" | |
112 android:layout_height="wrap_content" | |
113 android:layout_width="wrap_content" /> | |
114 | |
115 <TableRow> | |
116 <TextView | |
117 android:paddingRight="10dip" | |
118 android:gravity="right|center_vertical" | |
119 android:layout_width="wrap_content" | |
120 android:layout_height="wrap_content" | |
121 android:textAppearance="?android:attr/textAppearanceMedium" | |
122 android:text="@string/prompt_password" /> | |
123 | |
124 <EditText | |
125 android:id="@+id/password1" | |
126 android:layout_width="wrap_content" | |
127 android:layout_height="wrap_content" | |
128 android:inputType="textPassword" | |
129 android:singleLine="true" | |
130 android:layout_weight="1" /> | |
131 </TableRow> | |
132 | |
133 <TableRow> | |
134 <LinearLayout | |
135 android:paddingRight="10dip" | |
136 android:orientation="vertical" | |
137 android:gravity="right|center_vertical"> | |
138 | |
139 <TextView | |
140 android:gravity="right|bottom" | |
141 android:layout_width="wrap_content" | |
142 android:layout_height="wrap_content" | |
143 android:textAppearance="?android:attr/textAppearanceMedium" | |
144 android:text="@string/prompt_password" /> | |
145 | |
146 <TextView | |
147 android:gravity="right|top" | |
148 android:layout_width="wrap_content" | |
149 android:layout_height="wrap_content" | |
150 android:textAppearance="?android:attr/textAppearanceSmall" | |
151 android:text="@string/prompt_again" /> | |
152 </LinearLayout> | |
153 | |
154 <EditText | |
155 android:id="@+id/password2" | |
156 android:layout_width="wrap_content" | |
157 android:layout_height="wrap_content" | |
158 android:inputType="textPassword" | |
159 android:singleLine="true" | |
160 android:layout_weight="1" /> | |
161 </TableRow> | |
162 | |
163 <CheckBox | |
164 android:layout_width="wrap_content" | |
165 android:layout_height="wrap_content" | |
166 android:id="@+id/unlock_at_startup" | |
167 android:text="@string/pubkey_load_on_start" /> | |
168 | |
169 <CheckBox | |
170 android:layout_width="wrap_content" | |
171 android:layout_height="wrap_content" | |
172 android:id="@+id/confirm_use" | |
173 android:text="@string/pubkey_confirm_use" /> | |
174 | |
175 <Button | |
176 android:layout_width="wrap_content" | |
177 android:layout_height="wrap_content" | |
178 android:id="@+id/save" | |
179 android:text="@string/pubkey_generate" | |
180 android:enabled="false" /> | |
181 </TableLayout> | |
182 </ScrollView> |