Merge branch 'saml_based_federated_single_sign_on' into saml_based_federated_single_s...
[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) 2012-2013 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
27 <LinearLayout
28 android:layout_width="match_parent"
29 android:layout_height="wrap_content"
30 android:focusable="true"
31 android:gravity="center"
32 android:orientation="vertical"
33 android:padding="8dp" >
34
35 <ImageView
36 android:id="@+id/imageView1"
37 android:layout_width="match_parent"
38 android:layout_height="wrap_content"
39 android:layout_marginBottom="10dp"
40 android:layout_marginTop="10dp"
41 android:src="@drawable/logo" />
42
43 <Button
44 android:id="@+id/centeredRefreshButton"
45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"
47 android:layout_gravity="center_horizontal"
48 android:layout_marginBottom="10dp"
49 android:onClick="onRefreshClick"
50 android:text="@string/auth_check_server"
51 android:visibility="gone" />
52
53 <TextView
54 android:id="@+id/auth_message"
55 android:layout_width="wrap_content"
56 android:layout_height="wrap_content"
57 android:layout_gravity="fill_horizontal"
58 android:text="@string/auth_expired_basic_auth_toast"
59 android:visibility="gone"
60 android:layout_marginBottom="10dp" />
61
62 <FrameLayout
63 android:id="@+id/hostUrlFrame"
64 android:layout_width="match_parent"
65 android:layout_height="wrap_content"
66 android:layout_marginBottom="10dp"
67 >
68 <EditText
69 android:id="@+id/hostUrlInput"
70 android:layout_width="match_parent"
71 android:layout_height="wrap_content"
72 android:layout_gravity="bottom"
73 android:hint="@string/auth_host_url"
74 android:inputType="textUri"
75 android:drawablePadding="5dp"
76 android:paddingRight="55dp"
77 >
78 <requestFocus />
79 </EditText>
80 <ImageButton
81 android:id="@+id/embeddedRefreshButton"
82 android:layout_width="48dp"
83 android:layout_height="48dp"
84 android:layout_gravity="center_vertical|right"
85 android:layout_marginRight="5dp"
86 android:padding="0dp"
87 android:scaleType="fitCenter"
88 android:src="@drawable/ic_action_refresh_black"
89 android:onClick="onRefreshClick"
90 android:visibility="gone"
91 android:background="@android:color/transparent"
92 />
93 </FrameLayout>
94
95 <TextView
96 android:id="@+id/server_status_text"
97 android:layout_width="match_parent"
98 android:layout_height="wrap_content"
99 android:layout_marginBottom="10dp"
100 android:drawableLeft="@android:drawable/stat_notify_sync"
101 android:drawablePadding="5dp"
102 android:gravity="center_vertical"
103 android:text="@string/auth_testing_connection" />
104
105 <CheckBox
106 android:id="@+id/oauth_onOff_check"
107 android:layout_width="wrap_content"
108 android:layout_height="wrap_content"
109 android:checked="false"
110 android:onClick="onCheckClick"
111 android:text="@string/oauth_check_onoff"
112 android:textAppearance="?android:attr/textAppearanceSmall"
113 />
114
115 <EditText
116 android:id="@+id/oAuthEntryPoint_1"
117 android:layout_width="match_parent"
118 android:layout_height="wrap_content"
119 android:ems="10"
120 android:enabled="false"
121 android:text="@string/oauth2_url_endpoint_auth"
122 android:singleLine="true"
123 android:inputType="textUri"
124 android:visibility="gone" >
125 </EditText>
126
127 <EditText
128 android:id="@+id/oAuthEntryPoint_2"
129 android:layout_width="match_parent"
130 android:layout_height="wrap_content"
131 android:ems="10"
132 android:enabled="false"
133 android:text="@string/oauth2_url_endpoint_access"
134 android:singleLine="true"
135 android:inputType="textUri"
136 android:visibility="gone" />
137
138 <EditText
139 android:id="@+id/account_name"
140 android:layout_width="match_parent"
141 android:layout_height="wrap_content"
142 android:ems="10"
143 android:hint="@string/auth_account_name"
144 android:inputType="textNoSuggestions"
145 android:visibility="gone" />
146
147 <WebView
148 android:id="@+id/web_sso_view"
149 android:layout_width="wrap_content"
150 android:layout_height="wrap_content"
151 android:visibility="gone" />
152
153 <EditText
154 android:id="@+id/account_username"
155 android:layout_width="match_parent"
156 android:layout_height="wrap_content"
157 android:ems="10"
158 android:hint="@string/auth_username"
159 android:inputType="textNoSuggestions"
160 />
161
162 <EditText
163 android:id="@+id/account_password"
164 android:layout_width="match_parent"
165 android:layout_height="wrap_content"
166 android:drawablePadding="5dp"
167 android:ems="10"
168 android:hint="@string/auth_password"
169 android:inputType="textPassword"
170 />
171
172 <TextView
173 android:id="@+id/auth_status_text"
174 android:layout_width="match_parent"
175 android:layout_height="wrap_content"
176 android:layout_marginBottom="10dp"
177 android:drawableLeft="@android:drawable/stat_notify_sync"
178 android:drawablePadding="5dp"
179 android:gravity="center_vertical"
180 android:text="@string/auth_unauthorized" />
181
182 <Button
183 android:id="@+id/buttonOK"
184 android:layout_width="match_parent"
185 android:layout_height="wrap_content"
186 android:layout_gravity="center_horizontal"
187 android:enabled="false"
188 android:onClick="onOkClick"
189 android:text="@string/setup_btn_connect"
190 />
191
192 <Button
193 android:id="@+id/account_register"
194 android:layout_width="wrap_content"
195 android:layout_height="wrap_content"
196 android:background="@android:color/transparent"
197 android:textColor="#0000FF"
198 android:onClick="onRegisterClick"
199 android:paddingBottom="5dp"
200 android:paddingTop="5dp"
201 android:text="@string/auth_register"
202 />
203 </LinearLayout>
204
205 </ScrollView>