1 <?xml version=
"1.0" encoding=
"utf-8"?>
3 ownCloud Android client application
5 Copyright (C)
2012 Bartek Przybylski
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version
3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see
<http://www.gnu.org/licenses
/>.
19 <LinearLayout xmlns:
android=
"http://schemas.android.com/apk/res/android"
20 android:
layout_width=
"fill_parent"
21 android:
layout_height=
"fill_parent"
22 android:
focusable=
"true"
23 android:
gravity=
"center|fill"
24 android:
orientation=
"vertical" >
27 android:
layout_width=
"match_parent"
28 android:
layout_height=
"wrap_content"
29 android:
layout_gravity=
"center"
30 android:
layout_marginLeft=
"16dip"
31 android:
layout_marginRight=
"16dip"
32 android:
layout_weight=
"1" >
35 android:
id=
"@+id/LinearLayout1"
36 android:
layout_width=
"match_parent"
37 android:
layout_height=
"wrap_content"
38 android:
layout_gravity=
"center"
39 android:
orientation=
"vertical" >
42 android:
id=
"@+id/imageView1"
43 android:
layout_width=
"match_parent"
44 android:
layout_height=
"wrap_content"
45 android:
layout_marginBottom=
"10dp"
46 android:
layout_weight=
"1"
47 android:
src=
"@drawable/owncloud_logo" />
50 android:
layout_width=
"match_parent"
51 android:
layout_height=
"wrap_content"
52 android:
layout_weight=
"1" >
55 android:
id=
"@+id/hostUrlInput"
56 android:
layout_width=
"match_parent"
57 android:
layout_height=
"wrap_content"
59 android:
hint=
"@string/auth_host_url"
60 android:
inputType=
"textNoSuggestions" >
65 android:
id=
"@+id/refreshButton"
66 android:
layout_width=
"wrap_content"
67 android:
layout_height=
"wrap_content"
68 android:
src=
"@drawable/ic_action_refresh_black"
69 android:
onClick=
"onRefreshClick"
70 android:
layout_gravity=
"right|center_vertical"
71 android:
visibility=
"invisible" />
76 android:
layout_width=
"match_parent"
77 android:
layout_height=
"50dp"
78 android:
layout_weight=
"1" >
81 android:
id=
"@+id/action_indicator"
82 android:
layout_width=
"wrap_content"
83 android:
layout_height=
"wrap_content"
84 android:
layout_marginLeft=
"5dp"
85 android:
layout_marginRight=
"5dp"
86 android:
src=
"@android:drawable/stat_notify_sync"
87 android:
visibility=
"invisible" />
90 android:
id=
"@+id/status_text"
91 android:
layout_width=
"wrap_content"
92 android:
layout_height=
"wrap_content"
93 android:
text=
"TextView"
94 android:
visibility=
"invisible" />
98 android:
id=
"@+id/oauth_onOff_check"
99 android:
layout_width=
"wrap_content"
100 android:
layout_height=
"wrap_content"
101 android:
checked=
"false"
102 android:
onClick=
"onCheckClick"
103 android:
text=
"@string/oauth_check_onoff"
104 android:
textAppearance=
"?android:attr/textAppearanceSmall" />
107 android:
id=
"@+id/textView2"
108 android:
layout_width=
"wrap_content"
109 android:
layout_height=
"0dp"
110 android:
layout_weight=
"1"
111 android:
text=
"@string/auth_login_details"
112 android:
textAppearance=
"?android:attr/textAppearanceSmall" />
115 android:
id=
"@+id/oAuthEntryPoint_1"
116 android:
layout_width=
"match_parent"
117 android:
layout_height=
"wrap_content"
118 android:
layout_weight=
"1"
120 android:
enabled=
"false"
121 android:
text=
"@string/oauth_url_endpoint_auth"
122 android:
singleLine=
"true"
123 android:
visibility=
"gone" >
129 android:
id=
"@+id/oAuthEntryPoint_2"
130 android:
layout_width=
"match_parent"
131 android:
layout_height=
"wrap_content"
132 android:
layout_weight=
"1"
134 android:
enabled=
"false"
135 android:
text=
"@string/oauth_url_endpoint_access"
136 android:
singleLine=
"true"
137 android:
visibility=
"gone" >
143 android:
id=
"@+id/account_username"
144 android:
layout_width=
"match_parent"
145 android:
layout_height=
"0dp"
146 android:
layout_weight=
"1"
148 android:
hint=
"@string/auth_username"
149 android:
inputType=
"textNoSuggestions" />
152 android:
layout_width=
"match_parent"
153 android:
layout_height=
"wrap_content"
154 android:
layout_weight=
"1" >
157 android:
id=
"@+id/account_password"
158 android:
layout_width=
"match_parent"
159 android:
layout_height=
"wrap_content"
161 android:
hint=
"@string/auth_password"
162 android:
inputType=
"textPassword"/>
165 android:
id=
"@+id/viewPasswordButton"
166 android:
layout_width=
"wrap_content"
167 android:
layout_height=
"wrap_content"
168 android:
layout_gravity=
"right|center_vertical"
169 android:
src=
"@android:drawable/ic_menu_view"
170 android:
onClick=
"onViewPasswordClick"
171 android:
visibility=
"invisible" />
176 android:
id=
"@+id/auth_status_layout"
177 android:
layout_width=
"match_parent"
178 android:
layout_height=
"wrap_content"
179 android:
layout_weight=
"1"
180 android:
visibility=
"invisible"
184 android:
id=
"@+id/auth_status_icon"
185 android:
layout_width=
"wrap_content"
186 android:
layout_height=
"wrap_content"
187 android:
layout_marginLeft=
"5dp"
188 android:
layout_marginRight=
"5dp"
189 android:
src=
"@android:drawable/stat_notify_sync"
193 android:
id=
"@+id/auth_status_text"
194 android:
layout_width=
"wrap_content"
195 android:
layout_height=
"wrap_content"
196 android:
text=
"@string/text_placeholder"
202 android:
id=
"@+id/auth_status_text"
203 android:
layout_width=
"match_parent"
204 android:
layout_height=
"wrap_content"
205 android:
layout_weight=
"1"
206 android:
text=
"@string/text_placeholder"
207 android:
layout_marginLeft=
"5dp"
208 android:
layout_marginRight=
"5dp"
209 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
210 android:
drawablePadding=
"5dip"
211 android:
visibility=
"invisible"
219 android:
layout_width=
"match_parent"
220 android:
layout_height=
"wrap_content">
223 android:
id=
"@+id/buttons_layout"
224 android:
layout_width=
"match_parent"
225 android:
layout_height=
"wrap_content"
226 android:
weightSum=
"1" >
229 android:
id=
"@+id/buttonCancel"
230 android:
layout_width=
"match_parent"
231 android:
layout_height=
"wrap_content"
232 android:
layout_weight=
".5"
233 android:
onClick=
"onCancelClick"
234 android:
text=
"@string/common_cancel" />
237 android:
id=
"@+id/buttonOK"
238 android:
layout_width=
"match_parent"
239 android:
layout_height=
"wrap_content"
240 android:
layout_weight=
".5"
241 android:
enabled=
"false"
242 android:
onClick=
"onOkClick"
243 android:
text=
"@string/setup_btn_connect"
244 android:
textColor=
"@android:color/black" />
249 android:
id=
"@+id/account_register"
250 android:
layout_width=
"wrap_content"
251 android:
layout_height=
"wrap_content"
252 android:
layout_below=
"@id/buttons_layout"
253 android:
layout_centerHorizontal=
"true"
254 android:
onClick=
"onRegisterClick"
255 android:
paddingTop=
"10dp"
256 android:
paddingBottom=
"10dp"
257 android:
textColor=
"#0000FF"
258 android:
background=
"@android:color/transparent" />
259 <!-- android:
text=
"@string/app_name @string/auth_register" /--
>