Locked edition of URL and password in redirection due to expired credentials; error...
[pub/Android/ownCloud.git] / res / layout / account_setup.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 ownCloud Android client application
4
5 Copyright (C) 2012 Bartek Przybylski
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 -->
19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20 android:layout_width="fill_parent"
21 android:layout_height="fill_parent"
22 android:focusable="true"
23 android:gravity="center|fill"
24 android:orientation="vertical" >
25
26 <FrameLayout
27 android:layout_width="match_parent"
28 android:layout_height="wrap_content"
29 android:layout_gravity="center"
30 android:layout_marginLeft="16dip"
31 android:layout_marginRight="16dip"
32 android:layout_weight="1" >
33
34 <LinearLayout
35 android:id="@+id/LinearLayout1"
36 android:layout_width="match_parent"
37 android:layout_height="wrap_content"
38 android:layout_gravity="center"
39 android:orientation="vertical" >
40
41 <ImageView
42 android:id="@+id/imageView1"
43 android:layout_width="match_parent"
44 android:layout_height="wrap_content"
45 android:layout_marginBottom="10dp"
46 android:layout_weight="1"
47 android:src="@drawable/owncloud_logo" />
48
49 <FrameLayout
50 android:layout_width="match_parent"
51 android:layout_height="wrap_content"
52 android:layout_weight="1" >
53
54 <EditText
55 android:id="@+id/hostUrlInput"
56 android:layout_width="match_parent"
57 android:layout_height="wrap_content"
58 android:ems="10"
59 android:hint="@string/auth_host_url"
60 android:inputType="textNoSuggestions" >
61 <requestFocus />
62 </EditText>
63
64 <ImageView
65 android:id="@+id/refreshButton"
66 android:layout_width="wrap_content"
67 android:layout_height="wrap_content"
68 android:src="@drawable/ic_action_refresh_black"
69 android:onClick="onRefreshClick"
70 android:layout_gravity="right|center_vertical"
71 android:visibility="invisible" />
72
73 </FrameLayout>
74
75 <LinearLayout
76 android:layout_width="match_parent"
77 android:layout_height="50dp"
78 android:layout_weight="1" >
79
80 <ImageView
81 android:id="@+id/action_indicator"
82 android:layout_width="wrap_content"
83 android:layout_height="wrap_content"
84 android:layout_marginLeft="5dp"
85 android:layout_marginRight="5dp"
86 android:src="@android:drawable/stat_notify_sync"
87 android:visibility="invisible" />
88
89 <TextView
90 android:id="@+id/status_text"
91 android:layout_width="wrap_content"
92 android:layout_height="wrap_content"
93 android:text="TextView"
94 android:visibility="invisible" />
95 </LinearLayout>
96
97 <CheckBox
98 android:id="@+id/oauth_onOff_check"
99 android:layout_width="wrap_content"
100 android:layout_height="wrap_content"
101 android:checked="false"
102 android:onClick="onCheckClick"
103 android:text="@string/oauth_check_onoff"
104 android:textAppearance="?android:attr/textAppearanceSmall" />
105
106 <TextView
107 android:id="@+id/textView2"
108 android:layout_width="wrap_content"
109 android:layout_height="0dp"
110 android:layout_weight="1"
111 android:text="@string/auth_login_details"
112 android:textAppearance="?android:attr/textAppearanceSmall" />
113
114 <EditText
115 android:id="@+id/oAuthEntryPoint_1"
116 android:layout_width="match_parent"
117 android:layout_height="wrap_content"
118 android:layout_weight="1"
119 android:ems="10"
120 android:enabled="false"
121 android:text="@string/oauth_url_endpoint_auth"
122 android:singleLine="true"
123 android:visibility="gone" >
124
125 <requestFocus />
126 </EditText>
127
128 <EditText
129 android:id="@+id/oAuthEntryPoint_2"
130 android:layout_width="match_parent"
131 android:layout_height="wrap_content"
132 android:layout_weight="1"
133 android:ems="10"
134 android:enabled="false"
135 android:text="@string/oauth_url_endpoint_access"
136 android:singleLine="true"
137 android:visibility="gone" >
138
139 <requestFocus />
140 </EditText>
141
142 <EditText
143 android:id="@+id/account_username"
144 android:layout_width="match_parent"
145 android:layout_height="0dp"
146 android:layout_weight="1"
147 android:ems="10"
148 android:hint="@string/auth_username"
149 android:inputType="textNoSuggestions" />
150
151 <FrameLayout
152 android:layout_width="match_parent"
153 android:layout_height="wrap_content"
154 android:layout_weight="1" >
155
156 <EditText
157 android:id="@+id/account_password"
158 android:layout_width="match_parent"
159 android:layout_height="wrap_content"
160 android:ems="10"
161 android:hint="@string/auth_password"
162 android:inputType="textPassword"/>
163
164 <ImageView
165 android:id="@+id/viewPasswordButton"
166 android:layout_width="wrap_content"
167 android:layout_height="wrap_content"
168 android:layout_gravity="right|center_vertical"
169 android:src="@android:drawable/ic_menu_view"
170 android:onClick="onViewPasswordClick"
171 android:visibility="invisible" />
172
173 </FrameLayout>
174
175 <!-- LinearLayout
176 android:id="@+id/auth_status_layout"
177 android:layout_width="match_parent"
178 android:layout_height="wrap_content"
179 android:layout_weight="1"
180 android:visibility="invisible"
181 >
182
183 <ImageView
184 android:id="@+id/auth_status_icon"
185 android:layout_width="wrap_content"
186 android:layout_height="wrap_content"
187 android:layout_marginLeft="5dp"
188 android:layout_marginRight="5dp"
189 android:src="@android:drawable/stat_notify_sync"
190 />
191
192 <TextView
193 android:id="@+id/auth_status_text"
194 android:layout_width="wrap_content"
195 android:layout_height="wrap_content"
196 android:text="@string/text_placeholder"
197 >
198
199 </LinearLayout -->
200
201 <TextView
202 android:id="@+id/auth_status_text"
203 android:layout_width="match_parent"
204 android:layout_height="wrap_content"
205 android:layout_weight="1"
206 android:text="@string/text_placeholder"
207 android:layout_marginLeft="5dp"
208 android:layout_marginRight="5dp"
209 android:drawableLeft="@android:drawable/stat_notify_sync"
210 android:drawablePadding="5dip"
211 android:visibility="invisible"
212 />
213
214 </LinearLayout>
215
216 </FrameLayout>
217
218 <RelativeLayout
219 android:layout_width="match_parent"
220 android:layout_height="wrap_content">
221
222 <LinearLayout
223 android:id="@+id/buttons_layout"
224 android:layout_width="match_parent"
225 android:layout_height="wrap_content"
226 android:weightSum="1" >
227
228 <Button
229 android:id="@+id/buttonCancel"
230 android:layout_width="match_parent"
231 android:layout_height="wrap_content"
232 android:layout_weight=".5"
233 android:onClick="onCancelClick"
234 android:text="@string/common_cancel" />
235
236 <Button
237 android:id="@+id/buttonOK"
238 android:layout_width="match_parent"
239 android:layout_height="wrap_content"
240 android:layout_weight=".5"
241 android:enabled="false"
242 android:onClick="onOkClick"
243 android:text="@string/setup_btn_connect"
244 android:textColor="@android:color/black" />
245
246 </LinearLayout>
247
248 <Button
249 android:id="@+id/account_register"
250 android:layout_width="wrap_content"
251 android:layout_height="wrap_content"
252 android:layout_below="@id/buttons_layout"
253 android:layout_centerHorizontal="true"
254 android:onClick="onRegisterClick"
255 android:paddingTop="10dp"
256 android:paddingBottom="10dp"
257 android:textColor="#0000FF"
258 android:background="@android:color/transparent" />
259 <!-- android:text="@string/app_name @string/auth_register" /-->
260
261 </RelativeLayout>
262
263 </LinearLayout>