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