Disable change log; to remove in future
[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 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 android:layout_width="fill_parent"
23 android:layout_height="fill_parent"
24 android:focusable="true"
25 android:gravity="center|fill"
26 android:orientation="vertical" >
27
28 <FrameLayout
29 android:layout_width="match_parent"
30 android:layout_height="wrap_content"
31 android:layout_gravity="center"
32 android:layout_marginLeft="16dip"
33 android:layout_marginRight="16dip"
34 android:layout_weight="1" >
35
36 <LinearLayout
37 android:id="@+id/LinearLayout1"
38 android:layout_width="match_parent"
39 android:layout_height="wrap_content"
40 android:layout_gravity="center"
41 android:layout_weight="1"
42 android:orientation="vertical" >
43
44 <ImageView
45 android:id="@+id/imageView1"
46 android:layout_width="match_parent"
47 android:layout_height="wrap_content"
48 android:layout_marginBottom="10dp"
49 android:layout_weight="1"
50 android:src="@drawable/owncloud_logo" />
51
52 <FrameLayout
53 android:layout_width="match_parent"
54 android:layout_height="wrap_content"
55 android:layout_weight="1" >
56
57 <EditText
58 android:id="@+id/host_URL"
59 android:layout_width="match_parent"
60 android:layout_height="wrap_content"
61 android:layout_weight="1"
62 android:ems="10"
63 android:hint="@string/auth_host_url"
64 android:inputType="textNoSuggestions" >
65 <requestFocus />
66 </EditText>
67
68 <ImageView
69 android:id="@+id/refreshButton"
70 android:layout_width="wrap_content"
71 android:layout_height="wrap_content"
72 android:src="@drawable/ic_action_refresh_black"
73 android:layout_gravity="right|center_vertical"
74 android:visibility="invisible" />
75
76 </FrameLayout>
77
78 <LinearLayout
79 android:layout_width="match_parent"
80 android:layout_height="50dp"
81 android:layout_weight="1" >
82
83 <ImageView
84 android:id="@+id/action_indicator"
85 android:layout_width="wrap_content"
86 android:layout_height="wrap_content"
87 android:layout_marginLeft="5dp"
88 android:layout_marginRight="5dp"
89 android:src="@android:drawable/stat_notify_sync"
90 android:visibility="invisible" />
91
92 <TextView
93 android:id="@+id/status_text"
94 android:layout_width="wrap_content"
95 android:layout_height="wrap_content"
96 android:text="TextView"
97 android:visibility="invisible" />
98
99 </LinearLayout>
100
101 <TextView
102 android:id="@+id/textView2"
103 android:layout_width="wrap_content"
104 android:layout_height="0dp"
105 android:layout_weight="1"
106 android:text="@string/auth_login_details"
107 android:textAppearance="?android:attr/textAppearanceSmall" />
108
109 <EditText
110 android:id="@+id/account_username"
111 android:layout_width="match_parent"
112 android:layout_height="0dp"
113 android:layout_weight="1"
114 android:ems="10"
115 android:hint="@string/auth_username"
116 android:inputType="textNoSuggestions" />
117
118 <FrameLayout
119 android:layout_width="match_parent"
120 android:layout_height="wrap_content"
121 android:layout_weight="1" >
122
123 <EditText
124 android:id="@+id/account_password"
125 android:layout_width="match_parent"
126 android:layout_height="wrap_content"
127 android:layout_weight="1"
128 android:ems="10"
129 android:hint="@string/auth_password"
130 android:inputType="textPassword"/>
131
132 <ImageView
133 android:id="@+id/viewPassword"
134 android:layout_width="wrap_content"
135 android:layout_height="wrap_content"
136 android:layout_gravity="right|center_vertical"
137 android:src="@android:drawable/ic_menu_view"
138 android:visibility="invisible" />
139
140 </FrameLayout>
141
142 </LinearLayout>
143
144 </FrameLayout>
145
146 <RelativeLayout
147 android:layout_width="match_parent"
148 android:layout_height="wrap_content">
149
150 <LinearLayout
151 android:id="@+id/buttons_layout"
152 android:layout_width="match_parent"
153 android:layout_height="wrap_content"
154 android:weightSum="1" >
155
156 <Button
157 android:id="@+id/buttonCancel"
158 android:layout_width="match_parent"
159 android:layout_height="wrap_content"
160 android:layout_weight=".5"
161 android:onClick="onCancelClick"
162 android:text="@string/common_cancel" />
163
164 <Button
165 android:id="@+id/buttonOK"
166 android:layout_width="match_parent"
167 android:layout_height="wrap_content"
168 android:layout_weight=".5"
169 android:enabled="false"
170 android:onClick="onOkClick"
171 android:text="@string/setup_btn_connect"
172 android:textColor="@android:color/black" />
173
174 </LinearLayout>
175
176 <Button
177 android:id="@+id/account_register"
178 android:layout_width="wrap_content"
179 android:layout_height="wrap_content"
180 android:layout_below="@id/buttons_layout"
181 android:layout_centerHorizontal="true"
182 android:onClick="onRegisterClick"
183 android:paddingTop="10dp"
184 android:paddingBottom="10dp"
185 android:textColor="#0000FF"
186 android:background="@android:color/transparent" />
187 <!-- android:text="@string/app_name @string/auth_register" /-->
188
189 </RelativeLayout>
190
191 </LinearLayout>