Merge tag 'oc-android-1.9' into sdcard-save
[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 <android.support.v7.widget.AppCompatButton
62 android:id="@+id/centeredRefreshButton"
63 style="@style/ownCloud.Button"
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:layout_gravity="center_horizontal"
67 android:layout_marginBottom="10dp"
68 android:text="@string/auth_check_server"
69 android:visibility="gone"
70 android:contentDescription="@string/auth_check_server"/>
71
72 <TextView
73 android:id="@+id/instructions_message"
74 android:layout_width="wrap_content"
75 android:layout_height="wrap_content"
76 android:layout_gravity="fill_horizontal"
77 android:text="@string/auth_expired_basic_auth_toast"
78 android:visibility="gone"
79 android:layout_marginBottom="10dp"
80 android:textColor="@color/login_text_color"
81 android:textColorHint="@color/login_text_hint_color"
82 android:contentDescription="@string/auth_expired_basic_auth_toast"/>
83 <FrameLayout
84 android:id="@+id/hostUrlFrame"
85 android:layout_width="match_parent"
86 android:layout_height="wrap_content"
87 android:layout_marginBottom="0dp"
88 >
89 <EditText
90 android:id="@+id/hostUrlInput"
91 android:layout_width="match_parent"
92 android:layout_height="wrap_content"
93 android:layout_gravity="bottom"
94 android:hint="@string/auth_host_url"
95 android:inputType="textUri"
96 android:drawablePadding="5dp"
97 android:paddingRight="55dp"
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="wrap_content"
106 android:layout_height="wrap_content"
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_grey"
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:minHeight="32dp"
131 android:contentDescription="@string/auth_testing_connection"/>
132
133 <CheckBox
134 android:id="@+id/oauth_onOff_check"
135 android:layout_width="wrap_content"
136 android:layout_height="wrap_content"
137 android:checked="false"
138 android:onClick="onCheckClick"
139 android:text="@string/oauth_check_onoff"
140 android:textColor="@color/primary"
141 android:textColorHint="@color/login_text_hint_color"
142 android:textAppearance="?android:attr/textAppearanceSmall"
143 android:contentDescription="@string/oauth_check_onoff"
144 />
145
146 <EditText
147 android:id="@+id/oAuthEntryPoint_1"
148 android:layout_width="match_parent"
149 android:layout_height="wrap_content"
150 android:ems="10"
151 android:enabled="false"
152 android:text="@string/oauth2_url_endpoint_auth"
153 android:singleLine="true"
154 android:inputType="textUri"
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:textColorHint="@color/login_text_hint_color"
169 android:visibility="gone">
170 <requestFocus />
171 </EditText>
172
173 <EditText
174 android:id="@+id/account_username"
175 android:layout_width="match_parent"
176 android:layout_height="wrap_content"
177 android:ems="10"
178 android:hint="@string/auth_username"
179 android:inputType="textNoSuggestions"
180 android:textColorHint="@color/login_text_hint_color"
181 android:contentDescription="@string/auth_username"
182 />
183
184 <EditText
185 android:id="@+id/account_password"
186 android:layout_width="match_parent"
187 android:layout_height="wrap_content"
188 android:ems="10"
189 android:hint="@string/auth_password"
190 android:inputType="textPassword"
191 android:drawablePadding="5dp"
192 android:textColorHint="@color/login_text_hint_color"
193 />
194
195 <TextView
196 android:id="@+id/auth_status_text"
197 android:layout_width="match_parent"
198 android:layout_height="wrap_content"
199 android:gravity="center_vertical"
200 android:text="@string/auth_unauthorized"
201 android:drawableLeft="@android:drawable/stat_notify_sync"
202 android:drawablePadding="5dip"
203 android:textColor="@color/login_text_color"
204 android:textColorHint="@color/login_text_hint_color"
205 android:contentDescription="@string/auth_unauthorized"
206 />
207
208 </LinearLayout>
209
210 </ScrollView>
211
212 </LinearLayout>
213
214 <LinearLayout
215 android:id="@id/bottom_block"
216 android:layout_width="match_parent"
217 android:layout_height="wrap_content"
218 android:layout_alignParentBottom="true"
219 android:orientation="vertical" >
220
221 <android.support.v7.widget.AppCompatButton
222 android:id="@+id/buttonOK"
223 android:theme="@style/Button.Primary"
224 style="@style/Button.Primary"
225 android:layout_width="match_parent"
226 android:layout_height="wrap_content"
227 android:layout_gravity="center_horizontal"
228 android:enabled="false"
229 android:text="@string/setup_btn_connect"
230 android:contentDescription="@string/setup_btn_connect"/>
231
232 <Button
233 android:id="@+id/welcome_link"
234 android:layout_width="wrap_content"
235 android:layout_height="wrap_content"
236 android:layout_gravity="center_horizontal"
237 android:background="@android:color/transparent"
238 android:onClick="onRegisterClick"
239 android:paddingBottom="5dp"
240 android:paddingTop="5dp"
241 android:text="@string/auth_register"
242 android:textColor="@color/login_text_color"
243 android:contentDescription="@string/auth_register"/>
244 </LinearLayout>
245
246 </RelativeLayout>