Merge remote-tracking branch 'origin/oauth_login' 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 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 -->
19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20 android:layout_width="fill_parent"
21 android:layout_height="fill_parent"
22 android:focusable="true"
23 android:gravity="center|fill"
24 android:orientation="vertical" >
25
26 <FrameLayout
27 android:layout_width="match_parent"
28 android:layout_height="wrap_content"
29 android:layout_gravity="center"
30 android:layout_marginLeft="16dip"
31 android:layout_marginRight="16dip"
32 android:layout_weight="1" >
33
34 <LinearLayout
35 android:id="@+id/LinearLayout1"
36 android:layout_width="match_parent"
37 android:layout_height="wrap_content"
38 android:layout_gravity="center"
39 android:layout_weight="1"
40 android:orientation="vertical" >
41
42 <ImageView
43 android:id="@+id/imageView1"
44 android:layout_width="match_parent"
45 android:layout_height="wrap_content"
46 android:layout_marginBottom="10dp"
47 android:layout_weight="1"
48 android:src="@drawable/owncloud_logo" />
49
50 <FrameLayout
51 android:layout_width="match_parent"
52 android:layout_height="wrap_content"
53 android:layout_weight="1" >
54
55 <EditText
56 android:id="@+id/hostUrlInput"
57 android:layout_width="match_parent"
58 android:layout_height="wrap_content"
59 android:layout_weight="1"
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:onClick="onRefreshClick"
72 android:layout_gravity="right|center_vertical"
73 android:visibility="invisible" />
74
75 </FrameLayout>
76
77 <LinearLayout
78 android:layout_width="match_parent"
79 android:layout_height="50dp"
80 android:layout_weight="1" >
81
82 <ImageView
83 android:id="@+id/action_indicator"
84 android:layout_width="wrap_content"
85 android:layout_height="wrap_content"
86 android:layout_marginLeft="5dp"
87 android:layout_marginRight="5dp"
88 android:src="@android:drawable/stat_notify_sync"
89 android:visibility="invisible" />
90
91 <TextView
92 android:id="@+id/status_text"
93 android:layout_width="wrap_content"
94 android:layout_height="wrap_content"
95 android:text="TextView"
96 android:visibility="invisible" />
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:enabled="false"
123 android:text="@string/oauth_url_endpoint_auth"
124 android:singleLine="true"
125 android:visibility="gone" >
126
127 <requestFocus />
128 </EditText>
129
130 <EditText
131 android:id="@+id/oAuthEntryPoint_2"
132 android:layout_width="match_parent"
133 android:layout_height="wrap_content"
134 android:layout_weight="1"
135 android:ems="10"
136 android:enabled="false"
137 android:text="@string/oauth_url_endpoint_access"
138 android:singleLine="true"
139 android:visibility="gone" >
140
141 <requestFocus />
142 </EditText>
143
144 <LinearLayout
145 android:layout_width="match_parent"
146 android:layout_height="wrap_content"
147 android:layout_weight="1" >
148
149 <ImageView
150 android:id="@+id/auth2_action_indicator"
151 android:layout_width="wrap_content"
152 android:layout_height="wrap_content"
153 android:layout_marginLeft="5dp"
154 android:layout_marginRight="5dp"
155 android:src="@android:drawable/stat_notify_sync"
156 android:visibility="gone" />
157
158 <TextView
159 android:id="@+id/oauth2_status_text"
160 android:layout_width="wrap_content"
161 android:layout_height="wrap_content"
162 android:text="TextView"
163 android:visibility="gone" />
164 </LinearLayout>
165 <EditText
166 android:id="@+id/account_username"
167 android:layout_width="match_parent"
168 android:layout_height="0dp"
169 android:layout_weight="1"
170 android:ems="10"
171 android:hint="@string/auth_username"
172 android:inputType="textNoSuggestions" />
173
174 <FrameLayout
175 android:layout_width="match_parent"
176 android:layout_height="wrap_content"
177 android:layout_weight="1" >
178
179 <EditText
180 android:id="@+id/account_password"
181 android:layout_width="match_parent"
182 android:layout_height="wrap_content"
183 android:layout_weight="1"
184 android:ems="10"
185 android:hint="@string/auth_password"
186 android:inputType="textPassword"/>
187
188 <ImageView
189 android:id="@+id/viewPasswordButton"
190 android:layout_width="wrap_content"
191 android:layout_height="wrap_content"
192 android:layout_gravity="right|center_vertical"
193 android:src="@android:drawable/ic_menu_view"
194 android:onClick="onViewPasswordClick"
195 android:visibility="invisible" />
196
197 </FrameLayout>
198
199 </LinearLayout>
200
201 </FrameLayout>
202
203 <RelativeLayout
204 android:layout_width="match_parent"
205 android:layout_height="wrap_content">
206
207 <LinearLayout
208 android:id="@+id/buttons_layout"
209 android:layout_width="match_parent"
210 android:layout_height="wrap_content"
211 android:weightSum="1" >
212
213 <Button
214 android:id="@+id/buttonCancel"
215 android:layout_width="match_parent"
216 android:layout_height="wrap_content"
217 android:layout_weight=".5"
218 android:onClick="onCancelClick"
219 android:text="@string/common_cancel" />
220
221 <Button
222 android:id="@+id/buttonOK"
223 android:layout_width="match_parent"
224 android:layout_height="wrap_content"
225 android:layout_weight=".5"
226 android:enabled="false"
227 android:onClick="onOkClick"
228 android:text="@string/setup_btn_connect"
229 android:textColor="@android:color/black" />
230
231 </LinearLayout>
232
233 <Button
234 android:id="@+id/account_register"
235 android:layout_width="wrap_content"
236 android:layout_height="wrap_content"
237 android:layout_below="@id/buttons_layout"
238 android:layout_centerHorizontal="true"
239 android:onClick="onRegisterClick"
240 android:paddingTop="10dp"
241 android:paddingBottom="10dp"
242 android:textColor="#0000FF"
243 android:background="@android:color/transparent" />
244 <!-- android:text="@string/app_name @string/auth_register" /-->
245
246 </RelativeLayout>
247
248 </LinearLayout>