1 <?xml version=
"1.0" encoding=
"utf-8"?>
3 ownCloud Android client application
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.
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.
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
/>.
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" >
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" >
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" >
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" />
51 android:
layout_width=
"match_parent"
52 android:
layout_height=
"wrap_content"
53 android:
layout_weight=
"1" >
56 android:
id=
"@+id/host_URL"
57 android:
layout_width=
"match_parent"
58 android:
layout_height=
"wrap_content"
59 android:
layout_weight=
"1"
61 android:
hint=
"@string/auth_host_url"
62 android:
singleLine=
"true"
63 android:
inputType=
"textNoSuggestions" >
68 android:
id=
"@+id/refreshButton"
69 android:
layout_width=
"wrap_content"
70 android:
layout_height=
"wrap_content"
71 android:
src=
"@drawable/ic_action_refresh_black"
72 android:
layout_gravity=
"right|center_vertical"
73 android:
visibility=
"invisible" />
78 android:
layout_width=
"match_parent"
79 android:
layout_height=
"50dp"
80 android:
layout_weight=
"1" >
83 android:
id=
"@+id/action_indicator"
84 android:
layout_width=
"wrap_content"
85 android:
layout_height=
"wrap_content"
86 android:
layout_marginLeft=
"5dp"
87 android:
layout_marginRight=
"5dp"
88 android:
src=
"@android:drawable/stat_notify_sync"
89 android:
visibility=
"invisible" />
92 android:
id=
"@+id/status_text"
93 android:
layout_width=
"wrap_content"
94 android:
layout_height=
"wrap_content"
95 android:
text=
"TextView"
96 android:
visibility=
"invisible" />
101 android:
id=
"@+id/textView2"
102 android:
layout_width=
"wrap_content"
103 android:
layout_height=
"0dp"
104 android:
layout_weight=
"1"
105 android:
text=
"@string/auth_login_details"
106 android:
textAppearance=
"?android:attr/textAppearanceSmall" />
109 android:
id=
"@+id/account_username"
110 android:
layout_width=
"match_parent"
111 android:
layout_height=
"0dp"
112 android:
layout_weight=
"1"
114 android:
singleLine=
"true"
115 android:
hint=
"@string/auth_username"
116 android:
inputType=
"textNoSuggestions" />
119 android:
layout_width=
"match_parent"
120 android:
layout_height=
"wrap_content"
121 android:
layout_weight=
"1" >
124 android:
id=
"@+id/account_password"
125 android:
layout_width=
"match_parent"
126 android:
layout_height=
"wrap_content"
127 android:
layout_weight=
"1"
129 android:
hint=
"@string/auth_password"
130 android:
inputType=
"textPassword"
131 android:
singleLine=
"true" />
134 android:
id=
"@+id/viewPassword"
135 android:
layout_width=
"wrap_content"
136 android:
layout_height=
"wrap_content"
137 android:
layout_gravity=
"right|center_vertical"
138 android:
src=
"@android:drawable/ic_menu_view"
139 android:
visibility=
"invisible" />
148 android:
layout_width=
"match_parent"
149 android:
layout_height=
"wrap_content">
152 android:
id=
"@+id/buttons_layout"
153 android:
layout_width=
"match_parent"
154 android:
layout_height=
"wrap_content"
155 android:
weightSum=
"1" >
158 android:
id=
"@+id/buttonCancel"
159 android:
layout_width=
"match_parent"
160 android:
layout_height=
"wrap_content"
161 android:
layout_weight=
".5"
162 android:
onClick=
"onCancelClick"
163 android:
text=
"@string/common_cancel" />
166 android:
id=
"@+id/buttonOK"
167 android:
layout_width=
"match_parent"
168 android:
layout_height=
"wrap_content"
169 android:
layout_weight=
".5"
170 android:
enabled=
"false"
171 android:
onClick=
"onOkClick"
172 android:
text=
"@string/setup_btn_connect"
173 android:
textColor=
"@android:color/black" />
178 android:
id=
"@+id/account_register"
179 android:
layout_width=
"wrap_content"
180 android:
layout_height=
"wrap_content"
181 android:
layout_below=
"@id/buttons_layout"
182 android:
layout_centerHorizontal=
"true"
183 android:
onClick=
"onRegisterClick"
184 android:
paddingTop=
"10dp"
185 android:
paddingBottom=
"10dp"
186 android:
textColor=
"#0000FF"
187 android:
background=
"@android:color/transparent"
188 android:
text=
"@string/auth_register" />