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:
id=
"@+id/scroll"
47 android:
fillViewport=
"true"
48 android:
orientation=
"vertical" >
51 android:
id=
"@+id/LinearLayout1"
52 android:
layout_width=
"match_parent"
53 android:
layout_height=
"wrap_content"
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"
122 android:
id=
"@+id/oAuthEntryPoint_1"
123 android:
layout_width=
"match_parent"
124 android:
layout_height=
"wrap_content"
126 android:
enabled=
"false"
127 android:
text=
"@string/oauth2_url_endpoint_auth"
128 android:
singleLine=
"true"
129 android:
inputType=
"textUri"
130 android:
visibility=
"gone" >
134 android:
id=
"@+id/oAuthEntryPoint_2"
135 android:
layout_width=
"match_parent"
136 android:
layout_height=
"wrap_content"
138 android:
enabled=
"false"
139 android:
text=
"@string/oauth2_url_endpoint_access"
140 android:
singleLine=
"true"
141 android:
inputType=
"textUri"
142 android:
visibility=
"gone" >
147 android:
id=
"@+id/account_username"
148 android:
layout_width=
"match_parent"
149 android:
layout_height=
"wrap_content"
151 android:
hint=
"@string/auth_username"
152 android:
inputType=
"textNoSuggestions" />
155 android:
id=
"@+id/account_password"
156 android:
layout_width=
"match_parent"
157 android:
layout_height=
"wrap_content"
159 android:
hint=
"@string/auth_password"
160 android:
inputType=
"textPassword"
161 android:
drawablePadding=
"5dp"
165 android:
id=
"@+id/auth_status_text"
166 android:
layout_width=
"match_parent"
167 android:
layout_height=
"wrap_content"
168 android:
gravity=
"center_vertical"
169 android:
text=
"@string/auth_unauthorized"
170 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
171 android:
drawablePadding=
"5dip"
181 android:
id=
"@id/buttonOK"
182 android:
layout_width=
"match_parent"
183 android:
layout_height=
"wrap_content"
184 android:
layout_above=
"@id/account_register"
185 android:
layout_centerHorizontal=
"true"
186 android:
enabled=
"false"
187 android:
onClick=
"onOkClick"
188 android:
text=
"@string/setup_btn_connect"
192 android:
id=
"@+id/account_register"
193 android:
layout_width=
"wrap_content"
194 android:
layout_height=
"wrap_content"
195 android:
layout_centerHorizontal=
"true"
196 android:
layout_alignParentBottom=
"true"
197 android:
background=
"@android:color/transparent"
198 android:
textColor=
"#0000FF"
199 android:
onClick=
"onRegisterClick"
200 android:
paddingTop=
"5dp"
201 android:
paddingBottom=
"5dp"
202 android:
text=
"@string/auth_register"