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