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