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