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