d5d6ab0f551919b532592505e46b3c09b1bc7f28
[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) 2015 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 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
21 android:layout_width="match_parent"
22 android:layout_height="match_parent"
23 android:background="@color/login_background_color"
24 android:padding="8dip"
25 >
26
27 <LinearLayout
28 android:layout_width="match_parent"
29 android:layout_height="wrap_content"
30 android:layout_above="@+id/bottom_block"
31 android:layout_alignParentTop="true"
32 android:orientation="horizontal" >
33
34 <ImageView
35 android:id="@+id/thumbnail"
36 android:layout_width="0dp"
37 android:layout_height="wrap_content"
38 android:layout_weight="1"
39 android:layout_gravity="center"
40 android:background="@color/login_logo_background_color"
41 android:src="@drawable/logo"
42 android:contentDescription="@string/app_name"
43 />
44
45 <ScrollView
46 android:layout_width="0dp"
47 android:layout_height="match_parent"
48 android:layout_weight="1"
49 android:id="@+id/scroll"
50 android:fillViewport="true"
51 android:orientation="vertical" >
52
53 <LinearLayout
54 android:id="@+id/LinearLayout1"
55 android:layout_width="match_parent"
56 android:layout_height="wrap_content"
57 android:gravity="center"
58 android:orientation="vertical"
59 android:padding="8dp" >
60
61 <Button
62 android:id="@+id/centeredRefreshButton"
63 android:layout_width="wrap_content"
64 android:layout_height="wrap_content"
65 android:layout_gravity="center_horizontal"
66 android:layout_marginBottom="10dp"
67 android:onClick="onRefreshClick"
68 android:text="@string/auth_check_server"
69 android:visibility="gone"
70 android:contentDescription="@string/auth_check_server"/>
71 <TextView
72 android:id="@+id/instructions_message"
73 android:layout_width="wrap_content"
74 android:layout_height="wrap_content"
75 android:layout_gravity="fill_horizontal"
76 android:text="@string/auth_expired_basic_auth_toast"
77 android:visibility="gone"
78 android:layout_marginBottom="10dp"
79 android:textColor="@color/login_text_color"
80 android:textColorHint="@color/login_text_hint_color"
81 android:contentDescription="@string/auth_expired_basic_auth_toast"/>
82 <FrameLayout
83 android:id="@+id/hostUrlFrame"
84 android:layout_width="match_parent"
85 android:layout_height="wrap_content"
86 android:layout_marginBottom="10dp"
87 >
88 <EditText
89 android:id="@+id/hostUrlInput"
90 android:layout_width="match_parent"
91 android:layout_height="wrap_content"
92 android:layout_gravity="bottom"
93 android:hint="@string/auth_host_url"
94 android:inputType="textUri"
95 android:drawablePadding="5dp"
96 android:paddingRight="55dp"
97 android:textColor="@color/login_text_color"
98 android:textColorHint="@color/login_text_hint_color"
99 android:contentDescription="@string/auth_host_address"
100 >
101 <requestFocus />
102 </EditText>
103 <ImageButton
104 android:id="@+id/embeddedRefreshButton"
105 android:layout_width="48dp"
106 android:layout_height="48dp"
107 android:layout_gravity="center_vertical|right"
108 android:layout_marginRight="5dp"
109 android:padding="0dp"
110 android:scaleType="fitCenter"
111 android:src="@drawable/ic_action_refresh_black"
112 android:onClick="onRefreshClick"
113 android:visibility="gone"
114 android:background="@android:color/transparent"
115 android:contentDescription="@string/auth_refresh_button"
116 />
117 </FrameLayout>
118
119 <TextView
120 android:id="@+id/server_status_text"
121 android:layout_width="match_parent"
122 android:layout_height="wrap_content"
123 android:layout_marginBottom="10dp"
124 android:drawableLeft="@android:drawable/stat_notify_sync"
125 android:drawablePadding="5dp"
126 android:gravity="center_vertical"
127 android:textColor="@color/login_text_color"
128 android:textColorHint="@color/login_text_hint_color"
129 android:text="@string/auth_testing_connection"
130 android:contentDescription="@string/auth_testing_connection"/>
131
132 <CheckBox
133 android:id="@+id/oauth_onOff_check"
134 android:layout_width="wrap_content"
135 android:layout_height="wrap_content"
136 android:checked="false"
137 android:onClick="onCheckClick"
138 android:text="@string/oauth_check_onoff"
139 android:textColor="@color/login_text_color"
140 android:textColorHint="@color/login_text_hint_color"
141 android:textAppearance="?android:attr/textAppearanceSmall"
142 android:contentDescription="@string/oauth_check_onoff"
143 />
144
145 <EditText
146 android:id="@+id/oAuthEntryPoint_1"
147 android:layout_width="match_parent"
148 android:layout_height="wrap_content"
149 android:ems="10"
150 android:enabled="false"
151 android:text="@string/oauth2_url_endpoint_auth"
152 android:singleLine="true"
153 android:inputType="textUri"
154 android:textColor="@color/login_text_color"
155 android:textColorHint="@color/login_text_hint_color"
156 android:visibility="gone">
157 </EditText>
158
159 <EditText
160 android:id="@+id/oAuthEntryPoint_2"
161 android:layout_width="match_parent"
162 android:layout_height="wrap_content"
163 android:ems="10"
164 android:enabled="false"
165 android:text="@string/oauth2_url_endpoint_access"
166 android:singleLine="true"
167 android:inputType="textUri"
168 android:textColor="@color/login_text_color"
169 android:textColorHint="@color/login_text_hint_color"
170 android:visibility="gone">
171 <requestFocus />
172 </EditText>
173
174 <EditText
175 android:id="@+id/account_username"
176 android:layout_width="match_parent"
177 android:layout_height="wrap_content"
178 android:ems="10"
179 android:hint="@string/auth_username"
180 android:inputType="textNoSuggestions"
181 android:textColor="@color/login_text_color"
182 android:textColorHint="@color/login_text_hint_color"
183 android:contentDescription="@string/auth_username"
184 />
185
186 <EditText
187 android:id="@+id/account_password"
188 android:layout_width="match_parent"
189 android:layout_height="wrap_content"
190 android:ems="10"
191 android:hint="@string/auth_password"
192 android:inputType="textPassword"
193 android:drawablePadding="5dp"
194 android:textColor="@color/login_text_color"
195 android:textColorHint="@color/login_text_hint_color"
196 android:contentDescription="@string/auth_password"
197 />
198
199 <TextView
200 android:id="@+id/auth_status_text"
201 android:layout_width="match_parent"
202 android:layout_height="wrap_content"
203 android:gravity="center_vertical"
204 android:text="@string/auth_unauthorized"
205 android:drawableLeft="@android:drawable/stat_notify_sync"
206 android:drawablePadding="5dip"
207 android:textColor="@color/login_text_color"
208 android:textColorHint="@color/login_text_hint_color"
209 android:contentDescription="@string/auth_unauthorized"
210 />
211
212 </LinearLayout>
213
214 </ScrollView>
215
216 </LinearLayout>
217
218 <LinearLayout
219 android:id="@id/bottom_block"
220 android:layout_width="match_parent"
221 android:layout_height="wrap_content"
222 android:layout_alignParentBottom="true"
223 android:orientation="vertical" >
224
225 <Button
226 android:id="@+id/buttonOK"
227 android:layout_width="match_parent"
228 android:layout_height="wrap_content"
229 android:layout_gravity="center_horizontal"
230 android:enabled="false"
231 android:onClick="onOkClick"
232 android:text="@string/setup_btn_connect"
233 android:contentDescription="@string/setup_btn_connect"/>
234
235 <Button
236 android:id="@+id/welcome_link"
237 android:layout_width="wrap_content"
238 android:layout_height="wrap_content"
239 android:layout_gravity="center_horizontal"
240 android:background="@android:color/transparent"
241 android:onClick="onRegisterClick"
242 android:paddingBottom="5dp"
243 android:paddingTop="5dp"
244 android:text="@string/auth_register"
245 android:textColor="@color/login_text_color"
246 android:contentDescription="@string/auth_register"/>
247 </LinearLayout>
248
249 </RelativeLayout>