|
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 <TextView android:id="@+id/settings_account_label_password" |
|
38 android:layout_width="fill_parent" |
|
39 android:layout_height="wrap_content" |
|
40 android:layout_below="@id/settings_account_username" |
|
41 android:text="@string/settings_account_password" |
|
42 style="@style/Label" /> |
|
43 <EditText android:id="@+id/settings_account_password" |
|
44 android:layout_width="fill_parent" |
|
45 android:layout_height="wrap_content" |
|
46 android:layout_below="@id/settings_account_label_password" |
|
47 android:password="true" /> |
|
48 <Button android:id="@+id/settings_account_button_save" |
|
49 android:layout_width="wrap_content" |
|
50 android:layout_height="wrap_content" |
|
51 android:layout_below="@id/settings_account_password" |
|
52 android:layout_alignParentRight="true" |
|
53 android:text="@string/button_save" /> |
|
54 </RelativeLayout> |
|
55 </ScrollView> |
|
56 |
|
57 <!-- |
|
58 XMPP Tab |
|
59 --> |
|
60 <ScrollView |
|
61 android:layout_width="fill_parent" |
|
62 android:layout_height="fill_parent" |
|
63 android:orientation="vertical"> |
|
64 <RelativeLayout android:id="@+id/settings_xmpp" |
|
65 android:orientation="vertical" |
|
66 android:layout_width="fill_parent" |
|
67 android:layout_height="fill_parent" |
|
68 android:padding="10dip"> |
|
69 <TableLayout android:id="@+id/settings_xmpp_table_sp" |
|
70 android:layout_width="fill_parent" |
|
71 android:layout_height="wrap_content" |
|
72 android:stretchColumns="1"> |
|
73 <TableRow> |
|
74 <TextView android:id="@+id/settings_xmpp_label_server" |
|
75 android:layout_column="1" |
|
76 android:layout_width="223dp" |
|
77 android:layout_height="wrap_content" |
|
78 android:text="@string/settings_xmpp_server" |
|
79 style="@style/Label" /> |
|
80 <TextView android:id="@+id/settings_xmpp_label_port" |
|
81 android:layout_column="2" |
|
82 android:layout_width="wrap_content" |
|
83 android:layout_height="wrap_content" |
|
84 android:text="@string/settings_xmpp_port" |
|
85 style="@style/Label" /> |
|
86 </TableRow> |
|
87 <TableRow> |
|
88 <EditText android:id="@+id/settings_xmpp_server" |
|
89 android:layout_column="1" |
|
90 android:layout_width="wrap_content" |
|
91 android:layout_height="wrap_content" /> |
|
92 <EditText android:id="@+id/settings_xmpp_port" |
|
93 android:layout_column="2" |
|
94 android:layout_width="wrap_content" |
|
95 android:layout_height="wrap_content" |
|
96 android:minWidth="77dp" |
|
97 android:numeric="integer" |
|
98 android:maxLength="5" /> |
|
99 </TableRow> |
|
100 </TableLayout> |
|
101 <CheckBox android:id="@+id/settings_xmpp_use_tls" |
|
102 android:layout_width="wrap_content" |
|
103 android:layout_height="wrap_content" |
|
104 android:text="@string/settings_xmpp_use_tls" |
|
105 android:layout_below="@id/settings_xmpp_table_sp" |
|
106 style="@style/Label" /> |
|
107 <Button android:id="@+id/settings_xmpp_button_save" |
|
108 android:layout_width="wrap_content" |
|
109 android:layout_height="wrap_content" |
|
110 android:layout_alignParentRight="true" |
|
111 android:layout_below="@id/settings_xmpp_use_tls" |
|
112 android:text="@string/button_save" /> |
|
113 </RelativeLayout> |
|
114 </ScrollView> |
|
115 |
|
116 <!-- |
|
117 Proxy Tab |
|
118 --> |
|
119 <ScrollView |
|
120 android:layout_width="fill_parent" |
|
121 android:layout_height="fill_parent" |
|
122 android:orientation="vertical"> |
|
123 <RelativeLayout android:id="@+id/settings_proxy" |
|
124 android:orientation="vertical" |
|
125 android:layout_width="fill_parent" |
|
126 android:layout_height="fill_parent" |
|
127 android:padding="10dip"> |
|
128 <CheckBox android:id="@+id/settings_proxy_use" |
|
129 android:layout_width="wrap_content" |
|
130 android:layout_height="wrap_content" |
|
131 android:text="@string/settings_proxy_use" |
|
132 style="@style/Label" /> |
|
133 <LinearLayout android:id="@+id/settings_proxy_parameters" |
|
134 android:layout_width="fill_parent" |
|
135 android:layout_height="fill_parent" |
|
136 android:layout_below="@id/settings_proxy_use" |
|
137 android:orientation="vertical"> |
|
138 <Spinner android:id="@+id/settings_proxy_type" |
|
139 android:layout_width="fill_parent" |
|
140 android:layout_height="wrap_content" /> |
|
141 <TableLayout android:id="@+id/settings_proxy_table_sp" |
|
142 android:layout_width="fill_parent" |
|
143 android:layout_height="wrap_content" |
|
144 android:stretchColumns="1"> |
|
145 <TableRow> |
|
146 <TextView android:id="@+id/settings_proxy_label_server" |
|
147 android:layout_column="1" |
|
148 android:layout_width="223dp" |
|
149 android:layout_height="wrap_content" |
|
150 android:text="@string/settings_proxy_server" |
|
151 style="@style/Label" /> |
|
152 <TextView android:id="@+id/settings_proxy_label_port" |
|
153 android:layout_column="2" |
|
154 android:layout_width="wrap_content" |
|
155 android:layout_height="wrap_content" |
|
156 android:text="@string/settings_proxy_port" |
|
157 style="@style/Label" /> |
|
158 </TableRow> |
|
159 <TableRow> |
|
160 <EditText android:id="@+id/settings_proxy_server" |
|
161 android:layout_column="1" |
|
162 android:layout_width="wrap_content" |
|
163 android:layout_height="wrap_content" /> |
|
164 <EditText android:id="@+id/settings_proxy_port" |
|
165 android:layout_column="2" |
|
166 android:layout_width="wrap_content" |
|
167 android:layout_height="wrap_content" |
|
168 android:minWidth="77dp" |
|
169 android:numeric="integer" |
|
170 android:maxLength="5" /> |
|
171 </TableRow> |
|
172 </TableLayout> |
|
173 <TextView android:id="@+id/settings_proxy_label_username" |
|
174 android:layout_width="fill_parent" |
|
175 android:layout_height="wrap_content" |
|
176 android:text="@string/settings_proxy_username" |
|
177 style="@style/Label" /> |
|
178 <EditText android:id="@+id/settings_proxy_username" |
|
179 android:layout_width="fill_parent" |
|
180 android:layout_height="wrap_content" /> |
|
181 <TextView android:id="@+id/settings_proxy_label_password" |
|
182 android:layout_width="fill_parent" |
|
183 android:layout_height="wrap_content" |
|
184 android:text="@string/settings_proxy_password" |
|
185 style="@style/Label" /> |
|
186 <EditText android:id="@+id/settings_proxy_password" |
|
187 android:layout_width="fill_parent" |
|
188 android:layout_height="wrap_content" |
|
189 android:password="true" /> |
|
190 </LinearLayout> |
|
191 <Button android:id="@+id/settings_proxy_button_save" |
|
192 android:layout_width="wrap_content" |
|
193 android:layout_height="wrap_content" |
|
194 android:layout_alignParentRight="true" |
|
195 android:text="@string/button_save" /> |
|
196 </RelativeLayout> |
|
197 </ScrollView> |
|
198 </FrameLayout> |
|
199 </LinearLayout> |
|
200 </TabHost> |