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