1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <TabHost android:id="@+id/settings_tab_host" xmlns:android="http://schemas.android.com/apk/res/android" |
|
3 android:layout_width="fill_parent" |
|
4 android:layout_height="fill_parent"> |
|
5 <LinearLayout |
|
6 android:orientation="vertical" |
|
7 android:layout_width="fill_parent" |
|
8 android:layout_height="fill_parent"> |
|
9 <TabWidget android:id="@android:id/tabs" |
|
10 android:layout_width="fill_parent" |
|
11 android:layout_height="wrap_content" /> |
|
12 <FrameLayout android:id="@android:id/tabcontent" |
|
13 android:layout_width="fill_parent" |
|
14 android:layout_height="fill_parent"> |
|
15 |
|
16 <!-- |
|
17 Account Tab |
|
18 --> |
|
19 <ScrollView |
|
20 android:orientation="vertical" |
|
21 android:layout_width="fill_parent" |
|
22 android:layout_height="fill_parent"> |
|
23 <RelativeLayout android:id="@+id/settings_account" |
|
24 android:orientation="vertical" |
|
25 android:layout_width="fill_parent" |
|
26 android:layout_height="fill_parent" |
|
27 android:padding="10dip"> |
|
28 <TextView android:id="@+id/settings_account_label_username" |
|
29 android:layout_width="fill_parent" |
|
30 android:layout_height="wrap_content" |
|
31 android:text="@string/settings_account_username" |
|
32 style="@style/Label" /> |
|
33 <EditText android:id="@+id/settings_account_username" |
|
34 android:layout_width="fill_parent" |
|
35 android:layout_height="wrap_content" |
|
36 android:layout_below="@id/settings_account_label_username" |
|
37 android:singleLine="true" /> |
|
38 <TextView android:id="@+id/settings_account_label_password" |
|
39 android:layout_width="fill_parent" |
|
40 android:layout_height="wrap_content" |
|
41 android:layout_below="@id/settings_account_username" |
|
42 android:text="@string/settings_account_password" |
|
43 style="@style/Label" /> |
|
44 <EditText android:id="@+id/settings_account_password" |
|
45 android:layout_width="fill_parent" |
|
46 android:layout_height="wrap_content" |
|
47 android:layout_below="@id/settings_account_label_password" |
|
48 android:password="true" |
|
49 android:singleLine="true" /> |
|
50 <Button android:id="@+id/settings_account_button_save" |
|
51 android:layout_width="wrap_content" |
|
52 android:layout_height="wrap_content" |
|
53 android:layout_below="@id/settings_account_password" |
|
54 android:layout_alignParentRight="true" |
|
55 android:text="@string/button_save" /> |
|
56 </RelativeLayout> |
|
57 </ScrollView> |
|
58 |
|
59 <!-- |
|
60 XMPP Tab |
|
61 --> |
|
62 <ScrollView |
|
63 android:layout_width="fill_parent" |
|
64 android:layout_height="fill_parent" |
|
65 android:orientation="vertical"> |
|
66 <RelativeLayout android:id="@+id/settings_xmpp" |
|
67 android:orientation="vertical" |
|
68 android:layout_width="fill_parent" |
|
69 android:layout_height="fill_parent" |
|
70 android:padding="10dip"> |
|
71 <TableLayout android:id="@+id/settings_xmpp_table_sp" |
|
72 android:layout_width="fill_parent" |
|
73 android:layout_height="wrap_content" |
|
74 android:stretchColumns="1"> |
|
75 <TableRow> |
|
76 <TextView android:id="@+id/settings_xmpp_label_server" |
|
77 android:layout_column="1" |
|
78 android:layout_width="223dp" |
|
79 android:layout_height="wrap_content" |
|
80 android:text="@string/settings_xmpp_server" |
|
81 style="@style/Label" /> |
|
82 <TextView android:id="@+id/settings_xmpp_label_port" |
|
83 android:layout_column="2" |
|
84 android:layout_width="wrap_content" |
|
85 android:layout_height="wrap_content" |
|
86 android:text="@string/settings_xmpp_port" |
|
87 style="@style/Label" /> |
|
88 </TableRow> |
|
89 <TableRow> |
|
90 <EditText android:id="@+id/settings_xmpp_server" |
|
91 android:layout_column="1" |
|
92 android:layout_width="wrap_content" |
|
93 android:layout_height="wrap_content" |
|
94 android:maxWidth="223dp" |
|
95 android:singleLine="true" /> |
|
96 <EditText android:id="@+id/settings_xmpp_port" |
|
97 android:layout_column="2" |
|
98 android:layout_width="wrap_content" |
|
99 android:layout_height="wrap_content" |
|
100 android:minWidth="77dp" |
|
101 android:numeric="integer" |
|
102 android:maxLength="5" |
|
103 android:singleLine="true" /> |
|
104 </TableRow> |
|
105 </TableLayout> |
|
106 <CheckBox android:id="@+id/settings_xmpp_use_tls" |
|
107 android:layout_width="wrap_content" |
|
108 android:layout_height="wrap_content" |
|
109 android:text="@string/settings_xmpp_use_tls" |
|
110 android:layout_below="@id/settings_xmpp_table_sp" |
|
111 android:focusable="true" |
|
112 style="@style/CheckBoxLabel" /> |
|
113 <Button android:id="@+id/settings_xmpp_button_save" |
|
114 android:layout_width="wrap_content" |
|
115 android:layout_height="wrap_content" |
|
116 android:layout_alignParentRight="true" |
|
117 android:layout_below="@id/settings_xmpp_use_tls" |
|
118 android:text="@string/button_save" /> |
|
119 </RelativeLayout> |
|
120 </ScrollView> |
|
121 |
|
122 <!-- |
|
123 Proxy Tab |
|
124 --> |
|
125 <ScrollView |
|
126 android:layout_width="fill_parent" |
|
127 android:layout_height="fill_parent" |
|
128 android:orientation="vertical"> |
|
129 <RelativeLayout android:id="@+id/settings_proxy" |
|
130 android:orientation="vertical" |
|
131 android:layout_width="fill_parent" |
|
132 android:layout_height="fill_parent" |
|
133 android:padding="10dip"> |
|
134 <CheckBox android:id="@+id/settings_proxy_use" |
|
135 android:layout_width="wrap_content" |
|
136 android:layout_height="wrap_content" |
|
137 android:text="@string/settings_proxy_use" |
|
138 android:focusable="true" |
|
139 style="@style/CheckBoxLabel" /> |
|
140 <LinearLayout android:id="@+id/settings_proxy_parameters" |
|
141 android:layout_width="fill_parent" |
|
142 android:layout_height="fill_parent" |
|
143 android:layout_below="@id/settings_proxy_use" |
|
144 android:orientation="vertical"> |
|
145 <Spinner android:id="@+id/settings_proxy_type" |
|
146 android:layout_width="fill_parent" |
|
147 android:layout_height="wrap_content" /> |
|
148 <TableLayout android:id="@+id/settings_proxy_table_sp" |
|
149 android:layout_width="fill_parent" |
|
150 android:layout_height="wrap_content" |
|
151 android:stretchColumns="1"> |
|
152 <TableRow> |
|
153 <TextView android:id="@+id/settings_proxy_label_server" |
|
154 android:layout_column="1" |
|
155 android:layout_width="223dp" |
|
156 android:layout_height="wrap_content" |
|
157 android:text="@string/settings_proxy_server" |
|
158 style="@style/Label" /> |
|
159 <TextView android:id="@+id/settings_proxy_label_port" |
|
160 android:layout_column="2" |
|
161 android:layout_width="wrap_content" |
|
162 android:layout_height="wrap_content" |
|
163 android:text="@string/settings_proxy_port" |
|
164 style="@style/Label" /> |
|
165 </TableRow> |
|
166 <TableRow> |
|
167 <EditText android:id="@+id/settings_proxy_server" |
|
168 android:layout_column="1" |
|
169 android:layout_width="wrap_content" |
|
170 android:layout_height="wrap_content" |
|
171 android:maxWidth="223dp" |
|
172 android:singleLine="true" /> |
|
173 <EditText android:id="@+id/settings_proxy_port" |
|
174 android:layout_column="2" |
|
175 android:layout_width="wrap_content" |
|
176 android:layout_height="wrap_content" |
|
177 android:minWidth="77dp" |
|
178 android:numeric="integer" |
|
179 android:maxLength="5" |
|
180 android:singleLine="true" /> |
|
181 </TableRow> |
|
182 </TableLayout> |
|
183 <TextView android:id="@+id/settings_proxy_label_username" |
|
184 android:layout_width="fill_parent" |
|
185 android:layout_height="wrap_content" |
|
186 android:text="@string/settings_proxy_username" |
|
187 style="@style/Label" /> |
|
188 <EditText android:id="@+id/settings_proxy_username" |
|
189 android:layout_width="fill_parent" |
|
190 android:layout_height="wrap_content" |
|
191 android:singleLine="true" /> |
|
192 <TextView android:id="@+id/settings_proxy_label_password" |
|
193 android:layout_width="fill_parent" |
|
194 android:layout_height="wrap_content" |
|
195 android:text="@string/settings_proxy_password" |
|
196 style="@style/Label" /> |
|
197 <EditText android:id="@+id/settings_proxy_password" |
|
198 android:layout_width="fill_parent" |
|
199 android:layout_height="wrap_content" |
|
200 android:password="true" |
|
201 android:singleLine="true" /> |
|
202 </LinearLayout> |
|
203 <Button android:id="@+id/settings_proxy_button_save" |
|
204 android:layout_width="wrap_content" |
|
205 android:layout_height="wrap_content" |
|
206 android:layout_alignParentRight="true" |
|
207 android:text="@string/button_save" /> |
|
208 </RelativeLayout> |
|
209 </ScrollView> |
|
210 </FrameLayout> |
|
211 </LinearLayout> |
|
212 </TabHost> |
|