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:
gravity=
"center|fill"
24 android:
padding=
"8dip"
25 android:
focusable=
"true"
29 android:
layout_width=
"match_parent"
30 android:
layout_height=
"wrap_content"
31 android:
layout_alignParentTop=
"true"
32 android:
layout_above=
"@+id/buttonOK"
33 android:
orientation=
"horizontal"
37 android:
id=
"@+id/imageView1"
38 android:
layout_width=
"0dp"
39 android:
layout_height=
"wrap_content"
40 android:
layout_weight=
"1"
41 android:
layout_gravity=
"center"
42 android:
src=
"@drawable/logo"
45 <ScrollView xmlns:
android=
"http://schemas.android.com/apk/res/android"
46 xmlns:
tools=
"http://schemas.android.com/tools"
47 android:
layout_width=
"0dp"
48 android:
layout_height=
"match_parent"
49 android:
layout_weight=
"1"
50 android:
layout_gravity=
"center"
51 android:
fillViewport=
"true"
52 android:
orientation=
"vertical"
56 android:
id=
"@+id/LinearLayout1"
57 android:
layout_width=
"match_parent"
58 android:
layout_height=
"wrap_content"
59 android:
layout_gravity=
"center"
60 android:
layout_margin=
"8dp"
61 android:
orientation=
"vertical"
65 android:
layout_width=
"match_parent"
66 android:
layout_height=
"wrap_content"
70 android:
id=
"@+id/hostUrlInput"
71 android:
layout_width=
"match_parent"
72 android:
layout_height=
"wrap_content"
74 android:
hint=
"@string/auth_host_url"
75 android:
inputType=
"textUri"
81 android:
id=
"@+id/refreshButton"
82 android:
layout_width=
"wrap_content"
83 android:
layout_height=
"wrap_content"
84 android:
layout_gravity=
"right|center_vertical"
85 android:
src=
"@drawable/ic_action_refresh_black"
86 android:
onClick=
"onRefreshClick"
87 android:
visibility=
"invisible" />
92 android:
id=
"@+id/server_status_text"
93 android:
layout_width=
"match_parent"
94 android:
layout_height=
"wrap_content"
95 android:
layout_marginBottom=
"10dp"
96 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
97 android:
drawablePadding=
"5dp"
98 android:
gravity=
"center_vertical"
99 android:
text=
"@string/auth_testing_connection" />
102 android:
id=
"@+id/oauth_onOff_check"
103 android:
layout_width=
"wrap_content"
104 android:
layout_height=
"wrap_content"
105 android:
checked=
"false"
106 android:
onClick=
"onCheckClick"
107 android:
text=
"@string/oauth_check_onoff"
108 android:
textAppearance=
"?android:attr/textAppearanceSmall"
109 android:
visibility=
"gone"
113 android:
id=
"@+id/oAuthEntryPoint_1"
114 android:
layout_width=
"match_parent"
115 android:
layout_height=
"wrap_content"
117 android:
enabled=
"false"
118 android:
text=
"@string/oauth2_url_endpoint_auth"
119 android:
singleLine=
"true"
120 android:
inputType=
"textUri"
121 android:
visibility=
"gone" >
126 android:
id=
"@+id/oAuthEntryPoint_2"
127 android:
layout_width=
"match_parent"
128 android:
layout_height=
"wrap_content"
130 android:
enabled=
"false"
131 android:
text=
"@string/oauth2_url_endpoint_access"
132 android:
singleLine=
"true"
133 android:
inputType=
"textUri"
134 android:
visibility=
"gone" >
139 android:
id=
"@+id/account_username"
140 android:
layout_width=
"match_parent"
141 android:
layout_height=
"wrap_content"
143 android:
hint=
"@string/auth_username"
144 android:
inputType=
"textNoSuggestions" />
147 android:
layout_width=
"match_parent"
148 android:
layout_height=
"wrap_content"
151 android:
id=
"@+id/account_password"
152 android:
layout_width=
"match_parent"
153 android:
layout_height=
"wrap_content"
155 android:
hint=
"@string/auth_password"
156 android:
inputType=
"textPassword"/>
159 android:
id=
"@+id/viewPasswordButton"
160 android:
layout_width=
"wrap_content"
161 android:
layout_height=
"wrap_content"
162 android:
layout_gravity=
"right|center_vertical"
163 android:
src=
"@android:drawable/ic_menu_view"
164 android:
onClick=
"onViewPasswordClick"
165 android:
visibility=
"invisible" />
169 android:
id=
"@+id/auth_status_text"
170 android:
layout_width=
"match_parent"
171 android:
layout_height=
"wrap_content"
172 android:
gravity=
"center_vertical"
173 android:
text=
"@string/auth_unauthorized"
174 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
175 android:
drawablePadding=
"5dip"
185 android:
id=
"@id/buttonOK"
186 android:
layout_width=
"match_parent"
187 android:
layout_height=
"wrap_content"
188 android:
layout_above=
"@id/account_register"
189 android:
layout_centerHorizontal=
"true"
190 android:
enabled=
"false"
191 android:
onClick=
"onOkClick"
192 android:
text=
"@string/setup_btn_connect"
196 android:
id=
"@+id/account_register"
197 android:
layout_width=
"wrap_content"
198 android:
layout_height=
"wrap_content"
199 android:
layout_centerHorizontal=
"true"
200 android:
layout_alignParentBottom=
"true"
201 android:
background=
"@android:color/transparent"
202 android:
textColor=
"#0000FF"
203 android:
onClick=
"onRegisterClick"
204 android:
paddingTop=
"5dp"
205 android:
paddingBottom=
"5dp"
206 android:
text=
"@string/auth_register"