6790529a87f4ffcea027c7d091e2a62b373c9f9d
[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 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 -->
19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20 android:layout_width="fill_parent"
21 android:layout_height="fill_parent"
22 android:focusable="true"
23 android:gravity="center|fill"
24 android:orientation="vertical" >
25
26 <FrameLayout
27 android:layout_width="match_parent"
28 android:layout_height="wrap_content"
29 android:layout_gravity="center"
30 android:layout_marginLeft="16dip"
31 android:layout_marginRight="16dip"
32 android:layout_weight="1" >
33
34 <LinearLayout
35 android:id="@+id/LinearLayout1"
36 android:layout_width="match_parent"
37 android:layout_height="wrap_content"
38 android:layout_gravity="center"
39 android:layout_weight="1"
40 android:orientation="vertical" >
41
42 <ImageView
43 android:id="@+id/imageView1"
44 android:layout_width="match_parent"
45 android:layout_height="wrap_content"
46 android:layout_marginBottom="10dp"
47 android:layout_weight="1"
48 android:src="@drawable/owncloud_logo" />
49
50 <FrameLayout
51 android:layout_width="match_parent"
52 android:layout_height="wrap_content"
53 android:layout_weight="1" >
54
55 <EditText
56 android:id="@+id/host_URL"
57 android:layout_width="match_parent"
58 android:layout_height="wrap_content"
59 android:layout_weight="1"
60 android:ems="10"
61 android:hint="@string/auth_host_url"
62 android:inputType="textNoSuggestions" >
63 <requestFocus />
64 </EditText>
65
66 <ImageView
67 android:id="@+id/refreshButton"
68 android:layout_width="wrap_content"
69 android:layout_height="wrap_content"
70 android:src="@drawable/ic_action_refresh_black"
71 android:layout_gravity="right|center_vertical"
72 android:visibility="invisible" />
73
74 </FrameLayout>
75
76 <LinearLayout
77 android:layout_width="match_parent"
78 android:layout_height="50dp"
79 android:layout_weight="1" >
80
81 <ImageView
82 android:id="@+id/action_indicator"
83 android:layout_width="wrap_content"
84 android:layout_height="wrap_content"
85 android:layout_marginLeft="5dp"
86 android:layout_marginRight="5dp"
87 android:src="@android:drawable/stat_notify_sync"
88 android:visibility="invisible" />
89
90 <TextView
91 android:id="@+id/status_text"
92 android:layout_width="wrap_content"
93 android:layout_height="wrap_content"
94 android:text="TextView"
95 android:visibility="invisible" />
96 </LinearLayout>
97
98 <CheckBox
99 android:id="@+id/oauth_onOff_check"
100 android:layout_width="wrap_content"
101 android:layout_height="wrap_content"
102 android:checked="false"
103 android:onClick="onOff_check_Click"
104 android:text="@string/oauth_check_onoff"
105 android:textAppearance="?android:attr/textAppearanceSmall" />
106
107 <TextView
108 android:id="@+id/textView2"
109 android:layout_width="wrap_content"
110 android:layout_height="0dp"
111 android:layout_weight="1"
112 android:text="@string/auth_login_details"
113 android:textAppearance="?android:attr/textAppearanceSmall" />
114
115 <EditText
116 android:id="@+id/oAuth_URL"
117 android:layout_width="match_parent"
118 android:layout_height="wrap_content"
119 android:layout_weight="1"
120 android:ems="10"
121 android:hint="@string/oauth_host_url"
122 android:singleLine="true"
123 android:visibility="gone" >
124
125 <requestFocus />
126 </EditText>
127
128 <LinearLayout
129 android:layout_width="match_parent"
130 android:layout_height="wrap_content"
131 android:layout_weight="1" >
132
133 <ImageView
134 android:id="@+id/auth2_action_indicator"
135 android:layout_width="wrap_content"
136 android:layout_height="wrap_content"
137 android:layout_marginLeft="5dp"
138 android:layout_marginRight="5dp"
139 android:src="@android:drawable/stat_notify_sync"
140 android:visibility="gone" />
141
142 <TextView
143 android:id="@+id/oauth2_status_text"
144 android:layout_width="wrap_content"
145 android:layout_height="wrap_content"
146 android:text="TextView"
147 android:visibility="gone" />
148 </LinearLayout>
149 <EditText
150 android:id="@+id/account_username"
151 android:layout_width="match_parent"
152 android:layout_height="0dp"
153 android:layout_weight="1"
154 android:ems="10"
155 android:hint="@string/auth_username"
156 android:inputType="textNoSuggestions" />
157
158 <FrameLayout
159 android:layout_width="match_parent"
160 android:layout_height="wrap_content"
161 android:layout_weight="1" >
162
163 <EditText
164 android:id="@+id/account_password"
165 android:layout_width="match_parent"
166 android:layout_height="wrap_content"
167 android:layout_weight="1"
168 android:ems="10"
169 android:hint="@string/auth_password"
170 android:inputType="textPassword"/>
171
172 <ImageView
173 android:id="@+id/viewPassword"
174 android:layout_width="wrap_content"
175 android:layout_height="wrap_content"
176 android:layout_gravity="right|center_vertical"
177 android:src="@android:drawable/ic_menu_view"
178 android:visibility="invisible" />
179
180 </FrameLayout>
181
182 </LinearLayout>
183
184 </FrameLayout>
185
186 <RelativeLayout
187 android:layout_width="match_parent"
188 android:layout_height="wrap_content">
189
190 <LinearLayout
191 android:id="@+id/buttons_layout"
192 android:layout_width="match_parent"
193 android:layout_height="wrap_content"
194 android:weightSum="1" >
195
196 <Button
197 android:id="@+id/buttonCancel"
198 android:layout_width="match_parent"
199 android:layout_height="wrap_content"
200 android:layout_weight=".5"
201 android:onClick="onCancelClick"
202 android:text="@string/common_cancel" />
203
204 <Button
205 android:id="@+id/buttonOK"
206 android:layout_width="match_parent"
207 android:layout_height="wrap_content"
208 android:layout_weight=".5"
209 android:enabled="false"
210 android:onClick="onOkClick"
211 android:text="@string/setup_btn_connect"
212 android:textColor="@android:color/black" />
213
214 </LinearLayout>
215
216 <Button
217 android:id="@+id/account_register"
218 android:layout_width="wrap_content"
219 android:layout_height="wrap_content"
220 android:layout_below="@id/buttons_layout"
221 android:layout_centerHorizontal="true"
222 android:onClick="onRegisterClick"
223 android:paddingTop="10dp"
224 android:paddingBottom="10dp"
225 android:textColor="#0000FF"
226 android:background="@android:color/transparent" />
227 <!-- android:text="@string/app_name @string/auth_register" /-->
228
229 </RelativeLayout>
230
231 </LinearLayout>