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