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