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