b18b815f657f5702b862d96fd5467fc3dadc2849
[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:onClick="onRefreshClick"
64 android:text="@string/auth_check_server"
65 android:visibility="gone" />
66
67 <FrameLayout
68 android:id="@+id/hostUrlFrame"
69 android:layout_width="match_parent"
70 android:layout_height="wrap_content"
71 >
72 <EditText
73 android:id="@+id/hostUrlInput"
74 android:layout_width="match_parent"
75 android:layout_height="wrap_content"
76 android:hint="@string/auth_host_url"
77 android:inputType="textUri"
78 android:drawablePadding="5dp"
79 android:paddingRight="55dp"
80 >
81 <requestFocus />
82 </EditText>
83 <ImageButton
84 android:id="@+id/embeddedRefreshButton"
85 android:layout_width="48dp"
86 android:layout_height="48dp"
87 android:layout_gravity="center_vertical|right"
88 android:layout_marginRight="5dp"
89 android:padding="0dp"
90 android:scaleType="fitCenter"
91 android:src="@drawable/ic_action_refresh_black"
92 android:onClick="onRefreshClick"
93 android:visibility="gone"
94 android:background="@android:color/transparent"
95 />
96 </FrameLayout>
97
98 <TextView
99 android:id="@+id/server_status_text"
100 android:layout_width="match_parent"
101 android:layout_height="wrap_content"
102 android:layout_marginBottom="10dp"
103 android:drawableLeft="@android:drawable/stat_notify_sync"
104 android:drawablePadding="5dp"
105 android:gravity="center_vertical"
106 android:text="@string/auth_testing_connection" />
107
108 <CheckBox
109 android:id="@+id/oauth_onOff_check"
110 android:layout_width="wrap_content"
111 android:layout_height="wrap_content"
112 android:checked="false"
113 android:onClick="onCheckClick"
114 android:text="@string/oauth_check_onoff"
115 android:textAppearance="?android:attr/textAppearanceSmall"
116 android:visibility="gone"
117 />
118
119 <EditText
120 android:id="@+id/oAuthEntryPoint_1"
121 android:layout_width="match_parent"
122 android:layout_height="wrap_content"
123 android:ems="10"
124 android:enabled="false"
125 android:text="@string/oauth2_url_endpoint_auth"
126 android:singleLine="true"
127 android:inputType="textUri"
128 android:visibility="gone" >
129 <requestFocus />
130 </EditText>
131
132 <EditText
133 android:id="@+id/oAuthEntryPoint_2"
134 android:layout_width="match_parent"
135 android:layout_height="wrap_content"
136 android:ems="10"
137 android:enabled="false"
138 android:text="@string/oauth2_url_endpoint_access"
139 android:singleLine="true"
140 android:inputType="textUri"
141 android:visibility="gone" >
142 <requestFocus />
143 </EditText>
144
145 <EditText
146 android:id="@+id/account_username"
147 android:layout_width="match_parent"
148 android:layout_height="wrap_content"
149 android:ems="10"
150 android:hint="@string/auth_username"
151 android:inputType="textNoSuggestions" />
152
153 <EditText
154 android:id="@+id/account_password"
155 android:layout_width="match_parent"
156 android:layout_height="wrap_content"
157 android:ems="10"
158 android:hint="@string/auth_password"
159 android:inputType="textPassword"
160 android:drawablePadding="5dp"
161 />
162
163 <TextView
164 android:id="@+id/auth_status_text"
165 android:layout_width="match_parent"
166 android:layout_height="wrap_content"
167 android:gravity="center_vertical"
168 android:text="@string/auth_unauthorized"
169 android:drawableLeft="@android:drawable/stat_notify_sync"
170 android:drawablePadding="5dip"
171 />
172
173 </LinearLayout>
174
175 </ScrollView>
176
177 </LinearLayout>
178
179 <Button
180 android:id="@id/buttonOK"
181 android:layout_width="match_parent"
182 android:layout_height="wrap_content"
183 android:layout_above="@id/account_register"
184 android:layout_centerHorizontal="true"
185 android:enabled="false"
186 android:onClick="onOkClick"
187 android:text="@string/setup_btn_connect"
188 />
189
190 <Button
191 android:id="@+id/account_register"
192 android:layout_width="wrap_content"
193 android:layout_height="wrap_content"
194 android:layout_centerHorizontal="true"
195 android:layout_alignParentBottom="true"
196 android:background="@android:color/transparent"
197 android:textColor="#0000FF"
198 android:onClick="onRegisterClick"
199 android:paddingTop="5dp"
200 android:paddingBottom="5dp"
201 android:text="@string/auth_register"
202 />
203
204 </RelativeLayout>