4c6b2082f9f43ce1010296fe137719ded76eb43e
[pub/Android/ownCloud.git] / res / layout / 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 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
21 android:layout_width="match_parent"
22 android:layout_height="match_parent"
23 android:layout_gravity="center"
24 android:fillViewport="true"
25 android:orientation="vertical" >
26
27 <LinearLayout
28 android:layout_width="match_parent"
29 android:layout_height="wrap_content"
30 android:focusable="true"
31 android:gravity="center"
32 android:orientation="vertical"
33 android:padding="8dp" >
34
35 <ImageView
36 android:id="@+id/imageView1"
37 android:layout_width="match_parent"
38 android:layout_height="wrap_content"
39 android:layout_marginBottom="10dp"
40 android:layout_marginTop="10dp"
41 android:src="@drawable/logo" />
42
43 <Button
44 android:id="@+id/centeredRefreshButton"
45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"
47 android:layout_gravity="center_horizontal"
48 android:onClick="onRefreshClick"
49 android:text="@string/auth_check_server"
50 android:visibility="gone" />
51
52 <FrameLayout
53 android:id="@+id/hostUrlFrame"
54 android:layout_width="match_parent"
55 android:layout_height="wrap_content"
56 android:layout_marginBottom="10dp"
57 >
58 <EditText
59 android:id="@+id/hostUrlInput"
60 android:layout_width="match_parent"
61 android:layout_height="wrap_content"
62 android:layout_gravity="bottom"
63 android:hint="@string/auth_host_url"
64 android:inputType="textUri"
65 android:drawablePadding="5dp"
66 android:paddingRight="55dp"
67 >
68 <requestFocus />
69 </EditText>
70 <ImageButton
71 android:id="@+id/embeddedRefreshButton"
72 android:layout_width="48dp"
73 android:layout_height="48dp"
74 android:layout_gravity="center_vertical|right"
75 android:layout_marginRight="5dp"
76 android:padding="0dp"
77 android:scaleType="fitCenter"
78 android:src="@drawable/ic_action_refresh_black"
79 android:onClick="onRefreshClick"
80 android:visibility="visible"
81 android:background="@android:color/transparent"
82 />
83 </FrameLayout>
84
85 <TextView
86 android:id="@+id/server_status_text"
87 android:layout_width="match_parent"
88 android:layout_height="wrap_content"
89 android:layout_marginBottom="10dp"
90 android:drawableLeft="@android:drawable/stat_notify_sync"
91 android:drawablePadding="5dp"
92 android:gravity="center_vertical"
93 android:text="@string/auth_testing_connection" />
94
95 <CheckBox
96 android:id="@+id/oauth_onOff_check"
97 android:layout_width="wrap_content"
98 android:layout_height="wrap_content"
99 android:checked="false"
100 android:onClick="onCheckClick"
101 android:text="@string/oauth_check_onoff"
102 android:textAppearance="?android:attr/textAppearanceSmall"
103 android:visibility="gone" />
104
105 <EditText
106 android:id="@+id/oAuthEntryPoint_1"
107 android:layout_width="match_parent"
108 android:layout_height="wrap_content"
109 android:ems="10"
110 android:inputType="textUri"
111 android:singleLine="true"
112 android:text="@string/oauth2_url_endpoint_auth"
113 android:visibility="gone" >
114 </EditText>
115
116 <EditText
117 android:id="@+id/oAuthEntryPoint_2"
118 android:layout_width="match_parent"
119 android:layout_height="wrap_content"
120 android:ems="10"
121 android:inputType="textUri"
122 android:singleLine="true"
123 android:text="@string/oauth2_url_endpoint_access"
124 android:visibility="gone" />
125
126 <EditText
127 android:id="@+id/account_username"
128 android:layout_width="match_parent"
129 android:layout_height="wrap_content"
130 android:ems="10"
131 android:hint="@string/auth_username"
132 android:inputType="textNoSuggestions" />
133
134 <EditText
135 android:id="@+id/account_password"
136 android:layout_width="match_parent"
137 android:layout_height="wrap_content"
138 android:drawablePadding="5dp"
139 android:ems="10"
140 android:hint="@string/auth_password"
141 android:inputType="textPassword" />
142
143 <TextView
144 android:id="@+id/auth_status_text"
145 android:layout_width="match_parent"
146 android:layout_height="wrap_content"
147 android:layout_marginBottom="10dp"
148 android:drawableLeft="@android:drawable/stat_notify_sync"
149 android:drawablePadding="5dp"
150 android:gravity="center_vertical"
151 android:text="@string/auth_unauthorized" />
152
153 <Button
154 android:id="@+id/buttonOK"
155 android:layout_width="match_parent"
156 android:layout_height="wrap_content"
157 android:layout_gravity="center_horizontal"
158 android:enabled="false"
159 android:onClick="onOkClick"
160 android:text="@string/setup_btn_connect"
161 />
162
163 <Button
164 android:id="@+id/account_register"
165 android:layout_width="wrap_content"
166 android:layout_height="wrap_content"
167 android:background="@android:color/transparent"
168 android:textColor="#0000FF"
169 android:onClick="onRegisterClick"
170 android:paddingBottom="5dp"
171 android:paddingTop="5dp"
172 android:text="@string/auth_register"
173 />
174 </LinearLayout>
175
176 </ScrollView>