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 <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/imageView1"
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" />
47 android:
id=
"@+id/centeredRefreshButton"
48 android:
layout_width=
"wrap_content"
49 android:
layout_height=
"wrap_content"
50 android:
layout_gravity=
"center_horizontal"
51 android:
layout_marginBottom=
"10dp"
52 android:
onClick=
"onRefreshClick"
53 android:
text=
"@string/auth_check_server"
54 android:
visibility=
"gone" />
57 android:
id=
"@+id/auth_message"
58 android:
layout_width=
"wrap_content"
59 android:
layout_height=
"wrap_content"
60 android:
layout_gravity=
"fill_horizontal"
61 android:
text=
"@string/auth_expired_basic_auth_toast"
62 android:
visibility=
"gone"
63 android:
layout_marginBottom=
"10dp" />
66 android:
id=
"@+id/hostUrlFrame"
67 android:
layout_width=
"match_parent"
68 android:
layout_height=
"wrap_content"
69 android:
layout_marginBottom=
"10dp"
72 android:
id=
"@+id/hostUrlInput"
73 android:
layout_width=
"match_parent"
74 android:
layout_height=
"wrap_content"
75 android:
layout_gravity=
"bottom"
76 android:
hint=
"@string/auth_host_url"
77 android:
inputType=
"textUri"
78 android:
drawablePadding=
"5dp"
79 android:
paddingRight=
"55dp"
84 android:
id=
"@+id/embeddedRefreshButton"
85 android:
layout_width=
"48dp"
86 android:
layout_height=
"48dp"
87 android:
layout_gravity=
"center_vertical|right"
88 android:
layout_marginRight=
"5dp"
90 android:
scaleType=
"fitCenter"
91 android:
src=
"@drawable/ic_action_refresh_black"
92 android:
onClick=
"onRefreshClick"
93 android:
visibility=
"gone"
94 android:
background=
"@android:color/transparent"
99 android:
id=
"@+id/server_status_text"
100 android:
layout_width=
"match_parent"
101 android:
layout_height=
"wrap_content"
102 android:
layout_marginBottom=
"10dp"
103 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
104 android:
drawablePadding=
"5dp"
105 android:
gravity=
"center_vertical"
106 android:
text=
"@string/auth_testing_connection" />
109 android:
id=
"@+id/oauth_onOff_check"
110 android:
layout_width=
"wrap_content"
111 android:
layout_height=
"wrap_content"
112 android:
checked=
"false"
113 android:
onClick=
"onCheckClick"
114 android:
text=
"@string/oauth_check_onoff"
115 android:
textAppearance=
"?android:attr/textAppearanceSmall"
119 android:
id=
"@+id/oAuthEntryPoint_1"
120 android:
layout_width=
"match_parent"
121 android:
layout_height=
"wrap_content"
123 android:
enabled=
"false"
124 android:
text=
"@string/oauth2_url_endpoint_auth"
125 android:
singleLine=
"true"
126 android:
inputType=
"textUri"
127 android:
visibility=
"gone" >
131 android:
id=
"@+id/oAuthEntryPoint_2"
132 android:
layout_width=
"match_parent"
133 android:
layout_height=
"wrap_content"
135 android:
enabled=
"false"
136 android:
text=
"@string/oauth2_url_endpoint_access"
137 android:
singleLine=
"true"
138 android:
inputType=
"textUri"
139 android:
visibility=
"gone" />
142 android:
id=
"@+id/account_username"
143 android:
layout_width=
"match_parent"
144 android:
layout_height=
"wrap_content"
146 android:
hint=
"@string/auth_username"
147 android:
inputType=
"textNoSuggestions"
151 android:
id=
"@+id/account_password"
152 android:
layout_width=
"match_parent"
153 android:
layout_height=
"wrap_content"
154 android:
drawablePadding=
"5dp"
156 android:
hint=
"@string/auth_password"
157 android:
inputType=
"textPassword"
161 android:
id=
"@+id/auth_status_text"
162 android:
layout_width=
"match_parent"
163 android:
layout_height=
"wrap_content"
164 android:
layout_marginBottom=
"10dp"
165 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
166 android:
drawablePadding=
"5dp"
167 android:
gravity=
"center_vertical"
168 android:
text=
"@string/auth_unauthorized" />
171 android:
id=
"@+id/buttonOK"
172 android:
layout_width=
"match_parent"
173 android:
layout_height=
"wrap_content"
174 android:
layout_gravity=
"center_horizontal"
175 android:
enabled=
"false"
176 android:
onClick=
"onOkClick"
177 android:
text=
"@string/setup_btn_connect" />
180 android:
id=
"@+id/welcome_link"
181 android:
layout_width=
"wrap_content"
182 android:
layout_height=
"wrap_content"
183 android:
background=
"@android:color/transparent"
184 android:
onClick=
"onRegisterClick"
185 android:
paddingBottom=
"5dp"
186 android:
paddingTop=
"5dp"
187 android:
text=
"@string/auth_register"
188 android:
textColor=
"#0000FF"/>