Merge branch 'develop' into oauth_login
[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="fill_parent"
22 android:layout_height="fill_parent"
23 android:focusable="true"
24 android:gravity="center|fill"
25 android:orientation="vertical" >
26
27 <FrameLayout
28 android:layout_width="match_parent"
29 android:layout_height="0dip"
30 android:layout_gravity="center"
31 android:layout_marginBottom="50dip"
32 android:layout_marginLeft="16dip"
33 android:layout_marginRight="16dip"
34 android:layout_weight="1" >
35
36 <LinearLayout
37 android:id="@+id/LinearLayout1"
38 android:layout_width="match_parent"
39 android:layout_height="wrap_content"
40 android:layout_gravity="center"
41 android:orientation="vertical" >
42
43 <ImageView
44 android:id="@+id/imageView1"
45 android:layout_width="match_parent"
46 android:layout_height="wrap_content"
47 android:layout_marginBottom="10dp"
48 android:layout_weight="1"
49 android:src="@drawable/owncloud_logo" />
50
51 <FrameLayout
52 android:layout_width="match_parent"
53 android:layout_height="wrap_content"
54 android:layout_weight="1" >
55
56 <EditText
57 android:id="@+id/hostUrlInput"
58 android:layout_width="match_parent"
59 android:layout_height="wrap_content"
60 android:ems="10"
61 android:hint="@string/auth_host_url"
62 android:inputType="textNoSuggestions" >
63 <requestFocus />
64 </EditText>
65
66 <ImageView
67 android:id="@+id/refreshButton"
68 android:layout_width="wrap_content"
69 android:layout_height="wrap_content"
70 android:src="@drawable/ic_action_refresh_black"
71 android:layout_gravity="right|center_vertical"
72 android:visibility="invisible" />
73
74 </FrameLayout>
75
76 <LinearLayout
77 android:layout_width="match_parent"
78 android:layout_height="50dp"
79 android:layout_weight="1" >
80
81 <ImageView
82 android:id="@+id/action_indicator"
83 android:layout_width="wrap_content"
84 android:layout_height="wrap_content"
85 android:layout_marginLeft="5dp"
86 android:layout_marginRight="5dp"
87 android:src="@android:drawable/stat_notify_sync"
88 android:visibility="invisible" />
89
90 <TextView
91 android:id="@+id/status_text"
92 android:layout_width="wrap_content"
93 android:layout_height="wrap_content"
94 android:text="TextView"
95 android:visibility="invisible" />
96
97 </LinearLayout>
98
99 <CheckBox
100 android:id="@+id/oauth_onOff_check"
101 android:layout_width="wrap_content"
102 android:layout_height="wrap_content"
103 android:checked="false"
104 android:onClick="onCheckClick"
105 android:text="@string/oauth_check_onoff"
106 android:textAppearance="?android:attr/textAppearanceSmall" />
107
108 <TextView
109 android:id="@+id/textView2"
110 android:layout_width="wrap_content"
111 android:layout_height="0dp"
112 android:layout_weight="1"
113 android:text="@string/auth_login_details"
114 android:textAppearance="?android:attr/textAppearanceSmall" />
115
116 <EditText
117 android:id="@+id/oAuthEntryPoint_1"
118 android:layout_width="match_parent"
119 android:layout_height="wrap_content"
120 android:layout_weight="1"
121 android:ems="10"
122 android:text="@string/oauth2_url_endpoint_auth"
123 android:singleLine="true"
124 android:visibility="gone" >
125
126 <requestFocus />
127 </EditText>
128
129 <EditText
130 android:id="@+id/oAuthEntryPoint_2"
131 android:layout_width="match_parent"
132 android:layout_height="wrap_content"
133 android:layout_weight="1"
134 android:ems="10"
135 android:text="@string/oauth2_url_endpoint_access"
136 android:singleLine="true"
137 android:visibility="gone" >
138
139 <requestFocus />
140 </EditText>
141
142 <EditText
143 android:id="@+id/account_username"
144 android:layout_width="match_parent"
145 android:layout_height="0dp"
146 android:layout_weight="1"
147 android:ems="10"
148 android:hint="@string/auth_username"
149 android:inputType="textNoSuggestions" />
150
151 <FrameLayout
152 android:layout_width="match_parent"
153 android:layout_height="wrap_content"
154 android:layout_weight="1" >
155
156 <EditText
157 android:id="@+id/account_password"
158 android:layout_width="match_parent"
159 android:layout_height="wrap_content"
160 android:ems="10"
161 android:hint="@string/auth_password"
162 android:inputType="textPassword"/>
163
164 <ImageView
165 android:id="@+id/viewPassword"
166 android:layout_width="wrap_content"
167 android:layout_height="wrap_content"
168 android:layout_gravity="right|center_vertical"
169 android:src="@android:drawable/ic_menu_view"
170 android:onClick="onViewPasswordClick"
171 android:visibility="invisible" />
172
173 </FrameLayout>
174
175 <TextView
176 android:id="@+id/auth_status_text"
177 android:layout_width="match_parent"
178 android:layout_height="wrap_content"
179 android:layout_weight="1"
180 android:text="@string/text_placeholder"
181 android:layout_marginLeft="5dp"
182 android:layout_marginRight="5dp"
183 android:drawableLeft="@android:drawable/stat_notify_sync"
184 android:drawablePadding="5dip"
185 android:visibility="invisible"
186 />
187
188 </LinearLayout>
189
190 </FrameLayout>
191
192 <RelativeLayout
193 android:layout_width="match_parent"
194 android:layout_height="wrap_content">
195
196 <LinearLayout
197 android:id="@+id/buttons_layout"
198 android:layout_width="match_parent"
199 android:layout_height="wrap_content"
200 android:weightSum="1">
201
202 <Button
203 android:id="@+id/buttonOK"
204 android:layout_width="match_parent"
205 android:layout_height="wrap_content"
206 android:layout_gravity="center_horizontal"
207 android:layout_marginLeft="16dip"
208 android:layout_marginRight="16dip"
209 android:enabled="false"
210 android:onClick="onOkClick"
211 android:text="@string/setup_btn_connect"
212 android:textColor="@android:color/black" />
213
214 </LinearLayout>
215
216 <Button
217 android:id="@+id/account_register"
218 android:layout_width="wrap_content"
219 android:layout_height="wrap_content"
220 android:layout_below="@id/buttons_layout"
221 android:layout_centerHorizontal="true"
222 android:onClick="onRegisterClick"
223 android:paddingTop="10dp"
224 android:paddingBottom="10dp"
225 android:textColor="#0000FF"
226 android:background="@android:color/transparent" />
227
228 <Button
229 android:id="@+id/account_register"
230 android:layout_width="wrap_content"
231 android:layout_height="wrap_content"
232 android:layout_below="@id/buttons_layout"
233 android:layout_centerHorizontal="true"
234 android:onClick="onRegisterClick"
235 android:paddingTop="10dp"
236 android:paddingBottom="10dp"
237 android:textColor="#0000FF"
238 android:background="@android:color/transparent" />
239 <!-- android:text="@string/app_name @string/auth_register" /-->
240
241 </RelativeLayout>
242
243 </ScrollView>