Merge remote-tracking branch 'origin/saml_based_federated_single_sign_on_expired...
[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_username"
140 android:layout_width="match_parent"
141 android:layout_height="wrap_content"
142 android:ems="10"
143 android:hint="@string/auth_username"
144 android:inputType="textNoSuggestions"
145 />
146
147 <EditText
148 android:id="@+id/account_password"
149 android:layout_width="match_parent"
150 android:layout_height="wrap_content"
151 android:drawablePadding="5dp"
152 android:ems="10"
153 android:hint="@string/auth_password"
154 android:inputType="textPassword"
155 />
156
157 <TextView
158 android:id="@+id/auth_status_text"
159 android:layout_width="match_parent"
160 android:layout_height="wrap_content"
161 android:layout_marginBottom="10dp"
162 android:drawableLeft="@android:drawable/stat_notify_sync"
163 android:drawablePadding="5dp"
164 android:gravity="center_vertical"
165 android:text="@string/auth_unauthorized" />
166
167 <Button
168 android:id="@+id/buttonOK"
169 android:layout_width="match_parent"
170 android:layout_height="wrap_content"
171 android:layout_gravity="center_horizontal"
172 android:enabled="false"
173 android:onClick="onOkClick"
174 android:text="@string/setup_btn_connect"
175 />
176
177 <Button
178 android:id="@+id/account_register"
179 android:layout_width="wrap_content"
180 android:layout_height="wrap_content"
181 android:background="@android:color/transparent"
182 android:textColor="#0000FF"
183 android:onClick="onRegisterClick"
184 android:paddingBottom="5dp"
185 android:paddingTop="5dp"
186 android:text="@string/auth_register"
187 />
188 </LinearLayout>
189
190 </ScrollView>