[tx-robot] updated from transifex
[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:textColor="@color/primary"
99 android:textColorHint="@color/login_text_hint_color"
100 android:contentDescription="@string/auth_host_address"
101 >
102 <requestFocus />
103 </EditText>
104 <ImageButton
105 android:id="@+id/embeddedRefreshButton"
106 android:layout_width="wrap_content"
107 android:layout_height="wrap_content"
108 android:layout_gravity="center_vertical|right"
109 android:layout_marginRight="5dp"
110 android:padding="0dp"
111 android:scaleType="fitCenter"
112 android:src="@drawable/ic_action_refresh_grey"
113 android:onClick="onRefreshClick"
114 android:visibility="gone"
115 android:background="@android:color/transparent"
116 android:contentDescription="@string/auth_refresh_button"
117 />
118 </FrameLayout>
119
120 <TextView
121 android:id="@+id/server_status_text"
122 android:layout_width="match_parent"
123 android:layout_height="wrap_content"
124 android:layout_marginBottom="10dp"
125 android:drawableLeft="@android:drawable/stat_notify_sync"
126 android:drawablePadding="5dp"
127 android:gravity="center_vertical"
128 android:textColor="@color/login_text_color"
129 android:textColorHint="@color/login_text_hint_color"
130 android:text="@string/auth_testing_connection"
131 android:minHeight="32dp"
132 android:contentDescription="@string/auth_testing_connection"/>
133
134 <CheckBox
135 android:id="@+id/oauth_onOff_check"
136 android:layout_width="wrap_content"
137 android:layout_height="wrap_content"
138 android:checked="false"
139 android:onClick="onCheckClick"
140 android:text="@string/oauth_check_onoff"
141 android:textColor="@color/primary"
142 android:textColorHint="@color/login_text_hint_color"
143 android:textAppearance="?android:attr/textAppearanceSmall"
144 android:contentDescription="@string/oauth_check_onoff"
145 />
146
147 <EditText
148 android:id="@+id/oAuthEntryPoint_1"
149 android:layout_width="match_parent"
150 android:layout_height="wrap_content"
151 android:ems="10"
152 android:enabled="false"
153 android:text="@string/oauth2_url_endpoint_auth"
154 android:singleLine="true"
155 android:inputType="textUri"
156 android:textColor="@color/primary"
157 android:textColorHint="@color/login_text_hint_color"
158 android:visibility="gone">
159 </EditText>
160
161 <EditText
162 android:id="@+id/oAuthEntryPoint_2"
163 android:layout_width="match_parent"
164 android:layout_height="wrap_content"
165 android:ems="10"
166 android:enabled="false"
167 android:text="@string/oauth2_url_endpoint_access"
168 android:singleLine="true"
169 android:inputType="textUri"
170 android:textColor="@color/primary"
171 android:textColorHint="@color/login_text_hint_color"
172 android:visibility="gone">
173 <requestFocus />
174 </EditText>
175
176 <EditText
177 android:id="@+id/account_username"
178 android:layout_width="match_parent"
179 android:layout_height="wrap_content"
180 android:ems="10"
181 android:hint="@string/auth_username"
182 android:inputType="textNoSuggestions"
183 android:textColor="@color/primary"
184 android:textColorHint="@color/login_text_hint_color"
185 android:contentDescription="@string/auth_username"
186 />
187
188 <EditText
189 android:id="@+id/account_password"
190 android:layout_width="match_parent"
191 android:layout_height="wrap_content"
192 android:ems="10"
193 android:hint="@string/auth_password"
194 android:inputType="textPassword"
195 android:drawablePadding="5dp"
196 android:textColor="@color/primary"
197 android:textColorHint="@color/login_text_hint_color"
198 />
199
200 <TextView
201 android:id="@+id/auth_status_text"
202 android:layout_width="match_parent"
203 android:layout_height="wrap_content"
204 android:gravity="center_vertical"
205 android:text="@string/auth_unauthorized"
206 android:drawableLeft="@android:drawable/stat_notify_sync"
207 android:drawablePadding="5dip"
208 android:textColor="@color/login_text_color"
209 android:textColorHint="@color/login_text_hint_color"
210 android:contentDescription="@string/auth_unauthorized"
211 />
212
213 </LinearLayout>
214
215 </ScrollView>
216
217 </LinearLayout>
218
219 <LinearLayout
220 android:id="@id/bottom_block"
221 android:layout_width="match_parent"
222 android:layout_height="wrap_content"
223 android:layout_alignParentBottom="true"
224 android:orientation="vertical" >
225
226 <android.support.v7.widget.AppCompatButton
227 android:id="@+id/buttonOK"
228 android:theme="@style/Button.Primary"
229 style="@style/Button.Primary"
230 android:layout_width="match_parent"
231 android:layout_height="wrap_content"
232 android:layout_gravity="center_horizontal"
233 android:enabled="false"
234 android:text="@string/setup_btn_connect"
235 android:contentDescription="@string/setup_btn_connect"/>
236
237 <Button
238 android:id="@+id/welcome_link"
239 android:layout_width="wrap_content"
240 android:layout_height="wrap_content"
241 android:layout_gravity="center_horizontal"
242 android:background="@android:color/transparent"
243 android:onClick="onRegisterClick"
244 android:paddingBottom="5dp"
245 android:paddingTop="5dp"
246 android:text="@string/auth_register"
247 android:textColor="@color/login_text_color"
248 android:contentDescription="@string/auth_register"/>
249 </LinearLayout>
250
251 </RelativeLayout>