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
/>.
21 <ScrollView xmlns:
android=
"http://schemas.android.com/apk/res/android"
22 xmlns:
tools=
"http://schemas.android.com/tools"
23 android:
layout_width=
"match_parent"
24 android:
layout_height=
"match_parent"
25 android:
layout_gravity=
"center"
26 android:
padding=
"16dip"
27 android:
fillViewport=
"true"
28 android:
orientation=
"vertical"
32 android:
layout_width=
"match_parent"
33 android:
layout_height=
"wrap_content"
34 android:
gravity=
"center"
35 android:
orientation=
"vertical"
36 android:
focusable=
"true"
40 android:
id=
"@+id/imageView1"
41 android:
layout_width=
"match_parent"
42 android:
layout_height=
"wrap_content"
43 android:
layout_marginBottom=
"10dp"
44 android:
layout_marginTop=
"10dp"
45 android:
src=
"@drawable/logo" />
48 android:
layout_width=
"match_parent"
49 android:
layout_height=
"wrap_content" >
52 android:
id=
"@+id/hostUrlInput"
53 android:
layout_width=
"match_parent"
54 android:
layout_height=
"wrap_content"
56 android:
hint=
"@string/auth_host_url"
57 android:
inputType=
"textUri" >
63 android:
id=
"@+id/refreshButton"
64 android:
layout_width=
"wrap_content"
65 android:
layout_height=
"wrap_content"
66 android:
layout_gravity=
"right|center_vertical"
67 android:
src=
"@drawable/ic_action_refresh_black"
68 android:
visibility=
"invisible" />
72 android:
id=
"@+id/server_status_text"
73 android:
layout_width=
"match_parent"
74 android:
layout_height=
"wrap_content"
75 android:
layout_marginBottom=
"10dp"
76 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
77 android:
drawablePadding=
"5dp"
78 android:
gravity=
"center_vertical"
79 android:
text=
"@string/auth_testing_connection" />
82 android:
id=
"@+id/oauth_onOff_check"
83 android:
layout_width=
"wrap_content"
84 android:
layout_height=
"wrap_content"
85 android:
checked=
"false"
86 android:
onClick=
"onCheckClick"
87 android:
text=
"@string/oauth_check_onoff"
88 android:
textAppearance=
"?android:attr/textAppearanceSmall"
89 android:
visibility=
"gone" />
92 android:
id=
"@+id/oAuthEntryPoint_1"
93 android:
layout_width=
"match_parent"
94 android:
layout_height=
"wrap_content"
96 android:
inputType=
"textUri"
97 android:
singleLine=
"true"
98 android:
text=
"@string/oauth2_url_endpoint_auth"
99 android:
visibility=
"gone" >
103 android:
id=
"@+id/oAuthEntryPoint_2"
104 android:
layout_width=
"match_parent"
105 android:
layout_height=
"wrap_content"
107 android:
inputType=
"textUri"
108 android:
singleLine=
"true"
109 android:
text=
"@string/oauth2_url_endpoint_access"
110 android:
visibility=
"gone" />
113 android:
id=
"@+id/account_username"
114 android:
layout_width=
"match_parent"
115 android:
layout_height=
"wrap_content"
117 android:
hint=
"@string/auth_username"
118 android:
inputType=
"textNoSuggestions" />
121 android:
layout_width=
"match_parent"
122 android:
layout_height=
"wrap_content" >
125 android:
id=
"@+id/account_password"
126 android:
layout_width=
"match_parent"
127 android:
layout_height=
"wrap_content"
129 android:
hint=
"@string/auth_password"
130 android:
inputType=
"textPassword" />
133 android:
id=
"@+id/viewPasswordButton"
134 android:
layout_width=
"wrap_content"
135 android:
layout_height=
"wrap_content"
136 android:
layout_gravity=
"right|center_vertical"
137 android:
onClick=
"onViewPasswordClick"
138 android:
src=
"@android:drawable/ic_menu_view"
139 android:
visibility=
"invisible" />
143 android:
id=
"@+id/auth_status_text"
144 android:
layout_width=
"match_parent"
145 android:
layout_height=
"wrap_content"
146 android:
layout_marginBottom=
"10dp"
147 android:
drawableLeft=
"@android:drawable/stat_notify_sync"
148 android:
drawablePadding=
"5dp"
149 android:
gravity=
"center_vertical"
150 android:
text=
"@string/auth_unauthorized" />
153 android:
id=
"@+id/buttonOK"
154 android:
layout_width=
"match_parent"
155 android:
layout_height=
"wrap_content"
156 android:
layout_gravity=
"center_horizontal"
157 android:
enabled=
"false"
158 android:
onClick=
"onOkClick"
159 android:
text=
"@string/setup_btn_connect"
160 android:
textColor=
"@android:color/black" />
163 android:
id=
"@+id/account_register"
164 android:
layout_width=
"wrap_content"
165 android:
layout_height=
"wrap_content"
166 android:
background=
"@android:color/transparent"
167 android:
onClick=
"onRegisterClick"
168 android:
paddingBottom=
"10dp"
169 android:
paddingTop=
"10dp"
170 android:
text=
"@string/auth_register"
171 android:
textColor=
"#0000FF" />