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