ce78ace595e21d7aefa9b6166cb03875f77ba575
[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 version 2,
10 as published by the Free Software Foundation.
11
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.
16
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/>.
19 -->
20 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
21 xmlns:oc="http://schemas.android.com/apk/res/com.owncloud.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:layout_width="match_parent"
38 android:layout_height="match_parent" >
39
40 <ImageView
41 android:id="@+id/imageView1"
42 android:layout_width="match_parent"
43 android:layout_height="match_parent"
44 android:layout_margin="7dp"
45 android:layout_weight="1"
46 android:src="@drawable/owncloud_logo" />
47
48 <LinearLayout
49 android:id="@+id/LinearLayout1"
50 android:layout_width="match_parent"
51 android:layout_height="wrap_content"
52 android:layout_gravity="center"
53 android:layout_weight="1"
54 android:orientation="vertical" >
55
56 <FrameLayout
57 android:layout_width="match_parent"
58 android:layout_height="wrap_content"
59 android:layout_weight="1" >
60
61 <EditText
62 android:id="@+id/hostUrlInput"
63 android:layout_width="match_parent"
64 android:layout_height="wrap_content"
65 android:ems="10"
66 android:hint="@string/auth_host_url"
67 android:inputType="textNoSuggestions">
68 <requestFocus />
69 </EditText>
70
71 <ImageView
72 android:id="@+id/refreshButton"
73 android:layout_width="wrap_content"
74 android:layout_height="wrap_content"
75 android:layout_gravity="right|center_vertical"
76 android:src="@drawable/ic_action_refresh_black"
77 android:onClick="onRefreshClick"
78 android:visibility="invisible" />
79 </FrameLayout>
80
81 <LinearLayout
82 android:layout_width="match_parent"
83 android:layout_height="50dp"
84 android:layout_weight="1" >
85
86 <ImageView
87 android:id="@+id/action_indicator"
88 android:layout_width="wrap_content"
89 android:layout_height="wrap_content"
90 android:layout_marginLeft="5dp"
91 android:layout_marginRight="5dp"
92 android:src="@android:drawable/stat_notify_sync"
93 android:visibility="invisible" />
94
95 <TextView
96 android:id="@+id/status_text"
97 android:layout_width="wrap_content"
98 android:layout_height="wrap_content"
99 android:text="TextView"
100 android:visibility="invisible" />
101 </LinearLayout>
102
103 <CheckBox
104 android:id="@+id/oauth_onOff_check"
105 android:layout_width="wrap_content"
106 android:layout_height="wrap_content"
107 android:checked="false"
108 android:onClick="onCheckClick"
109 android:text="@string/oauth_check_onoff"
110 android:textAppearance="?android:attr/textAppearanceSmall" />
111
112 <TextView
113 android:id="@+id/textView2"
114 android:layout_width="wrap_content"
115 android:layout_height="0dp"
116 android:layout_weight="1"
117 android:text="@string/auth_login_details"
118 android:textAppearance="?android:attr/textAppearanceSmall" />
119
120 <EditText
121 android:id="@+id/oAuthEntryPoint_1"
122 android:layout_width="match_parent"
123 android:layout_height="wrap_content"
124 android:layout_weight="1"
125 android:ems="10"
126 android:enabled="false"
127 android:text="@string/oauth2_url_endpoint_auth"
128 android:singleLine="true"
129 android:visibility="gone" >
130
131 <requestFocus />
132 </EditText>
133
134 <EditText
135 android:id="@+id/oAuthEntryPoint_2"
136 android:layout_width="match_parent"
137 android:layout_height="wrap_content"
138 android:layout_weight="1"
139 android:ems="10"
140 android:enabled="false"
141 android:text="@string/oauth2_url_endpoint_access"
142 android:singleLine="true"
143 android:visibility="gone" >
144
145 <requestFocus />
146 </EditText>
147
148 <EditText
149 android:id="@+id/account_username"
150 android:layout_width="match_parent"
151 android:layout_height="0dp"
152 android:layout_weight="1"
153 android:ems="10"
154 android:hint="@string/auth_username"
155 android:inputType="textNoSuggestions" />
156
157 <FrameLayout
158 android:layout_width="match_parent"
159 android:layout_height="wrap_content"
160 android:layout_weight="1" >
161
162 <EditText
163 android:id="@+id/account_password"
164 android:layout_width="match_parent"
165 android:layout_height="wrap_content"
166 android:ems="10"
167 android:hint="@string/auth_password"
168 android:inputType="textPassword"/>
169
170 <ImageView
171 android:id="@+id/viewPasswordButton"
172 android:layout_width="wrap_content"
173 android:layout_height="wrap_content"
174 android:layout_gravity="right|center_vertical"
175 android:src="@android:drawable/ic_menu_view"
176 android:onClick="onViewPasswordClick"
177 android:visibility="invisible" />
178 </FrameLayout>
179
180 <TextView
181 android:id="@+id/auth_status_text"
182 android:layout_width="match_parent"
183 android:layout_height="wrap_content"
184 android:layout_weight="1"
185 android:text="@string/text_placeholder"
186 android:layout_marginLeft="5dp"
187 android:layout_marginRight="5dp"
188 android:drawableLeft="@android:drawable/stat_notify_sync"
189 android:drawablePadding="5dip"
190 android:visibility="invisible"
191 />
192
193 </LinearLayout>
194
195 </LinearLayout>
196 </FrameLayout>
197
198 <RelativeLayout
199 android:layout_width="match_parent"
200 android:layout_height="wrap_content"
201 android:layout_alignParentBottom="true" >
202
203 <LinearLayout
204 android:id="@+id/buttons_layout"
205 android:layout_width="match_parent"
206 android:layout_height="wrap_content"
207 android:weightSum="1">
208
209 <Button
210 android:id="@+id/buttonOK"
211 android:layout_width="match_parent"
212 android:layout_height="wrap_content"
213 android:layout_weight=".5"
214 android:layout_marginLeft="16dip"
215 android:layout_marginRight="16dip"
216 android:enabled="false"
217 android:onClick="onOkClick"
218 android:text="@string/setup_btn_connect"
219 android:textColor="@android:color/black" />
220
221 </LinearLayout>
222
223 <Button
224 android:id="@+id/account_register"
225 android:layout_width="wrap_content"
226 android:layout_height="wrap_content"
227 android:layout_below="@id/buttons_layout"
228 android:layout_centerHorizontal="true"
229 android:onClick="onRegisterClick"
230 android:paddingTop="10dp"
231 android:paddingBottom="10dp"
232 android:textColor="#0000FF"
233 android:background="@android:color/transparent" />
234 <!-- android:text="@string/app_name @string/auth_register" /-->
235
236 </RelativeLayout>
237
238 </LinearLayout>