1 <?xml version=
"1.0" encoding=
"utf-8"?>
3 ownCloud Android client application
5 Copyright (C)
2012 Bartek Przybylski
6 Copyright (C)
2012-
2013 ownCloud Inc.
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version
2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see
<http://www.gnu.org/licenses
/>.
21 <LinearLayout xmlns:
android=
"http://schemas.android.com/apk/res/android"
22 xmlns:
oc=
"http://schemas.android.com/apk/res/com.owncloud.android"
23 android:
layout_width=
"fill_parent"
24 android:
layout_height=
"fill_parent"
25 android:
focusable=
"true"
26 android:
gravity=
"center|fill"
27 android:
orientation=
"vertical" >
30 android:
layout_width=
"match_parent"
31 android:
layout_height=
"wrap_content"
32 android:
layout_gravity=
"center"
33 android:
layout_marginLeft=
"16dip"
34 android:
layout_marginRight=
"16dip"
35 android:
layout_weight=
"1" >
38 android:
layout_width=
"match_parent"
39 android:
layout_height=
"match_parent" >
42 android:
id=
"@+id/imageView1"
43 android:
layout_width=
"match_parent"
44 android:
layout_height=
"match_parent"
45 android:
layout_margin=
"7dp"
46 android:
layout_weight=
"1"
47 android:
src=
"@drawable/owncloud_logo" />
50 android:
id=
"@+id/LinearLayout1"
51 android:
layout_width=
"match_parent"
52 android:
layout_height=
"wrap_content"
53 android:
layout_gravity=
"center"
54 android:
layout_weight=
"1"
55 android:
orientation=
"vertical" >
58 android:
layout_width=
"match_parent"
59 android:
layout_height=
"wrap_content"
60 android:
layout_weight=
"1" >
63 android:
id=
"@+id/hostUrlInput"
64 android:
layout_width=
"match_parent"
65 android:
layout_height=
"wrap_content"
67 android:
hint=
"@string/auth_host_url"
68 android:
inputType=
"textNoSuggestions">
73 android:
id=
"@+id/refreshButton"
74 android:
layout_width=
"wrap_content"
75 android:
layout_height=
"wrap_content"
76 android:
layout_gravity=
"right|center_vertical"
77 android:
src=
"@drawable/ic_action_refresh_black"
78 android:
onClick=
"onRefreshClick"
79 android:
visibility=
"invisible" />
83 android:
layout_width=
"match_parent"
84 android:
layout_height=
"50dp"
85 android:
layout_weight=
"1" >
88 android:
id=
"@+id/action_indicator"
89 android:
layout_width=
"wrap_content"
90 android:
layout_height=
"wrap_content"
91 android:
layout_marginLeft=
"5dp"
92 android:
layout_marginRight=
"5dp"
93 android:
src=
"@android:drawable/stat_notify_sync"
94 android:
visibility=
"invisible" />
97 android:
id=
"@+id/status_text"
98 android:
layout_width=
"wrap_content"
99 android:
layout_height=
"wrap_content"
100 android:
text=
"TextView"
101 android:
visibility=
"invisible" />
105 android:
id=
"@+id/oauth_onOff_check"
106 android:
layout_width=
"wrap_content"
107 android:
layout_height=
"wrap_content"
108 android:
checked=
"false"
109 android:
onClick=
"onCheckClick"
110 android:
text=
"@string/oauth_check_onoff"
111 android:
textAppearance=
"?android:attr/textAppearanceSmall" />
114 android:
id=
"@+id/textView2"
115 android:
layout_width=
"wrap_content"
116 android:
layout_height=
"0dp"
117 android:
layout_weight=
"1"
118 android:
text=
"@string/auth_login_details"
119 android:
textAppearance=
"?android:attr/textAppearanceSmall" />
122 android:
id=
"@+id/oAuthEntryPoint_1"
123 android:
layout_width=
"match_parent"
124 android:
layout_height=
"wrap_content"
125 android:
layout_weight=
"1"
127 android:
enabled=
"false"
128 android:
text=
"@string/oauth_url_endpoint_auth"
129 android:
singleLine=
"true"
130 android:
visibility=
"gone" >
136 android:
id=
"@+id/oAuthEntryPoint_2"
137 android:
layout_width=
"match_parent"
138 android:
layout_height=
"wrap_content"
139 android:
layout_weight=
"1"
141 android:
enabled=
"false"
142 android:
text=
"@string/oauth_url_endpoint_access"
143 android:
singleLine=
"true"
144 android:
visibility=
"gone" >
150 android:
id=
"@+id/account_username"
151 android:
layout_width=
"match_parent"
152 android:
layout_height=
"0dp"
153 android:
layout_weight=
"1"
155 android:
hint=
"@string/auth_username"
156 android:
inputType=
"textNoSuggestions" />
159 android:
layout_width=
"match_parent"
160 android:
layout_height=
"wrap_content"
161 android:
layout_weight=
"1" >
164 android:
id=
"@+id/account_password"
165 android:
layout_width=
"match_parent"
166 android:
layout_height=
"wrap_content"
168 android:
hint=
"@string/auth_password"
169 android:
inputType=
"textPassword"/>
172 android:
id=
"@+id/viewPasswordButton"
173 android:
layout_width=
"wrap_content"
174 android:
layout_height=
"wrap_content"
175 android:
layout_gravity=
"right|center_vertical"
176 android:
src=
"@android:drawable/ic_menu_view"
177 android:
onClick=
"onViewPasswordClick"
178 android:
visibility=
"invisible" />
183 android:
id=
"@+id/auth_status_layout"
184 android:
layout_width=
"match_parent"
185 android:
layout_height=
"wrap_content"
186 android:
layout_weight=
"1"
187 android:
visibility=
"invisible"
191 android:
id=
"@+id/auth_status_icon"
192 android:
layout_width=
"wrap_content"
193 android:
layout_height=
"wrap_content"
194 android:
layout_marginLeft=
"5dp"
195 android:
layout_marginRight=
"5dp"
196 android:
src=
"@android:drawable/stat_notify_sync"
200 android:
id=
"@+id/auth_status_text"
201 android:
layout_width=
"wrap_content"
202 android:
layout_height=
"wrap_content"
203 android:
text=
"@string/text_placeholder"
209 android:
id=
"@+id/auth_status_text"
210 android:
layout_width=
"match_parent"
211 android:
layout_height=
"wrap_content"
212 android:
layout_weight=
"1"
213 android:
text=
"@string/text_placeholder"
214 android:
layout_marginLeft=
"5dp"
215 android:
layout_marginRight=
"5dp"
216 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
217 android:
drawablePadding=
"5dip"
218 android:
visibility=
"invisible"
226 android:
layout_width=
"match_parent"
227 android:
layout_height=
"wrap_content"
228 android:
layout_alignParentBottom=
"true" >
231 android:
id=
"@+id/buttons_layout"
232 android:
layout_width=
"match_parent"
233 android:
layout_height=
"wrap_content"
234 android:
weightSum=
"1">
237 android:
id=
"@+id/buttonCancel"
238 android:
layout_width=
"match_parent"
239 android:
layout_height=
"wrap_content"
240 android:
layout_weight=
".5"
241 android:
onClick=
"onCancelClick"
242 android:
text=
"@string/common_cancel" />
245 android:
id=
"@+id/buttonOK"
246 android:
layout_width=
"match_parent"
247 android:
layout_height=
"wrap_content"
248 android:
layout_weight=
".5"
249 android:
enabled=
"false"
250 android:
onClick=
"onOkClick"
251 android:
text=
"@string/setup_btn_connect"
252 android:
textColor=
"@android:color/black" />
257 android:
id=
"@+id/account_register"
258 android:
layout_width=
"wrap_content"
259 android:
layout_height=
"wrap_content"
260 android:
layout_below=
"@id/buttons_layout"
261 android:
layout_centerHorizontal=
"true"
262 android:
onClick=
"onRegisterClick"
263 android:
paddingTop=
"10dp"
264 android:
paddingBottom=
"10dp"
265 android:
textColor=
"#0000FF"
266 android:
background=
"@android:color/transparent" />
267 <!-- android:
text=
"@string/app_name @string/auth_register" /--
>