OC-1055: Remove follow instruction.
[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 />
120
121 <EditText
122 android:id="@+id/oAuthEntryPoint_1"
123 android:layout_width="match_parent"
124 android:layout_height="wrap_content"
125 android:ems="10"
126 android:enabled="false"
127 android:text="@string/oauth2_url_endpoint_auth"
128 android:singleLine="true"
129 android:inputType="textUri"
130 android:visibility="gone" >
131 </EditText>
132
133 <EditText
134 android:id="@+id/oAuthEntryPoint_2"
135 android:layout_width="match_parent"
136 android:layout_height="wrap_content"
137 android:ems="10"
138 android:enabled="false"
139 android:text="@string/oauth2_url_endpoint_access"
140 android:singleLine="true"
141 android:inputType="textUri"
142 android:visibility="gone" >
143 <requestFocus />
144 </EditText>
145
146 <EditText
147 android:id="@+id/account_username"
148 android:layout_width="match_parent"
149 android:layout_height="wrap_content"
150 android:ems="10"
151 android:hint="@string/auth_username"
152 android:inputType="textNoSuggestions" />
153
154 <EditText
155 android:id="@+id/account_password"
156 android:layout_width="match_parent"
157 android:layout_height="wrap_content"
158 android:ems="10"
159 android:hint="@string/auth_password"
160 android:inputType="textPassword"
161 android:drawablePadding="5dp"
162 />
163
164 <TextView
165 android:id="@+id/auth_status_text"
166 android:layout_width="match_parent"
167 android:layout_height="wrap_content"
168 android:gravity="center_vertical"
169 android:text="@string/auth_unauthorized"
170 android:drawableLeft="@android:drawable/stat_notify_sync"
171 android:drawablePadding="5dip"
172 />
173
174 </LinearLayout>
175
176 </ScrollView>
177
178 </LinearLayout>
179
180 <Button
181 android:id="@id/buttonOK"
182 android:layout_width="match_parent"
183 android:layout_height="wrap_content"
184 android:layout_above="@id/account_register"
185 android:layout_centerHorizontal="true"
186 android:enabled="false"
187 android:onClick="onOkClick"
188 android:text="@string/setup_btn_connect"
189 />
190
191 <Button
192 android:id="@+id/account_register"
193 android:layout_width="wrap_content"
194 android:layout_height="wrap_content"
195 android:layout_centerHorizontal="true"
196 android:layout_alignParentBottom="true"
197 android:background="@android:color/transparent"
198 android:textColor="#0000FF"
199 android:onClick="onRegisterClick"
200 android:paddingTop="5dp"
201 android:paddingBottom="5dp"
202 android:text="@string/auth_register"
203 />
204
205 </RelativeLayout>