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