1 <?xml version=
"1.0" encoding=
"utf-8"?>
3 ownCloud Android client application
5 Copyright (C)
2012 Bartek Przybylski
6 Copyright (C)
2015 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:
background=
"@color/login_background_color"
24 android:
padding=
"8dip"
28 android:
layout_width=
"match_parent"
29 android:
layout_height=
"wrap_content"
30 android:
layout_above=
"@+id/bottom_block"
31 android:
layout_alignParentTop=
"true"
32 android:
orientation=
"horizontal" >
35 android:
id=
"@+id/thumbnail"
36 android:
layout_width=
"0dp"
37 android:
layout_height=
"wrap_content"
38 android:
layout_weight=
"1"
39 android:
layout_gravity=
"center"
40 android:
background=
"@color/login_logo_background_color"
41 android:
src=
"@drawable/logo"
42 android:
contentDescription=
"@string/app_name"
46 android:
layout_width=
"0dp"
47 android:
layout_height=
"match_parent"
48 android:
layout_weight=
"1"
49 android:
id=
"@+id/scroll"
50 android:
fillViewport=
"true"
51 android:
orientation=
"vertical" >
54 android:
id=
"@+id/LinearLayout1"
55 android:
layout_width=
"match_parent"
56 android:
layout_height=
"wrap_content"
57 android:
gravity=
"center"
58 android:
orientation=
"vertical"
59 android:
padding=
"8dp" >
62 android:
id=
"@+id/centeredRefreshButton"
63 android:
layout_width=
"wrap_content"
64 android:
layout_height=
"wrap_content"
65 android:
layout_gravity=
"center_horizontal"
66 android:
layout_marginBottom=
"10dp"
67 android:
onClick=
"onRefreshClick"
68 android:
text=
"@string/auth_check_server"
69 android:
visibility=
"gone"
70 android:
contentDescription=
"@string/auth_check_server"/>
72 android:
id=
"@+id/instructions_message"
73 android:
layout_width=
"wrap_content"
74 android:
layout_height=
"wrap_content"
75 android:
layout_gravity=
"fill_horizontal"
76 android:
text=
"@string/auth_expired_basic_auth_toast"
77 android:
visibility=
"gone"
78 android:
layout_marginBottom=
"10dp"
79 android:
contentDescription=
"@string/auth_expired_basic_auth_toast"/>
81 android:
id=
"@+id/hostUrlFrame"
82 android:
layout_width=
"match_parent"
83 android:
layout_height=
"wrap_content"
84 android:
layout_marginBottom=
"10dp"
87 android:
id=
"@+id/hostUrlInput"
88 android:
layout_width=
"match_parent"
89 android:
layout_height=
"wrap_content"
90 android:
layout_gravity=
"bottom"
91 android:
hint=
"@string/auth_host_url"
92 android:
inputType=
"textUri"
93 android:
drawablePadding=
"5dp"
94 android:
paddingRight=
"55dp"
95 android:
contentDescription=
"@string/auth_host_address"
100 android:
id=
"@+id/embeddedRefreshButton"
101 android:
layout_width=
"48dp"
102 android:
layout_height=
"48dp"
103 android:
layout_gravity=
"center_vertical|right"
104 android:
layout_marginRight=
"5dp"
105 android:
padding=
"0dp"
106 android:
scaleType=
"fitCenter"
107 android:
src=
"@drawable/ic_action_refresh_black"
108 android:
onClick=
"onRefreshClick"
109 android:
visibility=
"gone"
110 android:
background=
"@android:color/transparent"
111 android:
contentDescription=
"@string/auth_refresh_button"
116 android:
id=
"@+id/server_status_text"
117 android:
layout_width=
"match_parent"
118 android:
layout_height=
"wrap_content"
119 android:
layout_marginBottom=
"10dp"
120 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
121 android:
drawablePadding=
"5dp"
122 android:
gravity=
"center_vertical"
123 android:
text=
"@string/auth_testing_connection"
124 android:
contentDescription=
"@string/auth_testing_connection"/>
127 android:
id=
"@+id/oauth_onOff_check"
128 android:
layout_width=
"wrap_content"
129 android:
layout_height=
"wrap_content"
130 android:
checked=
"false"
131 android:
onClick=
"onCheckClick"
132 android:
text=
"@string/oauth_check_onoff"
133 android:
textAppearance=
"?android:attr/textAppearanceSmall"
134 android:
contentDescription=
"@string/oauth_check_onoff"
138 android:
id=
"@+id/oAuthEntryPoint_1"
139 android:
layout_width=
"match_parent"
140 android:
layout_height=
"wrap_content"
142 android:
enabled=
"false"
143 android:
text=
"@string/oauth2_url_endpoint_auth"
144 android:
singleLine=
"true"
145 android:
inputType=
"textUri"
146 android:
visibility=
"gone">
150 android:
id=
"@+id/oAuthEntryPoint_2"
151 android:
layout_width=
"match_parent"
152 android:
layout_height=
"wrap_content"
154 android:
enabled=
"false"
155 android:
text=
"@string/oauth2_url_endpoint_access"
156 android:
singleLine=
"true"
157 android:
inputType=
"textUri"
158 android:
visibility=
"gone">
163 android:
id=
"@+id/account_username"
164 android:
layout_width=
"match_parent"
165 android:
layout_height=
"wrap_content"
167 android:
hint=
"@string/auth_username"
168 android:
inputType=
"textNoSuggestions"
169 android:
contentDescription=
"@string/auth_username"/>
172 android:
id=
"@+id/account_password"
173 android:
layout_width=
"match_parent"
174 android:
layout_height=
"wrap_content"
176 android:
hint=
"@string/auth_password"
177 android:
inputType=
"textPassword"
178 android:
drawablePadding=
"5dp"
179 android:
contentDescription=
"@string/auth_password"
183 android:
id=
"@+id/auth_status_text"
184 android:
layout_width=
"match_parent"
185 android:
layout_height=
"wrap_content"
186 android:
gravity=
"center_vertical"
187 android:
text=
"@string/auth_unauthorized"
188 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
189 android:
drawablePadding=
"5dip"
190 android:
contentDescription=
"@string/auth_unauthorized"
200 android:
id=
"@id/bottom_block"
201 android:
layout_width=
"match_parent"
202 android:
layout_height=
"wrap_content"
203 android:
layout_alignParentBottom=
"true"
204 android:
orientation=
"vertical" >
207 android:
id=
"@+id/buttonOK"
208 android:
layout_width=
"match_parent"
209 android:
layout_height=
"wrap_content"
210 android:
layout_gravity=
"center_horizontal"
211 android:
enabled=
"false"
212 android:
onClick=
"onOkClick"
213 android:
text=
"@string/setup_btn_connect"
214 android:
contentDescription=
"@string/setup_btn_connect"/>
217 android:
id=
"@+id/welcome_link"
218 android:
layout_width=
"wrap_content"
219 android:
layout_height=
"wrap_content"
220 android:
layout_gravity=
"center_horizontal"
221 android:
background=
"@android:color/transparent"
222 android:
onClick=
"onRegisterClick"
223 android:
paddingBottom=
"5dp"
224 android:
paddingTop=
"5dp"
225 android:
text=
"@string/auth_register"
226 android:
textColor=
"#0000FF"
227 android:
contentDescription=
"@string/auth_register"/>