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 <RelativeLayout xmlns:
android=
"http://schemas.android.com/apk/res/android"
21 android:
layout_width=
"match_parent"
22 android:
layout_height=
"match_parent"
23 android:
padding=
"8dip"
27 android:
layout_width=
"match_parent"
28 android:
layout_height=
"wrap_content"
29 android:
layout_above=
"@id/buttonOK"
30 android:
layout_alignParentTop=
"true"
31 android:
orientation=
"horizontal" >
34 android:
id=
"@+id/imageView1"
35 android:
layout_width=
"0dp"
36 android:
layout_height=
"wrap_content"
37 android:
layout_weight=
"1"
38 android:
layout_gravity=
"center"
39 android:
src=
"@drawable/logo"
43 android:
layout_width=
"0dp"
44 android:
layout_height=
"match_parent"
45 android:
layout_weight=
"1"
46 android:
fillViewport=
"true"
47 android:
orientation=
"vertical" >
50 android:
id=
"@+id/LinearLayout1"
51 android:
layout_width=
"match_parent"
52 android:
layout_height=
"wrap_content"
53 android:
focusable=
"true"
54 android:
gravity=
"center"
55 android:
orientation=
"vertical"
56 android:
padding=
"8dp" >
59 android:
id=
"@+id/centeredRefreshButton"
60 android:
layout_width=
"wrap_content"
61 android:
layout_height=
"wrap_content"
62 android:
layout_gravity=
"center_horizontal"
63 android:
layout_marginBottom=
"10dp"
64 android:
onClick=
"onRefreshClick"
65 android:
text=
"@string/auth_check_server"
66 android:
visibility=
"gone" />
69 android:
id=
"@+id/hostUrlFrame"
70 android:
layout_width=
"match_parent"
71 android:
layout_height=
"wrap_content"
72 android:
layout_marginBottom=
"10dp"
75 android:
id=
"@+id/hostUrlInput"
76 android:
layout_width=
"match_parent"
77 android:
layout_height=
"wrap_content"
78 android:
layout_gravity=
"bottom"
79 android:
hint=
"@string/auth_host_url"
80 android:
inputType=
"textUri"
81 android:
drawablePadding=
"5dp"
82 android:
paddingRight=
"55dp"
87 android:
id=
"@+id/embeddedRefreshButton"
88 android:
layout_width=
"48dp"
89 android:
layout_height=
"48dp"
90 android:
layout_gravity=
"center_vertical|right"
91 android:
layout_marginRight=
"5dp"
93 android:
scaleType=
"fitCenter"
94 android:
src=
"@drawable/ic_action_refresh_black"
95 android:
onClick=
"onRefreshClick"
96 android:
visibility=
"gone"
97 android:
background=
"@android:color/transparent"
102 android:
id=
"@+id/server_status_text"
103 android:
layout_width=
"match_parent"
104 android:
layout_height=
"wrap_content"
105 android:
layout_marginBottom=
"10dp"
106 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
107 android:
drawablePadding=
"5dp"
108 android:
gravity=
"center_vertical"
109 android:
text=
"@string/auth_testing_connection" />
112 android:
id=
"@+id/oauth_onOff_check"
113 android:
layout_width=
"wrap_content"
114 android:
layout_height=
"wrap_content"
115 android:
checked=
"false"
116 android:
onClick=
"onCheckClick"
117 android:
text=
"@string/oauth_check_onoff"
118 android:
textAppearance=
"?android:attr/textAppearanceSmall"
119 android:
visibility=
"gone"
123 android:
id=
"@+id/oAuthEntryPoint_1"
124 android:
layout_width=
"match_parent"
125 android:
layout_height=
"wrap_content"
127 android:
enabled=
"false"
128 android:
text=
"@string/oauth2_url_endpoint_auth"
129 android:
singleLine=
"true"
130 android:
inputType=
"textUri"
131 android:
visibility=
"gone" >
136 android:
id=
"@+id/oAuthEntryPoint_2"
137 android:
layout_width=
"match_parent"
138 android:
layout_height=
"wrap_content"
140 android:
enabled=
"false"
141 android:
text=
"@string/oauth2_url_endpoint_access"
142 android:
singleLine=
"true"
143 android:
inputType=
"textUri"
144 android:
visibility=
"gone" >
149 android:
id=
"@+id/account_username"
150 android:
layout_width=
"match_parent"
151 android:
layout_height=
"wrap_content"
153 android:
hint=
"@string/auth_username"
154 android:
inputType=
"textNoSuggestions" />
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"
163 android:
drawablePadding=
"5dp"
167 android:
id=
"@+id/auth_status_text"
168 android:
layout_width=
"match_parent"
169 android:
layout_height=
"wrap_content"
170 android:
gravity=
"center_vertical"
171 android:
text=
"@string/auth_unauthorized"
172 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
173 android:
drawablePadding=
"5dip"
183 android:
id=
"@id/buttonOK"
184 android:
layout_width=
"match_parent"
185 android:
layout_height=
"wrap_content"
186 android:
layout_above=
"@id/account_register"
187 android:
layout_centerHorizontal=
"true"
188 android:
enabled=
"false"
189 android:
onClick=
"onOkClick"
190 android:
text=
"@string/setup_btn_connect"
194 android:
id=
"@+id/account_register"
195 android:
layout_width=
"wrap_content"
196 android:
layout_height=
"wrap_content"
197 android:
layout_centerHorizontal=
"true"
198 android:
layout_alignParentBottom=
"true"
199 android:
background=
"@android:color/transparent"
200 android:
textColor=
"#0000FF"
201 android:
onClick=
"onRegisterClick"
202 android:
paddingTop=
"5dp"
203 android:
paddingBottom=
"5dp"
204 android:
text=
"@string/auth_register"