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_alignParentTop=
"true"
30 android:
layout_above=
"@+id/buttonOK"
31 android:
orientation=
"horizontal"
35 android:
id=
"@+id/imageView1"
36 android:
layout_width=
"0dp"
37 android:
layout_height=
"wrap_content"
38 android:
layout_weight=
"1"
39 android:
layout_gravity=
"center"
40 android:
src=
"@drawable/logo"
44 android:
layout_width=
"0dp"
45 android:
layout_height=
"match_parent"
46 android:
layout_weight=
"1"
47 android:
layout_gravity=
"center"
48 android:
fillViewport=
"true"
49 android:
orientation=
"vertical"
53 android:
id=
"@+id/LinearLayout1"
54 android:
layout_width=
"match_parent"
55 android:
layout_height=
"wrap_content"
56 android:
layout_gravity=
"center"
57 android:
layout_margin=
"8dp"
58 android:
gravity=
"center"
59 android:
orientation=
"vertical"
60 android:
focusable=
"true"
64 android:
id=
"@+id/hostUrlInput"
65 android:
layout_width=
"match_parent"
66 android:
layout_height=
"wrap_content"
68 android:
hint=
"@string/auth_host_url"
69 android:
inputType=
"textUri"
70 android:
drawablePadding=
"5dp"
76 android:
id=
"@+id/server_status_text"
77 android:
layout_width=
"match_parent"
78 android:
layout_height=
"wrap_content"
79 android:
layout_marginBottom=
"10dp"
80 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
81 android:
drawablePadding=
"5dp"
82 android:
gravity=
"center_vertical"
83 android:
text=
"@string/auth_testing_connection" />
86 android:
id=
"@+id/oauth_onOff_check"
87 android:
layout_width=
"wrap_content"
88 android:
layout_height=
"wrap_content"
89 android:
checked=
"false"
90 android:
onClick=
"onCheckClick"
91 android:
text=
"@string/oauth_check_onoff"
92 android:
textAppearance=
"?android:attr/textAppearanceSmall"
93 android:
visibility=
"gone"
97 android:
id=
"@+id/oAuthEntryPoint_1"
98 android:
layout_width=
"match_parent"
99 android:
layout_height=
"wrap_content"
101 android:
enabled=
"false"
102 android:
text=
"@string/oauth2_url_endpoint_auth"
103 android:
singleLine=
"true"
104 android:
inputType=
"textUri"
105 android:
visibility=
"gone" >
110 android:
id=
"@+id/oAuthEntryPoint_2"
111 android:
layout_width=
"match_parent"
112 android:
layout_height=
"wrap_content"
114 android:
enabled=
"false"
115 android:
text=
"@string/oauth2_url_endpoint_access"
116 android:
singleLine=
"true"
117 android:
inputType=
"textUri"
118 android:
visibility=
"gone" >
123 android:
id=
"@+id/account_username"
124 android:
layout_width=
"match_parent"
125 android:
layout_height=
"wrap_content"
127 android:
hint=
"@string/auth_username"
128 android:
inputType=
"textNoSuggestions" />
131 android:
layout_width=
"match_parent"
132 android:
layout_height=
"wrap_content"
135 android:
id=
"@+id/account_password"
136 android:
layout_width=
"match_parent"
137 android:
layout_height=
"wrap_content"
139 android:
hint=
"@string/auth_password"
140 android:
inputType=
"textPassword"/>
143 android:
id=
"@+id/viewPasswordButton"
144 android:
layout_width=
"wrap_content"
145 android:
layout_height=
"wrap_content"
146 android:
layout_gravity=
"right|center_vertical"
147 android:
src=
"@android:drawable/ic_menu_view"
148 android:
onClick=
"onViewPasswordClick"
149 android:
visibility=
"invisible" />
153 android:
id=
"@+id/auth_status_text"
154 android:
layout_width=
"match_parent"
155 android:
layout_height=
"wrap_content"
156 android:
gravity=
"center_vertical"
157 android:
text=
"@string/auth_unauthorized"
158 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
159 android:
drawablePadding=
"5dip"
169 android:
id=
"@id/buttonOK"
170 android:
layout_width=
"match_parent"
171 android:
layout_height=
"wrap_content"
172 android:
layout_above=
"@id/account_register"
173 android:
layout_centerHorizontal=
"true"
174 android:
enabled=
"false"
175 android:
onClick=
"onOkClick"
176 android:
text=
"@string/setup_btn_connect"
180 android:
id=
"@+id/account_register"
181 android:
layout_width=
"wrap_content"
182 android:
layout_height=
"wrap_content"
183 android:
layout_centerHorizontal=
"true"
184 android:
layout_alignParentBottom=
"true"
185 android:
background=
"@android:color/transparent"
186 android:
textColor=
"#0000FF"
187 android:
onClick=
"onRegisterClick"
188 android:
paddingTop=
"5dp"
189 android:
paddingBottom=
"5dp"
190 android:
text=
"@string/auth_register"