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 version
2,
10 as published by the Free Software Foundation.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see
<http://www.gnu.org/licenses
/>.
20 <LinearLayout xmlns:
android=
"http://schemas.android.com/apk/res/android"
21 android:
layout_width=
"fill_parent"
22 android:
layout_height=
"fill_parent"
23 android:
focusable=
"true"
24 android:
gravity=
"center|fill"
25 android:
orientation=
"vertical" >
28 android:
layout_width=
"match_parent"
29 android:
layout_height=
"wrap_content"
30 android:
layout_gravity=
"center"
31 android:
layout_marginLeft=
"16dip"
32 android:
layout_marginRight=
"16dip"
33 android:
layout_weight=
"1" >
36 android:
id=
"@+id/LinearLayout1"
37 android:
layout_width=
"match_parent"
38 android:
layout_height=
"wrap_content"
39 android:
layout_gravity=
"center"
40 android:
orientation=
"vertical" >
43 android:
id=
"@+id/imageView1"
44 android:
layout_width=
"match_parent"
45 android:
layout_height=
"wrap_content"
46 android:
layout_marginBottom=
"10dp"
47 android:
layout_weight=
"1"
48 android:
src=
"@drawable/owncloud_logo" />
51 android:
layout_width=
"match_parent"
52 android:
layout_height=
"wrap_content"
53 android:
layout_weight=
"1" >
56 android:
id=
"@+id/hostUrlInput"
57 android:
layout_width=
"match_parent"
58 android:
layout_height=
"wrap_content"
60 android:
hint=
"@string/auth_host_url"
61 android:
inputType=
"textNoSuggestions" >
66 android:
id=
"@+id/refreshButton"
67 android:
layout_width=
"wrap_content"
68 android:
layout_height=
"wrap_content"
69 android:
src=
"@drawable/ic_action_refresh_black"
70 android:
onClick=
"onRefreshClick"
71 android:
layout_gravity=
"right|center_vertical"
72 android:
visibility=
"invisible" />
77 android:
layout_width=
"match_parent"
78 android:
layout_height=
"50dp"
79 android:
layout_weight=
"1" >
82 android:
id=
"@+id/action_indicator"
83 android:
layout_width=
"wrap_content"
84 android:
layout_height=
"wrap_content"
85 android:
layout_marginLeft=
"5dp"
86 android:
layout_marginRight=
"5dp"
87 android:
src=
"@android:drawable/stat_notify_sync"
88 android:
visibility=
"invisible" />
91 android:
id=
"@+id/status_text"
92 android:
layout_width=
"wrap_content"
93 android:
layout_height=
"wrap_content"
94 android:
text=
"TextView"
95 android:
visibility=
"invisible" />
99 android:
id=
"@+id/oauth_onOff_check"
100 android:
layout_width=
"wrap_content"
101 android:
layout_height=
"wrap_content"
102 android:
checked=
"false"
103 android:
onClick=
"onCheckClick"
104 android:
text=
"@string/oauth_check_onoff"
105 android:
textAppearance=
"?android:attr/textAppearanceSmall" />
108 android:
id=
"@+id/textView2"
109 android:
layout_width=
"wrap_content"
110 android:
layout_height=
"0dp"
111 android:
layout_weight=
"1"
112 android:
text=
"@string/auth_login_details"
113 android:
textAppearance=
"?android:attr/textAppearanceSmall" />
116 android:
id=
"@+id/oAuthEntryPoint_1"
117 android:
layout_width=
"match_parent"
118 android:
layout_height=
"wrap_content"
119 android:
layout_weight=
"1"
121 android:
text=
"@string/oauth2_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:
text=
"@string/oauth2_url_endpoint_access"
135 android:
singleLine=
"true"
136 android:
visibility=
"gone" >
142 android:
id=
"@+id/account_username"
143 android:
layout_width=
"match_parent"
144 android:
layout_height=
"0dp"
145 android:
layout_weight=
"1"
147 android:
hint=
"@string/auth_username"
148 android:
inputType=
"textNoSuggestions" />
151 android:
layout_width=
"match_parent"
152 android:
layout_height=
"wrap_content"
153 android:
layout_weight=
"1" >
156 android:
id=
"@+id/account_password"
157 android:
layout_width=
"match_parent"
158 android:
layout_height=
"wrap_content"
160 android:
hint=
"@string/auth_password"
161 android:
inputType=
"textPassword"/>
164 android:
id=
"@+id/viewPasswordButton"
165 android:
layout_width=
"wrap_content"
166 android:
layout_height=
"wrap_content"
167 android:
layout_gravity=
"right|center_vertical"
168 android:
src=
"@android:drawable/ic_menu_view"
169 android:
onClick=
"onViewPasswordClick"
170 android:
visibility=
"invisible" />
175 android:
id=
"@+id/auth_status_layout"
176 android:
layout_width=
"match_parent"
177 android:
layout_height=
"wrap_content"
178 android:
layout_weight=
"1"
179 android:
visibility=
"invisible"
183 android:
id=
"@+id/auth_status_icon"
184 android:
layout_width=
"wrap_content"
185 android:
layout_height=
"wrap_content"
186 android:
layout_marginLeft=
"5dp"
187 android:
layout_marginRight=
"5dp"
188 android:
src=
"@android:drawable/stat_notify_sync"
192 android:
id=
"@+id/auth_status_text"
193 android:
layout_width=
"wrap_content"
194 android:
layout_height=
"wrap_content"
195 android:
text=
"@string/text_placeholder"
201 android:
id=
"@+id/auth_status_text"
202 android:
layout_width=
"match_parent"
203 android:
layout_height=
"wrap_content"
204 android:
layout_weight=
"1"
205 android:
text=
"@string/text_placeholder"
206 android:
layout_marginLeft=
"5dp"
207 android:
layout_marginRight=
"5dp"
208 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
209 android:
drawablePadding=
"5dip"
210 android:
visibility=
"invisible"
218 android:
layout_width=
"match_parent"
219 android:
layout_height=
"wrap_content">
222 android:
id=
"@+id/buttons_layout"
223 android:
layout_width=
"match_parent"
224 android:
layout_height=
"wrap_content"
225 android:
weightSum=
"1" >
228 android:
id=
"@+id/buttonCancel"
229 android:
layout_width=
"match_parent"
230 android:
layout_height=
"wrap_content"
231 android:
layout_weight=
".5"
232 android:
onClick=
"onCancelClick"
233 android:
text=
"@string/common_cancel" />
236 android:
id=
"@+id/buttonOK"
237 android:
layout_width=
"match_parent"
238 android:
layout_height=
"wrap_content"
239 android:
layout_weight=
".5"
240 android:
enabled=
"false"
241 android:
onClick=
"onOkClick"
242 android:
text=
"@string/setup_btn_connect"
243 android:
textColor=
"@android:color/black" />
248 android:
id=
"@+id/account_register"
249 android:
layout_width=
"wrap_content"
250 android:
layout_height=
"wrap_content"
251 android:
layout_below=
"@id/buttons_layout"
252 android:
layout_centerHorizontal=
"true"
253 android:
onClick=
"onRegisterClick"
254 android:
paddingTop=
"10dp"
255 android:
paddingBottom=
"10dp"
256 android:
textColor=
"#0000FF"
257 android:
background=
"@android:color/transparent" />
258 <!-- android:
text=
"@string/app_name @string/auth_register" /--
>