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