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