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"
|
|
69 android:text="RSA"
|
|
70 android:paddingRight="30dip" />
|
|
71
|
|
72 <RadioButton
|
|
73 android:id="@+id/dsa"
|
|
74 android:layout_width="wrap_content"
|
|
75 android:layout_height="wrap_content"
|
|
76 android:text="DSA" />
|
|
77
|
|
78 <RadioButton
|
|
79 android:id="@+id/ec"
|
|
80 android:layout_width="wrap_content"
|
|
81 android:layout_height="wrap_content"
|
|
82 android:text="EC" />
|
|
83 </RadioGroup>
|
|
84 </TableRow>
|
|
85
|
|
86 <TableRow>
|
|
87 <TextView
|
|
88 android:text="@string/prompt_bits"
|
|
89 android:paddingRight="10dip"
|
|
90 android:textAppearance="?android:attr/textAppearanceMedium"
|
|
91 android:gravity="right|center_vertical" />
|
|
92
|
|
93 <EditText
|
|
94 android:id="@+id/bits"
|
|
95 android:inputType="number"
|
|
96 android:layout_height="wrap_content"
|
|
97 android:text="2048"
|
|
98 android:singleLine="true"
|
|
99 android:layout_weight="1" />
|
|
100 </TableRow>
|
|
101
|
|
102 <SeekBar
|
|
103 android:layout_height="wrap_content"
|
|
104 android:id="@+id/bits_slider"
|
|
105 android:layout_width="fill_parent"
|
|
106 android:paddingBottom="10dip"
|
|
107 android:max="3328"
|
|
108 android:progress="256" />
|
|
109
|
|
110 <TextView
|
|
111 android:text="@string/prompt_password_can_be_blank"
|
|
112 android:gravity="left"
|
|
113 android:layout_height="wrap_content"
|
|
114 android:layout_width="wrap_content" />
|
|
115
|
|
116 <TableRow>
|
|
117 <TextView
|
|
118 android:paddingRight="10dip"
|
|
119 android:gravity="right|center_vertical"
|
|
120 android:layout_width="wrap_content"
|
|
121 android:layout_height="wrap_content"
|
|
122 android:textAppearance="?android:attr/textAppearanceMedium"
|
|
123 android:text="@string/prompt_password" />
|
|
124
|
|
125 <EditText
|
|
126 android:id="@+id/password1"
|
|
127 android:layout_width="wrap_content"
|
|
128 android:layout_height="wrap_content"
|
|
129 android:inputType="textPassword"
|
|
130 android:singleLine="true"
|
|
131 android:layout_weight="1" />
|
|
132 </TableRow>
|
|
133
|
|
134 <TableRow>
|
|
135 <LinearLayout
|
|
136 android:paddingRight="10dip"
|
|
137 android:orientation="vertical"
|
|
138 android:gravity="right|center_vertical">
|
|
139
|
|
140 <TextView
|
|
141 android:gravity="right|bottom"
|
|
142 android:layout_width="wrap_content"
|
|
143 android:layout_height="wrap_content"
|
|
144 android:textAppearance="?android:attr/textAppearanceMedium"
|
|
145 android:text="@string/prompt_password" />
|
|
146
|
|
147 <TextView
|
|
148 android:gravity="right|top"
|
|
149 android:layout_width="wrap_content"
|
|
150 android:layout_height="wrap_content"
|
|
151 android:textAppearance="?android:attr/textAppearanceSmall"
|
|
152 android:text="@string/prompt_again" />
|
|
153 </LinearLayout>
|
|
154
|
|
155 <EditText
|
|
156 android:id="@+id/password2"
|
|
157 android:layout_width="wrap_content"
|
|
158 android:layout_height="wrap_content"
|
|
159 android:inputType="textPassword"
|
|
160 android:singleLine="true"
|
|
161 android:layout_weight="1" />
|
|
162 </TableRow>
|
|
163
|
|
164 <CheckBox
|
|
165 android:layout_width="wrap_content"
|
|
166 android:layout_height="wrap_content"
|
|
167 android:id="@+id/unlock_at_startup"
|
|
168 android:text="@string/pubkey_load_on_start" />
|
|
169
|
|
170 <CheckBox
|
|
171 android:layout_width="wrap_content"
|
|
172 android:layout_height="wrap_content"
|
|
173 android:id="@+id/confirm_use"
|
|
174 android:text="@string/pubkey_confirm_use" />
|
|
175
|
|
176 <Button
|
|
177 android:layout_width="wrap_content"
|
|
178 android:layout_height="wrap_content"
|
|
179 android:id="@+id/save"
|
|
180 android:text="@string/pubkey_generate"
|
|
181 android:enabled="false" />
|
|
182 </TableLayout>
|
|
183 </ScrollView>
|