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