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 xmlns:
oc=
"http://schemas.android.com/apk/res/com.owncloud.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:
layout_width=
"match_parent"
37 android:
layout_height=
"match_parent" >
40 android:
id=
"@+id/imageView1"
41 android:
layout_width=
"match_parent"
42 android:
layout_height=
"match_parent"
43 android:
layout_margin=
"7dp"
44 android:
layout_weight=
"1"
45 android:
src=
"@drawable/owncloud_logo" />
48 android:
id=
"@+id/LinearLayout1"
49 android:
layout_width=
"match_parent"
50 android:
layout_height=
"wrap_content"
51 android:
layout_gravity=
"center"
52 android:
layout_weight=
"1"
53 android:
orientation=
"vertical" >
56 android:
layout_width=
"match_parent"
57 android:
layout_height=
"wrap_content"
58 android:
layout_weight=
"1" >
61 android:
id=
"@+id/hostUrlInput"
62 android:
layout_width=
"match_parent"
63 android:
layout_height=
"wrap_content"
64 android:
layout_weight=
"1"
66 android:
hint=
"@string/auth_host_url"
67 android:
inputType=
"textNoSuggestions">
72 android:
id=
"@+id/refreshButton"
73 android:
layout_width=
"wrap_content"
74 android:
layout_height=
"wrap_content"
75 android:
layout_gravity=
"right|center_vertical"
76 android:
src=
"@drawable/ic_action_refresh_black"
77 android:
onClick=
"onRefreshClick"
78 android:
visibility=
"invisible" />
82 android:
layout_width=
"match_parent"
83 android:
layout_height=
"50dp"
84 android:
layout_weight=
"1" >
87 android:
id=
"@+id/action_indicator"
88 android:
layout_width=
"wrap_content"
89 android:
layout_height=
"wrap_content"
90 android:
layout_marginLeft=
"5dp"
91 android:
layout_marginRight=
"5dp"
92 android:
src=
"@android:drawable/stat_notify_sync"
93 android:
visibility=
"invisible" />
96 android:
id=
"@+id/status_text"
97 android:
layout_width=
"wrap_content"
98 android:
layout_height=
"wrap_content"
99 android:
text=
"TextView"
100 android:
visibility=
"invisible" />
104 android:
id=
"@+id/oauth_onOff_check"
105 android:
layout_width=
"wrap_content"
106 android:
layout_height=
"wrap_content"
107 android:
checked=
"false"
108 android:
onClick=
"onCheckClick"
109 android:
text=
"@string/oauth_check_onoff"
110 android:
textAppearance=
"?android:attr/textAppearanceSmall" />
113 android:
id=
"@+id/textView2"
114 android:
layout_width=
"wrap_content"
115 android:
layout_height=
"0dp"
116 android:
layout_weight=
"1"
117 android:
text=
"@string/auth_login_details"
118 android:
textAppearance=
"?android:attr/textAppearanceSmall" />
121 android:
id=
"@+id/oAuthEntryPoint_1"
122 android:
layout_width=
"match_parent"
123 android:
layout_height=
"wrap_content"
124 android:
layout_weight=
"1"
126 android:
enabled=
"false"
127 android:
text=
"@string/oauth_url_endpoint_auth"
128 android:
singleLine=
"true"
129 android:
visibility=
"gone" >
135 android:
id=
"@+id/oAuthEntryPoint_2"
136 android:
layout_width=
"match_parent"
137 android:
layout_height=
"wrap_content"
138 android:
layout_weight=
"1"
140 android:
enabled=
"false"
141 android:
text=
"@string/oauth_url_endpoint_access"
142 android:
singleLine=
"true"
143 android:
visibility=
"gone" >
149 android:
layout_width=
"match_parent"
150 android:
layout_height=
"wrap_content"
151 android:
layout_weight=
"1" >
154 android:
id=
"@+id/auth2_action_indicator"
155 android:
layout_width=
"wrap_content"
156 android:
layout_height=
"wrap_content"
157 android:
layout_marginLeft=
"5dp"
158 android:
layout_marginRight=
"5dp"
159 android:
src=
"@android:drawable/stat_notify_sync"
160 android:
visibility=
"gone" />
163 android:
id=
"@+id/oauth2_status_text"
164 android:
layout_width=
"wrap_content"
165 android:
layout_height=
"wrap_content"
166 android:
text=
"TextView"
167 android:
visibility=
"gone" />
171 android:
id=
"@+id/account_username"
172 android:
layout_width=
"match_parent"
173 android:
layout_height=
"0dp"
174 android:
layout_weight=
"1"
176 android:
hint=
"@string/auth_username"
177 android:
inputType=
"textNoSuggestions" />
180 android:
layout_width=
"match_parent"
181 android:
layout_height=
"wrap_content"
182 android:
layout_weight=
"1" >
185 android:
id=
"@+id/account_password"
186 android:
layout_width=
"match_parent"
187 android:
layout_height=
"wrap_content"
188 android:
layout_weight=
"1"
190 android:
hint=
"@string/auth_password"
191 android:
inputType=
"textPassword"/>
194 android:
id=
"@+id/viewPasswordButton"
195 android:
layout_width=
"wrap_content"
196 android:
layout_height=
"wrap_content"
197 android:
layout_gravity=
"right|center_vertical"
198 android:
src=
"@android:drawable/ic_menu_view"
199 android:
onClick=
"onViewPasswordClick"
200 android:
visibility=
"invisible" />
207 android:
layout_width=
"match_parent"
208 android:
layout_height=
"wrap_content"
209 android:
layout_alignParentBottom=
"true" >
212 android:
id=
"@+id/buttons_layout"
213 android:
layout_width=
"match_parent"
214 android:
layout_height=
"wrap_content"
215 android:
weightSum=
"1">
218 android:
id=
"@+id/buttonCancel"
219 android:
layout_width=
"match_parent"
220 android:
layout_height=
"wrap_content"
221 android:
layout_weight=
".5"
222 android:
onClick=
"onCancelClick"
223 android:
text=
"@string/common_cancel" />
226 android:
id=
"@+id/buttonOK"
227 android:
layout_width=
"match_parent"
228 android:
layout_height=
"wrap_content"
229 android:
layout_weight=
".5"
230 android:
enabled=
"false"
231 android:
onClick=
"onOkClick"
232 android:
text=
"@string/setup_btn_connect"
233 android:
textColor=
"@android:color/black" />
238 android:
id=
"@+id/account_register"
239 android:
layout_width=
"wrap_content"
240 android:
layout_height=
"wrap_content"
241 android:
layout_below=
"@id/buttons_layout"
242 android:
layout_centerHorizontal=
"true"
243 android:
onClick=
"onRegisterClick"
244 android:
paddingTop=
"10dp"
245 android:
paddingBottom=
"10dp"
246 android:
textColor=
"#0000FF"
247 android:
background=
"@android:color/transparent" />
248 <!-- android:
text=
"@string/app_name @string/auth_register" /--
>