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