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