Merge branch 'material_toolbar' of https://github.com/owncloud/android into material_...
[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="@dimen/standard_padding" >
36
37 <ImageView
38 android:id="@+id/thumbnail"
39 android:layout_width="match_parent"
40 android:layout_height="wrap_content"
41 android:layout_marginBottom="@dimen/standard_margin"
42 android:src="@drawable/logo"
43 android:contentDescription="@string/app_name"/>
44
45 <android.support.v7.widget.AppCompatButton
46 android:id="@+id/centeredRefreshButton"
47 android:theme="@style/Button"
48 android:layout_width="wrap_content"
49 android:layout_height="wrap_content"
50 android:layout_gravity="center_horizontal"
51 android:layout_marginBottom="10dp"
52 android:text="@string/auth_check_server"
53 android:visibility="gone"
54 android:contentDescription="@string/auth_check_server"/>
55
56 <TextView
57 android:id="@+id/instructions_message"
58 android:layout_width="wrap_content"
59 android:layout_height="wrap_content"
60 android:layout_gravity="fill_horizontal"
61 android:text="@string/auth_expired_basic_auth_toast"
62 android:visibility="gone"
63 android:layout_marginBottom="10dp"
64 android:textColor="@color/login_text_color"
65 android:textColorHint="@color/login_text_hint_color"
66 android:contentDescription="@string/auth_expired_basic_auth_toast"/>
67
68 <FrameLayout
69 android:id="@+id/hostUrlFrame"
70 android:layout_width="match_parent"
71 android:layout_height="wrap_content"
72 android:layout_marginBottom="0dp"
73 >
74 <EditText
75 android:id="@+id/hostUrlInput"
76 android:layout_width="match_parent"
77 android:layout_height="wrap_content"
78 android:layout_gravity="bottom"
79 android:hint="@string/auth_host_url"
80 android:inputType="textUri"
81 android:drawablePadding="5dp"
82 android:paddingRight="55dp"
83 android:textColor="@color/login_text_color"
84 android:textColorHint="@color/login_text_hint_color"
85 android:contentDescription="@string/auth_host_address"
86 >
87 <requestFocus />
88 </EditText>
89 <ImageButton
90 android:id="@+id/embeddedRefreshButton"
91 android:layout_width="wrap_content"
92 android:layout_height="wrap_content"
93 android:layout_gravity="center_vertical|right"
94 android:layout_marginRight="5dp"
95 android:padding="0dp"
96 android:scaleType="fitCenter"
97 android:src="@drawable/ic_action_refresh_grey"
98 android:onClick="onRefreshClick"
99 android:visibility="gone"
100 android:background="@android:color/transparent"
101 android:contentDescription="@string/auth_refresh_button"
102 />
103 </FrameLayout>
104
105 <TextView
106 android:id="@+id/server_status_text"
107 android:layout_width="match_parent"
108 android:layout_height="wrap_content"
109 android:layout_marginBottom="10dp"
110 android:drawableLeft="@android:drawable/stat_notify_sync"
111 android:drawablePadding="5dp"
112 android:gravity="center_vertical"
113 android:textColor="@color/login_text_color"
114 android:textColorHint="@color/login_text_hint_color"
115 android:text="@string/auth_testing_connection"
116 android:contentDescription="@string/auth_testing_connection"/>
117
118 <android.support.v7.widget.AppCompatCheckBox
119 android:id="@+id/oauth_onOff_check"
120 android:layout_width="wrap_content"
121 android:layout_height="wrap_content"
122 android:checked="false"
123 android:onClick="onCheckClick"
124 android:text="@string/oauth_check_onoff"
125 android:textAppearance="?android:attr/textAppearanceSmall"
126 android:textColor="@color/login_text_color"
127 android:textColorHint="@color/login_text_hint_color"
128 android:contentDescription="@string/oauth_check_onoff"
129 />
130
131 <EditText
132 android:id="@+id/oAuthEntryPoint_1"
133 android:layout_width="match_parent"
134 android:layout_height="wrap_content"
135 android:ems="10"
136 android:enabled="false"
137 android:textColor="@color/login_text_color"
138 android:textColorHint="@color/login_text_hint_color"
139 android:text="@string/oauth2_url_endpoint_auth"
140 android:singleLine="true"
141 android:inputType="textUri"
142 android:visibility="gone">
143 </EditText>
144
145 <EditText
146 android:id="@+id/oAuthEntryPoint_2"
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_access"
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
158 <EditText
159 android:id="@+id/account_username"
160 android:layout_width="match_parent"
161 android:layout_height="wrap_content"
162 android:ems="10"
163 android:hint="@string/auth_username"
164 android:inputType="textNoSuggestions"
165 android:textColor="@color/login_text_color"
166 android:textColorHint="@color/login_text_hint_color"
167 android:contentDescription="@string/auth_username"
168 />
169
170 <EditText
171 android:id="@+id/account_password"
172 android:layout_width="match_parent"
173 android:layout_height="wrap_content"
174 android:drawablePadding="5dp"
175 android:ems="10"
176 android:hint="@string/auth_password"
177 android:inputType="textPassword"
178 android:textColor="@color/login_text_color"
179 android:textColorHint="@color/login_text_hint_color"
180 android:contentDescription="@string/auth_password"
181 />
182
183 <TextView
184 android:id="@+id/auth_status_text"
185 android:layout_width="match_parent"
186 android:layout_height="wrap_content"
187 android:layout_marginBottom="10dp"
188 android:drawableLeft="@android:drawable/stat_notify_sync"
189 android:drawablePadding="5dp"
190 android:gravity="center_vertical"
191 android:text="@string/auth_unauthorized"
192 android:textColor="@color/login_text_color"
193 android:textColorHint="@color/login_text_hint_color"
194 android:contentDescription="@string/auth_unauthorized"/>
195
196 <android.support.v7.widget.AppCompatButton
197 android:id="@+id/buttonOK"
198 android:theme="@style/Button"
199 android:layout_width="match_parent"
200 android:layout_height="wrap_content"
201 android:layout_gravity="center_horizontal"
202 android:enabled="false"
203 android:text="@string/setup_btn_connect"
204 android:contentDescription="@string/setup_btn_connect"/>
205
206 <Button
207 android:id="@+id/welcome_link"
208 android:layout_width="wrap_content"
209 android:layout_height="wrap_content"
210 android:background="@android:color/transparent"
211 android:onClick="onRegisterClick"
212 android:paddingTop="@dimen/standard_padding"
213 android:text="@string/auth_register"
214 android:textColor="@color/login_text_color"
215 android:textColorHint="@color/login_text_hint_color"
216 android:contentDescription="@string/auth_register"/>
217
218 </LinearLayout>
219
220 </ScrollView>