Locked edition of URL and password in redirection due to expired credentials; error...
[pub/Android/ownCloud.git] / res / layout-land / 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 xmlns:oc="http://schemas.android.com/apk/res/com.owncloud.android"
21 android:layout_width="fill_parent"
22 android:layout_height="fill_parent"
23 android:focusable="true"
24 android:gravity="center|fill"
25 android:orientation="vertical" >
26
27 <FrameLayout
28 android:layout_width="match_parent"
29 android:layout_height="wrap_content"
30 android:layout_gravity="center"
31 android:layout_marginLeft="16dip"
32 android:layout_marginRight="16dip"
33 android:layout_weight="1" >
34
35 <LinearLayout
36 android:layout_width="match_parent"
37 android:layout_height="match_parent" >
38
39 <ImageView
40 android:id="@+id/imageView1"
41 android:layout_width="match_parent"
42 android:layout_height="match_parent"
43 android:layout_margin="7dp"
44 android:layout_weight="1"
45 android:src="@drawable/owncloud_logo" />
46
47 <LinearLayout
48 android:id="@+id/LinearLayout1"
49 android:layout_width="match_parent"
50 android:layout_height="wrap_content"
51 android:layout_gravity="center"
52 android:layout_weight="1"
53 android:orientation="vertical" >
54
55 <FrameLayout
56 android:layout_width="match_parent"
57 android:layout_height="wrap_content"
58 android:layout_weight="1" >
59
60 <EditText
61 android:id="@+id/hostUrlInput"
62 android:layout_width="match_parent"
63 android:layout_height="wrap_content"
64 android:ems="10"
65 android:hint="@string/auth_host_url"
66 android:inputType="textNoSuggestions">
67 <requestFocus />
68 </EditText>
69
70 <ImageView
71 android:id="@+id/refreshButton"
72 android:layout_width="wrap_content"
73 android:layout_height="wrap_content"
74 android:layout_gravity="right|center_vertical"
75 android:src="@drawable/ic_action_refresh_black"
76 android:onClick="onRefreshClick"
77 android:visibility="invisible" />
78 </FrameLayout>
79
80 <LinearLayout
81 android:layout_width="match_parent"
82 android:layout_height="50dp"
83 android:layout_weight="1" >
84
85 <ImageView
86 android:id="@+id/action_indicator"
87 android:layout_width="wrap_content"
88 android:layout_height="wrap_content"
89 android:layout_marginLeft="5dp"
90 android:layout_marginRight="5dp"
91 android:src="@android:drawable/stat_notify_sync"
92 android:visibility="invisible" />
93
94 <TextView
95 android:id="@+id/status_text"
96 android:layout_width="wrap_content"
97 android:layout_height="wrap_content"
98 android:text="TextView"
99 android:visibility="invisible" />
100 </LinearLayout>
101
102 <CheckBox
103 android:id="@+id/oauth_onOff_check"
104 android:layout_width="wrap_content"
105 android:layout_height="wrap_content"
106 android:checked="false"
107 android:onClick="onCheckClick"
108 android:text="@string/oauth_check_onoff"
109 android:textAppearance="?android:attr/textAppearanceSmall" />
110
111 <TextView
112 android:id="@+id/textView2"
113 android:layout_width="wrap_content"
114 android:layout_height="0dp"
115 android:layout_weight="1"
116 android:text="@string/auth_login_details"
117 android:textAppearance="?android:attr/textAppearanceSmall" />
118
119 <EditText
120 android:id="@+id/oAuthEntryPoint_1"
121 android:layout_width="match_parent"
122 android:layout_height="wrap_content"
123 android:layout_weight="1"
124 android:ems="10"
125 android:enabled="false"
126 android:text="@string/oauth_url_endpoint_auth"
127 android:singleLine="true"
128 android:visibility="gone" >
129
130 <requestFocus />
131 </EditText>
132
133 <EditText
134 android:id="@+id/oAuthEntryPoint_2"
135 android:layout_width="match_parent"
136 android:layout_height="wrap_content"
137 android:layout_weight="1"
138 android:ems="10"
139 android:enabled="false"
140 android:text="@string/oauth_url_endpoint_access"
141 android:singleLine="true"
142 android:visibility="gone" >
143
144 <requestFocus />
145 </EditText>
146
147 <EditText
148 android:id="@+id/account_username"
149 android:layout_width="match_parent"
150 android:layout_height="0dp"
151 android:layout_weight="1"
152 android:ems="10"
153 android:hint="@string/auth_username"
154 android:inputType="textNoSuggestions" />
155
156 <FrameLayout
157 android:layout_width="match_parent"
158 android:layout_height="wrap_content"
159 android:layout_weight="1" >
160
161 <EditText
162 android:id="@+id/account_password"
163 android:layout_width="match_parent"
164 android:layout_height="wrap_content"
165 android:ems="10"
166 android:hint="@string/auth_password"
167 android:inputType="textPassword"/>
168
169 <ImageView
170 android:id="@+id/viewPasswordButton"
171 android:layout_width="wrap_content"
172 android:layout_height="wrap_content"
173 android:layout_gravity="right|center_vertical"
174 android:src="@android:drawable/ic_menu_view"
175 android:onClick="onViewPasswordClick"
176 android:visibility="invisible" />
177 </FrameLayout>
178 </LinearLayout>
179
180 <!-- LinearLayout
181 android:id="@+id/auth_status_layout"
182 android:layout_width="match_parent"
183 android:layout_height="wrap_content"
184 android:layout_weight="1"
185 android:visibility="invisible"
186 >
187
188 <ImageView
189 android:id="@+id/auth_status_icon"
190 android:layout_width="wrap_content"
191 android:layout_height="wrap_content"
192 android:layout_marginLeft="5dp"
193 android:layout_marginRight="5dp"
194 android:src="@android:drawable/stat_notify_sync"
195 />
196
197 <TextView
198 android:id="@+id/auth_status_text"
199 android:layout_width="wrap_content"
200 android:layout_height="wrap_content"
201 android:text="@string/text_placeholder"
202 />
203
204 </LinearLayout -->
205
206 <TextView
207 android:id="@+id/auth_status_text"
208 android:layout_width="match_parent"
209 android:layout_height="wrap_content"
210 android:layout_weight="1"
211 android:text="@string/text_placeholder"
212 android:layout_marginLeft="5dp"
213 android:layout_marginRight="5dp"
214 android:drawableLeft="@android:drawable/stat_notify_sync"
215 android:drawablePadding="5dip"
216 android:visibility="invisible"
217 />
218
219
220 </LinearLayout>
221 </FrameLayout>
222
223 <RelativeLayout
224 android:layout_width="match_parent"
225 android:layout_height="wrap_content"
226 android:layout_alignParentBottom="true" >
227
228 <LinearLayout
229 android:id="@+id/buttons_layout"
230 android:layout_width="match_parent"
231 android:layout_height="wrap_content"
232 android:weightSum="1">
233
234 <Button
235 android:id="@+id/buttonCancel"
236 android:layout_width="match_parent"
237 android:layout_height="wrap_content"
238 android:layout_weight=".5"
239 android:onClick="onCancelClick"
240 android:text="@string/common_cancel" />
241
242 <Button
243 android:id="@+id/buttonOK"
244 android:layout_width="match_parent"
245 android:layout_height="wrap_content"
246 android:layout_weight=".5"
247 android:enabled="false"
248 android:onClick="onOkClick"
249 android:text="@string/setup_btn_connect"
250 android:textColor="@android:color/black" />
251
252 </LinearLayout>
253
254 <Button
255 android:id="@+id/account_register"
256 android:layout_width="wrap_content"
257 android:layout_height="wrap_content"
258 android:layout_below="@id/buttons_layout"
259 android:layout_centerHorizontal="true"
260 android:onClick="onRegisterClick"
261 android:paddingTop="10dp"
262 android:paddingBottom="10dp"
263 android:textColor="#0000FF"
264 android:background="@android:color/transparent" />
265 <!-- android:text="@string/app_name @string/auth_register" /-->
266
267 </RelativeLayout>
268
269 </LinearLayout>