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:
fillViewport=
"true"
47 android:
orientation=
"vertical" >
50 android:
id=
"@+id/LinearLayout1"
51 android:
layout_width=
"match_parent"
52 android:
layout_height=
"wrap_content"
53 android:
focusable=
"true"
54 android:
gravity=
"center"
55 android:
orientation=
"vertical"
56 android:
padding=
"8dp" >
59 android:
id=
"@+id/hostUrlInput"
60 android:
layout_width=
"match_parent"
61 android:
layout_height=
"wrap_content"
63 android:
hint=
"@string/auth_host_url"
64 android:
inputType=
"textUri"
65 android:
drawablePadding=
"5dp"
71 android:
id=
"@+id/server_status_text"
72 android:
layout_width=
"match_parent"
73 android:
layout_height=
"wrap_content"
74 android:
layout_marginBottom=
"10dp"
75 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
76 android:
drawablePadding=
"5dp"
77 android:
gravity=
"center_vertical"
78 android:
text=
"@string/auth_testing_connection" />
81 android:
id=
"@+id/oauth_onOff_check"
82 android:
layout_width=
"wrap_content"
83 android:
layout_height=
"wrap_content"
84 android:
checked=
"false"
85 android:
onClick=
"onCheckClick"
86 android:
text=
"@string/oauth_check_onoff"
87 android:
textAppearance=
"?android:attr/textAppearanceSmall"
88 android:
visibility=
"gone"
92 android:
id=
"@+id/oAuthEntryPoint_1"
93 android:
layout_width=
"match_parent"
94 android:
layout_height=
"wrap_content"
96 android:
enabled=
"false"
97 android:
text=
"@string/oauth2_url_endpoint_auth"
98 android:
singleLine=
"true"
99 android:
inputType=
"textUri"
100 android:
visibility=
"gone" >
105 android:
id=
"@+id/oAuthEntryPoint_2"
106 android:
layout_width=
"match_parent"
107 android:
layout_height=
"wrap_content"
109 android:
enabled=
"false"
110 android:
text=
"@string/oauth2_url_endpoint_access"
111 android:
singleLine=
"true"
112 android:
inputType=
"textUri"
113 android:
visibility=
"gone" >
118 android:
id=
"@+id/account_username"
119 android:
layout_width=
"match_parent"
120 android:
layout_height=
"wrap_content"
122 android:
hint=
"@string/auth_username"
123 android:
inputType=
"textNoSuggestions" />
126 android:
layout_width=
"match_parent"
127 android:
layout_height=
"wrap_content"
130 android:
id=
"@+id/account_password"
131 android:
layout_width=
"match_parent"
132 android:
layout_height=
"wrap_content"
134 android:
hint=
"@string/auth_password"
135 android:
inputType=
"textPassword"/>
138 android:
id=
"@+id/viewPasswordButton"
139 android:
layout_width=
"wrap_content"
140 android:
layout_height=
"wrap_content"
141 android:
layout_gravity=
"right|center_vertical"
142 android:
src=
"@android:drawable/ic_menu_view"
143 android:
onClick=
"onViewPasswordClick"
144 android:
visibility=
"invisible" />
148 android:
id=
"@+id/auth_status_text"
149 android:
layout_width=
"match_parent"
150 android:
layout_height=
"wrap_content"
151 android:
gravity=
"center_vertical"
152 android:
text=
"@string/auth_unauthorized"
153 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
154 android:
drawablePadding=
"5dip"
164 android:
id=
"@id/buttonOK"
165 android:
layout_width=
"match_parent"
166 android:
layout_height=
"wrap_content"
167 android:
layout_above=
"@id/account_register"
168 android:
layout_centerHorizontal=
"true"
169 android:
enabled=
"false"
170 android:
onClick=
"onOkClick"
171 android:
text=
"@string/setup_btn_connect"
175 android:
id=
"@+id/account_register"
176 android:
layout_width=
"wrap_content"
177 android:
layout_height=
"wrap_content"
178 android:
layout_centerHorizontal=
"true"
179 android:
layout_alignParentBottom=
"true"
180 android:
background=
"@android:color/transparent"
181 android:
textColor=
"#0000FF"
182 android:
onClick=
"onRegisterClick"
183 android:
paddingTop=
"5dp"
184 android:
paddingBottom=
"5dp"
185 android:
text=
"@string/auth_register"