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 android:
layout_width=
"fill_parent"
23 android:
layout_height=
"fill_parent"
24 android:
focusable=
"true"
25 android:
gravity=
"center|fill"
26 android:
orientation=
"vertical" >
29 android:
layout_width=
"match_parent"
30 android:
layout_height=
"wrap_content"
31 android:
layout_gravity=
"center"
32 android:
layout_marginLeft=
"16dip"
33 android:
layout_marginRight=
"16dip"
34 android:
layout_weight=
"1" >
37 android:
id=
"@+id/LinearLayout1"
38 android:
layout_width=
"match_parent"
39 android:
layout_height=
"wrap_content"
40 android:
layout_gravity=
"center"
41 android:
orientation=
"vertical" >
44 android:
id=
"@+id/imageView1"
45 android:
layout_width=
"match_parent"
46 android:
layout_height=
"wrap_content"
47 android:
layout_marginBottom=
"10dp"
48 android:
layout_weight=
"1"
49 android:
src=
"@drawable/owncloud_logo" />
52 android:
layout_width=
"match_parent"
53 android:
layout_height=
"wrap_content"
54 android:
layout_weight=
"1" >
57 android:
id=
"@+id/hostUrlInput"
58 android:
layout_width=
"match_parent"
59 android:
layout_height=
"wrap_content"
61 android:
hint=
"@string/auth_host_url"
62 android:
inputType=
"textNoSuggestions" >
67 android:
id=
"@+id/refreshButton"
68 android:
layout_width=
"wrap_content"
69 android:
layout_height=
"wrap_content"
70 android:
src=
"@drawable/ic_action_refresh_black"
71 android:
onClick=
"onRefreshClick"
72 android:
layout_gravity=
"right|center_vertical"
73 android:
visibility=
"invisible" />
78 android:
layout_width=
"match_parent"
79 android:
layout_height=
"50dp"
80 android:
layout_weight=
"1" >
83 android:
id=
"@+id/action_indicator"
84 android:
layout_width=
"wrap_content"
85 android:
layout_height=
"wrap_content"
86 android:
layout_marginLeft=
"5dp"
87 android:
layout_marginRight=
"5dp"
88 android:
src=
"@android:drawable/stat_notify_sync"
89 android:
visibility=
"invisible" />
92 android:
id=
"@+id/status_text"
93 android:
layout_width=
"wrap_content"
94 android:
layout_height=
"wrap_content"
95 android:
text=
"TextView"
96 android:
visibility=
"invisible" />
100 android:
id=
"@+id/oauth_onOff_check"
101 android:
layout_width=
"wrap_content"
102 android:
layout_height=
"wrap_content"
103 android:
checked=
"false"
104 android:
onClick=
"onCheckClick"
105 android:
text=
"@string/oauth_check_onoff"
106 android:
textAppearance=
"?android:attr/textAppearanceSmall" />
109 android:
id=
"@+id/textView2"
110 android:
layout_width=
"wrap_content"
111 android:
layout_height=
"0dp"
112 android:
layout_weight=
"1"
113 android:
text=
"@string/auth_login_details"
114 android:
textAppearance=
"?android:attr/textAppearanceSmall" />
117 android:
id=
"@+id/oAuthEntryPoint_1"
118 android:
layout_width=
"match_parent"
119 android:
layout_height=
"wrap_content"
120 android:
layout_weight=
"1"
122 android:
enabled=
"false"
123 android:
text=
"@string/oauth_url_endpoint_auth"
124 android:
singleLine=
"true"
125 android:
visibility=
"gone" >
131 android:
id=
"@+id/oAuthEntryPoint_2"
132 android:
layout_width=
"match_parent"
133 android:
layout_height=
"wrap_content"
134 android:
layout_weight=
"1"
136 android:
enabled=
"false"
137 android:
text=
"@string/oauth_url_endpoint_access"
138 android:
singleLine=
"true"
139 android:
visibility=
"gone" >
145 android:
id=
"@+id/account_username"
146 android:
layout_width=
"match_parent"
147 android:
layout_height=
"0dp"
148 android:
layout_weight=
"1"
150 android:
hint=
"@string/auth_username"
151 android:
inputType=
"textNoSuggestions" />
154 android:
layout_width=
"match_parent"
155 android:
layout_height=
"wrap_content"
156 android:
layout_weight=
"1" >
159 android:
id=
"@+id/account_password"
160 android:
layout_width=
"match_parent"
161 android:
layout_height=
"wrap_content"
163 android:
hint=
"@string/auth_password"
164 android:
inputType=
"textPassword"/>
167 android:
id=
"@+id/viewPasswordButton"
168 android:
layout_width=
"wrap_content"
169 android:
layout_height=
"wrap_content"
170 android:
layout_gravity=
"right|center_vertical"
171 android:
src=
"@android:drawable/ic_menu_view"
172 android:
onClick=
"onViewPasswordClick"
173 android:
visibility=
"invisible" />
178 android:
id=
"@+id/auth_status_layout"
179 android:
layout_width=
"match_parent"
180 android:
layout_height=
"wrap_content"
181 android:
layout_weight=
"1"
182 android:
visibility=
"invisible"
186 android:
id=
"@+id/auth_status_icon"
187 android:
layout_width=
"wrap_content"
188 android:
layout_height=
"wrap_content"
189 android:
layout_marginLeft=
"5dp"
190 android:
layout_marginRight=
"5dp"
191 android:
src=
"@android:drawable/stat_notify_sync"
195 android:
id=
"@+id/auth_status_text"
196 android:
layout_width=
"wrap_content"
197 android:
layout_height=
"wrap_content"
198 android:
text=
"@string/text_placeholder"
204 android:
id=
"@+id/auth_status_text"
205 android:
layout_width=
"match_parent"
206 android:
layout_height=
"wrap_content"
207 android:
layout_weight=
"1"
208 android:
text=
"@string/text_placeholder"
209 android:
layout_marginLeft=
"5dp"
210 android:
layout_marginRight=
"5dp"
211 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
212 android:
drawablePadding=
"5dip"
213 android:
visibility=
"invisible"
221 android:
layout_width=
"match_parent"
222 android:
layout_height=
"wrap_content">
225 android:
id=
"@+id/buttons_layout"
226 android:
layout_width=
"match_parent"
227 android:
layout_height=
"wrap_content"
228 android:
weightSum=
"1" >
231 android:
id=
"@+id/buttonCancel"
232 android:
layout_width=
"match_parent"
233 android:
layout_height=
"wrap_content"
234 android:
layout_weight=
".5"
235 android:
onClick=
"onCancelClick"
236 android:
text=
"@string/common_cancel" />
239 android:
id=
"@+id/buttonOK"
240 android:
layout_width=
"match_parent"
241 android:
layout_height=
"wrap_content"
242 android:
layout_weight=
".5"
243 android:
enabled=
"false"
244 android:
onClick=
"onOkClick"
245 android:
text=
"@string/setup_btn_connect"
246 android:
textColor=
"@android:color/black" />
251 android:
id=
"@+id/account_register"
252 android:
layout_width=
"wrap_content"
253 android:
layout_height=
"wrap_content"
254 android:
layout_below=
"@id/buttons_layout"
255 android:
layout_centerHorizontal=
"true"
256 android:
onClick=
"onRegisterClick"
257 android:
paddingTop=
"10dp"
258 android:
paddingBottom=
"10dp"
259 android:
textColor=
"#0000FF"
260 android:
background=
"@android:color/transparent" />
261 <!-- android:
text=
"@string/app_name @string/auth_register" /--
>