Merge branch 'login_view_layout_improvements' into login_toggle_password_icon
[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 <EditText
59 android:id="@+id/hostUrlInput"
60 android:layout_width="match_parent"
61 android:layout_height="wrap_content"
62 android:ems="10"
63 android:hint="@string/auth_host_url"
64 android:inputType="textUri"
65 android:drawablePadding="5dp"
66 >
67 <requestFocus />
68 </EditText>
69
70 <TextView
71 android:id="@+id/server_status_text"
72 android:layout_width="match_parent"
73 android:layout_height="wrap_content"
74 android:layout_marginBottom="10dp"
75 android:drawableLeft="@android:drawable/stat_notify_sync"
76 android:drawablePadding="5dp"
77 android:gravity="center_vertical"
78 android:text="@string/auth_testing_connection" />
79
80 <CheckBox
81 android:id="@+id/oauth_onOff_check"
82 android:layout_width="wrap_content"
83 android:layout_height="wrap_content"
84 android:checked="false"
85 android:onClick="onCheckClick"
86 android:text="@string/oauth_check_onoff"
87 android:textAppearance="?android:attr/textAppearanceSmall"
88 android:visibility="gone"
89 />
90
91 <EditText
92 android:id="@+id/oAuthEntryPoint_1"
93 android:layout_width="match_parent"
94 android:layout_height="wrap_content"
95 android:ems="10"
96 android:enabled="false"
97 android:text="@string/oauth2_url_endpoint_auth"
98 android:singleLine="true"
99 android:inputType="textUri"
100 android:visibility="gone" >
101 <requestFocus />
102 </EditText>
103
104 <EditText
105 android:id="@+id/oAuthEntryPoint_2"
106 android:layout_width="match_parent"
107 android:layout_height="wrap_content"
108 android:ems="10"
109 android:enabled="false"
110 android:text="@string/oauth2_url_endpoint_access"
111 android:singleLine="true"
112 android:inputType="textUri"
113 android:visibility="gone" >
114 <requestFocus />
115 </EditText>
116
117 <EditText
118 android:id="@+id/account_username"
119 android:layout_width="match_parent"
120 android:layout_height="wrap_content"
121 android:ems="10"
122 android:hint="@string/auth_username"
123 android:inputType="textNoSuggestions" />
124
125 <EditText
126 android:id="@+id/account_password"
127 android:layout_width="match_parent"
128 android:layout_height="wrap_content"
129 android:ems="10"
130 android:hint="@string/auth_password"
131 android:inputType="textPassword"
132 android:drawablePadding="5dp"
133 />
134
135 <TextView
136 android:id="@+id/auth_status_text"
137 android:layout_width="match_parent"
138 android:layout_height="wrap_content"
139 android:gravity="center_vertical"
140 android:text="@string/auth_unauthorized"
141 android:drawableLeft="@android:drawable/stat_notify_sync"
142 android:drawablePadding="5dip"
143 />
144
145 </LinearLayout>
146
147 </ScrollView>
148
149 </LinearLayout>
150
151 <Button
152 android:id="@id/buttonOK"
153 android:layout_width="match_parent"
154 android:layout_height="wrap_content"
155 android:layout_above="@id/account_register"
156 android:layout_centerHorizontal="true"
157 android:enabled="false"
158 android:onClick="onOkClick"
159 android:text="@string/setup_btn_connect"
160 />
161
162 <Button
163 android:id="@+id/account_register"
164 android:layout_width="wrap_content"
165 android:layout_height="wrap_content"
166 android:layout_centerHorizontal="true"
167 android:layout_alignParentBottom="true"
168 android:background="@android:color/transparent"
169 android:textColor="#0000FF"
170 android:onClick="onRegisterClick"
171 android:paddingTop="5dp"
172 android:paddingBottom="5dp"
173 android:text="@string/auth_register"
174 />
175
176 </RelativeLayout>