Replaced GPL v3 with GPL v2; PLEASE, note that GPL v2 still allows the code is used...
[pub/Android/ownCloud.git] / res / layout-land / 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 as published by
10 the Free Software Foundation, either version 2 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 -->
21 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
22 xmlns:oc="http://schemas.android.com/apk/res/com.owncloud.android"
23 android:layout_width="fill_parent"
24 android:layout_height="fill_parent"
25 android:focusable="true"
26 android:gravity="center|fill"
27 android:orientation="vertical" >
28
29 <FrameLayout
30 android:layout_width="match_parent"
31 android:layout_height="wrap_content"
32 android:layout_gravity="center"
33 android:layout_marginLeft="16dip"
34 android:layout_marginRight="16dip"
35 android:layout_weight="1" >
36
37 <LinearLayout
38 android:layout_width="match_parent"
39 android:layout_height="match_parent" >
40
41 <ImageView
42 android:id="@+id/imageView1"
43 android:layout_width="match_parent"
44 android:layout_height="match_parent"
45 android:layout_margin="7dp"
46 android:layout_weight="1"
47 android:src="@drawable/owncloud_logo" />
48
49 <LinearLayout
50 android:id="@+id/LinearLayout1"
51 android:layout_width="match_parent"
52 android:layout_height="wrap_content"
53 android:layout_gravity="center"
54 android:layout_weight="1"
55 android:orientation="vertical" >
56
57 <FrameLayout
58 android:layout_width="match_parent"
59 android:layout_height="wrap_content"
60 android:layout_weight="1" >
61
62 <EditText
63 android:id="@+id/host_URL"
64 android:layout_width="match_parent"
65 android:layout_height="wrap_content"
66 android:layout_weight="1"
67 android:ems="10"
68 android:hint="@string/auth_host_url"
69 android:inputType="textNoSuggestions">
70 <requestFocus />
71 </EditText>
72
73 <ImageView
74 android:id="@+id/refreshButton"
75 android:layout_width="wrap_content"
76 android:layout_height="wrap_content"
77 android:layout_gravity="right|center_vertical"
78 android:src="@drawable/ic_action_refresh_black"
79 android:visibility="invisible" />
80 </FrameLayout>
81
82 <LinearLayout
83 android:layout_width="match_parent"
84 android:layout_height="50dp"
85 android:layout_weight="1" >
86
87 <ImageView
88 android:id="@+id/action_indicator"
89 android:layout_width="wrap_content"
90 android:layout_height="wrap_content"
91 android:layout_marginLeft="5dp"
92 android:layout_marginRight="5dp"
93 android:src="@android:drawable/stat_notify_sync"
94 android:visibility="invisible" />
95
96 <TextView
97 android:id="@+id/status_text"
98 android:layout_width="wrap_content"
99 android:layout_height="wrap_content"
100 android:text="TextView"
101 android:visibility="invisible" />
102 </LinearLayout>
103
104 <TextView
105 android:id="@+id/textView2"
106 android:layout_width="wrap_content"
107 android:layout_height="0dp"
108 android:layout_weight="1"
109 android:text="@string/auth_login_details"
110 android:textAppearance="?android:attr/textAppearanceSmall" />
111
112 <EditText
113 android:id="@+id/account_username"
114 android:layout_width="match_parent"
115 android:layout_height="0dp"
116 android:layout_weight="1"
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 android:layout_weight="1" >
125
126 <EditText
127 android:id="@+id/account_password"
128 android:layout_width="match_parent"
129 android:layout_height="wrap_content"
130 android:layout_weight="1"
131 android:ems="10"
132 android:hint="@string/auth_password"
133 android:inputType="textPassword"/>
134
135 <ImageView
136 android:id="@+id/viewPassword"
137 android:layout_width="wrap_content"
138 android:layout_height="wrap_content"
139 android:layout_gravity="right|center_vertical"
140 android:src="@android:drawable/ic_menu_view"
141 android:visibility="invisible" />
142 </FrameLayout>
143 </LinearLayout>
144 </LinearLayout>
145 </FrameLayout>
146
147 <RelativeLayout
148 android:layout_width="match_parent"
149 android:layout_height="wrap_content"
150 android:layout_alignParentBottom="true" >
151
152 <LinearLayout
153 android:id="@+id/buttons_layout"
154 android:layout_width="match_parent"
155 android:layout_height="wrap_content"
156 android:weightSum="1">
157
158 <Button
159 android:id="@+id/buttonCancel"
160 android:layout_width="match_parent"
161 android:layout_height="wrap_content"
162 android:layout_weight=".5"
163 android:onClick="onCancelClick"
164 android:text="@string/common_cancel" />
165
166 <Button
167 android:id="@+id/buttonOK"
168 android:layout_width="match_parent"
169 android:layout_height="wrap_content"
170 android:layout_weight=".5"
171 android:enabled="false"
172 android:onClick="onOkClick"
173 android:text="@string/setup_btn_connect"
174 android:textColor="@android:color/black" />
175
176 </LinearLayout>
177
178 <Button
179 android:id="@+id/account_register"
180 android:layout_width="wrap_content"
181 android:layout_height="wrap_content"
182 android:layout_below="@id/buttons_layout"
183 android:layout_centerHorizontal="true"
184 android:onClick="onRegisterClick"
185 android:paddingTop="10dp"
186 android:paddingBottom="10dp"
187 android:textColor="#0000FF"
188 android:background="@android:color/transparent" />
189 <!-- android:text="@string/app_name @string/auth_register" /-->
190
191 </RelativeLayout>
192
193 </LinearLayout>