Merge branch 'develop' into refresh_folder_contents_when_browsed_into
[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 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 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
21 android:layout_width="match_parent"
22 android:layout_height="match_parent"
23 android:background="@color/login_background_color"
24 android:padding="8dip"
25 >
26
27 <LinearLayout
28 android:layout_width="match_parent"
29 android:layout_height="wrap_content"
30 android:layout_above="@id/buttonOK"
31 android:layout_alignParentTop="true"
32 android:orientation="horizontal" >
33
34 <ImageView
35 android:id="@+id/imageView1"
36 android:layout_width="0dp"
37 android:layout_height="wrap_content"
38 android:layout_weight="1"
39 android:layout_gravity="center"
40 android:src="@drawable/logo"
41 />
42
43 <ScrollView
44 android:layout_width="0dp"
45 android:layout_height="match_parent"
46 android:layout_weight="1"
47 android:id="@+id/scroll"
48 android:fillViewport="true"
49 android:orientation="vertical" >
50
51 <LinearLayout
52 android:id="@+id/LinearLayout1"
53 android:layout_width="match_parent"
54 android:layout_height="wrap_content"
55 android:gravity="center"
56 android:orientation="vertical"
57 android:padding="8dp" >
58
59 <Button
60 android:id="@+id/centeredRefreshButton"
61 android:layout_width="wrap_content"
62 android:layout_height="wrap_content"
63 android:layout_gravity="center_horizontal"
64 android:layout_marginBottom="10dp"
65 android:onClick="onRefreshClick"
66 android:text="@string/auth_check_server"
67 android:visibility="gone" />
68 <TextView
69 android:id="@+id/auth_message"
70 android:layout_width="wrap_content"
71 android:layout_height="wrap_content"
72 android:layout_gravity="fill_horizontal"
73 android:text="@string/auth_expired_basic_auth_toast"
74 android:visibility="gone"
75 android:layout_marginBottom="10dp"/>
76 <FrameLayout
77 android:id="@+id/hostUrlFrame"
78 android:layout_width="match_parent"
79 android:layout_height="wrap_content"
80 android:layout_marginBottom="10dp"
81 >
82 <EditText
83 android:id="@+id/hostUrlInput"
84 android:layout_width="match_parent"
85 android:layout_height="wrap_content"
86 android:layout_gravity="bottom"
87 android:hint="@string/auth_host_url"
88 android:inputType="textUri"
89 android:drawablePadding="5dp"
90 android:paddingRight="55dp"
91 >
92 <requestFocus />
93 </EditText>
94 <ImageButton
95 android:id="@+id/embeddedRefreshButton"
96 android:layout_width="48dp"
97 android:layout_height="48dp"
98 android:layout_gravity="center_vertical|right"
99 android:layout_marginRight="5dp"
100 android:padding="0dp"
101 android:scaleType="fitCenter"
102 android:src="@drawable/ic_action_refresh_black"
103 android:onClick="onRefreshClick"
104 android:visibility="gone"
105 android:background="@android:color/transparent"
106 />
107 </FrameLayout>
108
109 <TextView
110 android:id="@+id/server_status_text"
111 android:layout_width="match_parent"
112 android:layout_height="wrap_content"
113 android:layout_marginBottom="10dp"
114 android:drawableLeft="@android:drawable/stat_notify_sync"
115 android:drawablePadding="5dp"
116 android:gravity="center_vertical"
117 android:text="@string/auth_testing_connection" />
118
119 <CheckBox
120 android:id="@+id/oauth_onOff_check"
121 android:layout_width="wrap_content"
122 android:layout_height="wrap_content"
123 android:checked="false"
124 android:onClick="onCheckClick"
125 android:text="@string/oauth_check_onoff"
126 android:textAppearance="?android:attr/textAppearanceSmall"
127 />
128
129 <EditText
130 android:id="@+id/oAuthEntryPoint_1"
131 android:layout_width="match_parent"
132 android:layout_height="wrap_content"
133 android:ems="10"
134 android:enabled="false"
135 android:text="@string/oauth2_url_endpoint_auth"
136 android:singleLine="true"
137 android:inputType="textUri"
138 android:visibility="gone" >
139 </EditText>
140
141 <EditText
142 android:id="@+id/oAuthEntryPoint_2"
143 android:layout_width="match_parent"
144 android:layout_height="wrap_content"
145 android:ems="10"
146 android:enabled="false"
147 android:text="@string/oauth2_url_endpoint_access"
148 android:singleLine="true"
149 android:inputType="textUri"
150 android:visibility="gone" >
151 <requestFocus />
152 </EditText>
153
154 <EditText
155 android:id="@+id/account_username"
156 android:layout_width="match_parent"
157 android:layout_height="wrap_content"
158 android:ems="10"
159 android:hint="@string/auth_username"
160 android:inputType="textNoSuggestions" />
161
162 <EditText
163 android:id="@+id/account_password"
164 android:layout_width="match_parent"
165 android:layout_height="wrap_content"
166 android:ems="10"
167 android:hint="@string/auth_password"
168 android:inputType="textPassword"
169 android:drawablePadding="5dp"
170 />
171
172 <TextView
173 android:id="@+id/auth_status_text"
174 android:layout_width="match_parent"
175 android:layout_height="wrap_content"
176 android:gravity="center_vertical"
177 android:text="@string/auth_unauthorized"
178 android:drawableLeft="@android:drawable/stat_notify_sync"
179 android:drawablePadding="5dip"
180 />
181
182 </LinearLayout>
183
184 </ScrollView>
185
186 </LinearLayout>
187
188 <Button
189 android:id="@id/buttonOK"
190 android:layout_width="match_parent"
191 android:layout_height="wrap_content"
192 android:background="@android:drawable/btn_default"
193 android:layout_above="@id/account_register"
194 android:layout_centerHorizontal="true"
195 android:enabled="false"
196 android:onClick="onOkClick"
197 android:text="@string/setup_btn_connect"
198 />
199
200 <Button
201 android:id="@+id/account_register"
202 android:layout_width="wrap_content"
203 android:layout_height="wrap_content"
204 android:layout_centerHorizontal="true"
205 android:layout_alignParentBottom="true"
206 android:background="@android:color/transparent"
207 android:textColor="#0000FF"
208 android:onClick="onRegisterClick"
209 android:paddingTop="5dp"
210 android:paddingBottom="5dp"
211 android:text="@string/auth_register"
212 />
213
214 </RelativeLayout>