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 <ScrollView xmlns:
android=
"http://schemas.android.com/apk/res/android"
21 android:
layout_width=
"match_parent"
22 android:
layout_height=
"match_parent"
23 android:
layout_gravity=
"center"
24 android:
fillViewport=
"true"
25 android:
orientation=
"vertical"
26 android:
id=
"@+id/scroll"
30 android:
layout_width=
"match_parent"
31 android:
layout_height=
"wrap_content"
32 android:
background=
"@color/login_background_color"
33 android:
gravity=
"center"
34 android:
orientation=
"vertical"
35 android:
padding=
"8dp" >
38 android:
id=
"@+id/thumbnail"
39 android:
layout_width=
"match_parent"
40 android:
layout_height=
"wrap_content"
41 android:
layout_marginBottom=
"10dp"
42 android:
layout_marginTop=
"10dp"
43 android:
background=
"@color/login_logo_background_color"
44 android:
src=
"@drawable/logo"
45 android:
contentDescription=
"@string/app_name"/>
48 android:
id=
"@+id/centeredRefreshButton"
49 android:
layout_width=
"wrap_content"
50 android:
layout_height=
"wrap_content"
51 android:
layout_gravity=
"center_horizontal"
52 android:
layout_marginBottom=
"10dp"
53 android:
onClick=
"onRefreshClick"
54 android:
text=
"@string/auth_check_server"
55 android:
visibility=
"gone"
56 android:
contentDescription=
"@string/auth_check_server"/>
59 android:
id=
"@+id/instructions_message"
60 android:
layout_width=
"wrap_content"
61 android:
layout_height=
"wrap_content"
62 android:
layout_gravity=
"fill_horizontal"
63 android:
text=
"@string/auth_expired_basic_auth_toast"
64 android:
visibility=
"gone"
65 android:
layout_marginBottom=
"10dp"
66 android:
contentDescription=
"@string/auth_expired_basic_auth_toast"/>
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"
83 android:
contentDescription=
"@string/auth_host_address"
88 android:
id=
"@+id/embeddedRefreshButton"
89 android:
layout_width=
"48dp"
90 android:
layout_height=
"48dp"
91 android:
layout_gravity=
"center_vertical|right"
92 android:
layout_marginRight=
"5dp"
94 android:
scaleType=
"fitCenter"
95 android:
src=
"@drawable/ic_action_refresh_black"
96 android:
onClick=
"onRefreshClick"
97 android:
visibility=
"gone"
98 android:
background=
"@android:color/transparent"
99 android:
contentDescription=
"@string/auth_refresh_button"
104 android:
id=
"@+id/server_status_text"
105 android:
layout_width=
"match_parent"
106 android:
layout_height=
"wrap_content"
107 android:
layout_marginBottom=
"10dp"
108 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
109 android:
drawablePadding=
"5dp"
110 android:
gravity=
"center_vertical"
111 android:
text=
"@string/auth_testing_connection"
112 android:
contentDescription=
"@string/auth_testing_connection"/>
115 android:
id=
"@+id/oauth_onOff_check"
116 android:
layout_width=
"wrap_content"
117 android:
layout_height=
"wrap_content"
118 android:
checked=
"false"
119 android:
onClick=
"onCheckClick"
120 android:
text=
"@string/oauth_check_onoff"
121 android:
textAppearance=
"?android:attr/textAppearanceSmall"
122 android:
contentDescription=
"@string/oauth_check_onoff"
126 android:
id=
"@+id/oAuthEntryPoint_1"
127 android:
layout_width=
"match_parent"
128 android:
layout_height=
"wrap_content"
130 android:
enabled=
"false"
131 android:
text=
"@string/oauth2_url_endpoint_auth"
132 android:
singleLine=
"true"
133 android:
inputType=
"textUri"
134 android:
visibility=
"gone">
138 android:
id=
"@+id/oAuthEntryPoint_2"
139 android:
layout_width=
"match_parent"
140 android:
layout_height=
"wrap_content"
142 android:
enabled=
"false"
143 android:
text=
"@string/oauth2_url_endpoint_access"
144 android:
singleLine=
"true"
145 android:
inputType=
"textUri"
146 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"
155 android:
contentDescription=
"@string/auth_username"
159 android:
id=
"@+id/account_password"
160 android:
layout_width=
"match_parent"
161 android:
layout_height=
"wrap_content"
162 android:
drawablePadding=
"5dp"
164 android:
hint=
"@string/auth_password"
165 android:
inputType=
"textPassword"
166 android:
contentDescription=
"@string/auth_password"
170 android:
id=
"@+id/auth_status_text"
171 android:
layout_width=
"match_parent"
172 android:
layout_height=
"wrap_content"
173 android:
layout_marginBottom=
"10dp"
174 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
175 android:
drawablePadding=
"5dp"
176 android:
gravity=
"center_vertical"
177 android:
text=
"@string/auth_unauthorized"
178 android:
contentDescription=
"@string/auth_unauthorized"/>
181 android:
id=
"@+id/buttonOK"
182 android:
layout_width=
"match_parent"
183 android:
layout_height=
"wrap_content"
184 android:
layout_gravity=
"center_horizontal"
185 android:
enabled=
"false"
186 android:
onClick=
"onOkClick"
187 android:
text=
"@string/setup_btn_connect"
188 android:
contentDescription=
"@string/setup_btn_connect"/>
191 android:
id=
"@+id/welcome_link"
192 android:
layout_width=
"wrap_content"
193 android:
layout_height=
"wrap_content"
194 android:
background=
"@android:color/transparent"
195 android:
onClick=
"onRegisterClick"
196 android:
paddingBottom=
"5dp"
197 android:
paddingTop=
"5dp"
198 android:
text=
"@string/auth_register"
199 android:
textColor=
"#0000FF"
200 android:
contentDescription=
"@string/auth_register"/>