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