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" >
28 android:
layout_width=
"match_parent"
29 android:
layout_height=
"wrap_content"
30 android:
focusable=
"true"
31 android:
gravity=
"center"
32 android:
orientation=
"vertical"
33 android:
padding=
"8dp" >
36 android:
id=
"@+id/imageView1"
37 android:
layout_width=
"match_parent"
38 android:
layout_height=
"wrap_content"
39 android:
layout_marginBottom=
"10dp"
40 android:
layout_marginTop=
"10dp"
41 android:
src=
"@drawable/logo" />
44 android:
id=
"@+id/centeredRefreshButton"
45 android:
layout_width=
"wrap_content"
46 android:
layout_height=
"wrap_content"
47 android:
layout_gravity=
"center_horizontal"
48 android:
layout_marginBottom=
"10dp"
49 android:
onClick=
"onRefreshClick"
50 android:
text=
"@string/auth_check_server"
51 android:
visibility=
"gone" />
54 android:
id=
"@+id/hostUrlFrame"
55 android:
layout_width=
"match_parent"
56 android:
layout_height=
"wrap_content"
57 android:
layout_marginBottom=
"10dp"
60 android:
id=
"@+id/hostUrlInput"
61 android:
layout_width=
"match_parent"
62 android:
layout_height=
"wrap_content"
63 android:
layout_gravity=
"bottom"
64 android:
hint=
"@string/auth_host_url"
65 android:
inputType=
"textUri"
66 android:
drawablePadding=
"5dp"
67 android:
paddingRight=
"55dp"
72 android:
id=
"@+id/embeddedRefreshButton"
73 android:
layout_width=
"48dp"
74 android:
layout_height=
"48dp"
75 android:
layout_gravity=
"center_vertical|right"
76 android:
layout_marginRight=
"5dp"
78 android:
scaleType=
"fitCenter"
79 android:
src=
"@drawable/ic_action_refresh_black"
80 android:
onClick=
"onRefreshClick"
81 android:
visibility=
"gone"
82 android:
background=
"@android:color/transparent"
87 android:
id=
"@+id/server_status_text"
88 android:
layout_width=
"match_parent"
89 android:
layout_height=
"wrap_content"
90 android:
layout_marginBottom=
"10dp"
91 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
92 android:
drawablePadding=
"5dp"
93 android:
gravity=
"center_vertical"
94 android:
text=
"@string/auth_testing_connection" />
97 android:
id=
"@+id/oauth_onOff_check"
98 android:
layout_width=
"wrap_content"
99 android:
layout_height=
"wrap_content"
100 android:
checked=
"false"
101 android:
onClick=
"onCheckClick"
102 android:
text=
"@string/oauth_check_onoff"
103 android:
textAppearance=
"?android:attr/textAppearanceSmall"
104 android:
visibility=
"gone" />
107 android:
id=
"@+id/oAuthEntryPoint_1"
108 android:
layout_width=
"match_parent"
109 android:
layout_height=
"wrap_content"
111 android:
inputType=
"textUri"
112 android:
singleLine=
"true"
113 android:
text=
"@string/oauth2_url_endpoint_auth"
114 android:
visibility=
"gone" >
118 android:
id=
"@+id/oAuthEntryPoint_2"
119 android:
layout_width=
"match_parent"
120 android:
layout_height=
"wrap_content"
122 android:
inputType=
"textUri"
123 android:
singleLine=
"true"
124 android:
text=
"@string/oauth2_url_endpoint_access"
125 android:
visibility=
"gone" />
128 android:
id=
"@+id/account_username"
129 android:
layout_width=
"match_parent"
130 android:
layout_height=
"wrap_content"
132 android:
hint=
"@string/auth_username"
133 android:
inputType=
"textNoSuggestions" />
136 android:
id=
"@+id/account_password"
137 android:
layout_width=
"match_parent"
138 android:
layout_height=
"wrap_content"
139 android:
drawablePadding=
"5dp"
141 android:
hint=
"@string/auth_password"
142 android:
inputType=
"textPassword" />
145 android:
id=
"@+id/auth_status_text"
146 android:
layout_width=
"match_parent"
147 android:
layout_height=
"wrap_content"
148 android:
layout_marginBottom=
"10dp"
149 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
150 android:
drawablePadding=
"5dp"
151 android:
gravity=
"center_vertical"
152 android:
text=
"@string/auth_unauthorized" />
155 android:
id=
"@+id/buttonOK"
156 android:
layout_width=
"match_parent"
157 android:
layout_height=
"wrap_content"
158 android:
layout_gravity=
"center_horizontal"
159 android:
enabled=
"false"
160 android:
onClick=
"onOkClick"
161 android:
text=
"@string/setup_btn_connect"
165 android:
id=
"@+id/account_register"
166 android:
layout_width=
"wrap_content"
167 android:
layout_height=
"wrap_content"
168 android:
background=
"@android:color/transparent"
169 android:
textColor=
"#0000FF"
170 android:
onClick=
"onRegisterClick"
171 android:
paddingBottom=
"5dp"
172 android:
paddingTop=
"5dp"
173 android:
text=
"@string/auth_register"