Issue #56 + Issue #14 + Issue #143
[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 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
21 android:layout_width="fill_parent"
22 android:layout_height="fill_parent"
23 android:orientation="vertical">
24
25 <LinearLayout
26 android:layout_width="fill_parent"
27 android:layout_height="wrap_content"
28 android:layout_gravity="center"
29 android:focusable="true"
30 android:gravity="center"
31 android:orientation="vertical" >
32
33 <FrameLayout
34 android:layout_width="match_parent"
35 android:layout_height="0dip"
36 android:layout_gravity="center"
37 android:layout_marginBottom="50dip"
38 android:layout_marginLeft="16dip"
39 android:layout_marginRight="16dip"
40 android:layout_weight="1" >
41
42 <LinearLayout
43 android:id="@+id/LinearLayout1"
44 android:layout_width="match_parent"
45 android:layout_height="wrap_content"
46 android:layout_gravity="center"
47 android:orientation="vertical" >
48
49 <ImageView
50 android:id="@+id/imageView1"
51 android:layout_width="match_parent"
52 android:layout_height="wrap_content"
53 android:layout_marginBottom="10dp"
54 android:layout_weight="1"
55 android:src="@drawable/owncloud_logo" />
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:ems="10"
67 android:hint="@string/auth_host_url"
68 android:inputType="textNoSuggestions" >
69 <requestFocus />
70 </EditText>
71
72 <ImageView
73 android:id="@+id/refreshButton"
74 android:layout_width="wrap_content"
75 android:layout_height="wrap_content"
76 android:src="@drawable/ic_action_refresh_black"
77 android:layout_gravity="right|center_vertical"
78 android:visibility="invisible" />
79
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
103 </LinearLayout>
104
105 <TextView
106 android:id="@+id/textView2"
107 android:layout_width="wrap_content"
108 android:layout_height="0dp"
109 android:layout_weight="1"
110 android:text="@string/auth_login_details"
111 android:textAppearance="?android:attr/textAppearanceSmall" />
112
113 <EditText
114 android:id="@+id/account_username"
115 android:layout_width="match_parent"
116 android:layout_height="0dp"
117 android:layout_weight="1"
118 android:ems="10"
119 android:hint="@string/auth_username"
120 android:inputType="textNoSuggestions" />
121
122 <FrameLayout
123 android:layout_width="match_parent"
124 android:layout_height="wrap_content"
125 android:layout_weight="1" >
126
127 <EditText
128 android:id="@+id/account_password"
129 android:layout_width="match_parent"
130 android:layout_height="wrap_content"
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
143 </FrameLayout>
144
145 </LinearLayout>
146
147 </FrameLayout>
148
149 <RelativeLayout
150 android:layout_width="match_parent"
151 android:layout_height="wrap_content">
152
153 <LinearLayout
154 android:id="@+id/buttons_layout"
155 android:layout_width="fill_parent"
156 android:layout_height="wrap_content"
157 android:weightSum="1">
158
159 <Button
160 android:id="@+id/buttonOK"
161 android:layout_width="match_parent"
162 android:layout_height="wrap_content"
163 android:layout_gravity="center_horizontal"
164 android:layout_marginLeft="16dip"
165 android:layout_marginRight="16dip"
166 android:enabled="false"
167 android:onClick="onOkClick"
168 android:text="@string/setup_btn_connect"
169 android:textColor="@android:color/black" />
170
171 </LinearLayout>
172
173 <Button
174 android:id="@+id/account_register"
175 android:layout_width="wrap_content"
176 android:layout_height="wrap_content"
177 android:layout_below="@id/buttons_layout"
178 android:layout_centerHorizontal="true"
179 android:onClick="onRegisterClick"
180 android:paddingTop="10dp"
181 android:paddingBottom="10dp"
182 android:textColor="#0000FF"
183 android:background="@android:color/transparent" />
184
185 </RelativeLayout>
186
187 </LinearLayout>
188
189 </ScrollView>