1 <?xml version=
"1.0" encoding=
"utf-8"?>
3 ownCloud Android client application
5 Copyright (C)
2012 Bartek Przybylski
6 Copyright (C)
2012-
2013 ownCloud Inc.
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.
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.
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
/>.
21 <RelativeLayout xmlns:
android=
"http://schemas.android.com/apk/res/android"
22 android:
layout_width=
"fill_parent"
23 android:
layout_height=
"fill_parent"
24 android:
background=
"@color/owncloud_white" >
27 android:
id=
"@+id/fdScrollView"
28 android:
layout_width=
"fill_parent"
29 android:
layout_height=
"fill_parent" >
32 android:
layout_width=
"match_parent"
33 android:
layout_height=
"wrap_content" >
36 android:
id=
"@+id/fdFileHeaderContainer"
37 android:
layout_width=
"match_parent"
38 android:
layout_height=
"wrap_content"
39 android:
layout_marginLeft=
"16dp"
40 android:
layout_marginTop=
"4dp" >
43 android:
id=
"@+id/fdIcon"
44 android:
layout_width=
"wrap_content"
45 android:
layout_height=
"wrap_content"
46 android:
src=
"@drawable/file" />
49 android:
id=
"@+id/fdFilename"
50 android:
layout_width=
"wrap_content"
51 android:
layout_height=
"wrap_content"
52 android:
layout_centerVertical=
"true"
53 android:
layout_toRightOf=
"@+id/fdIcon"
54 android:
text=
"file.name"
55 android:
textAppearance=
"?android:attr/textAppearanceLarge" />
59 android:
id=
"@+id/fdDetailsContainer"
60 android:
layout_width=
"match_parent"
61 android:
layout_height=
"wrap_content"
62 android:
layout_below=
"@+id/fdFileHeaderContainer" >
65 android:
id=
"@+id/fdLabelContainer"
66 android:
layout_width=
"wrap_content"
67 android:
layout_height=
"wrap_content"
68 android:
layout_alignParentLeft=
"true"
69 android:
layout_alignParentTop=
"true"
70 android:
layout_marginLeft=
"16dp" >
73 android:
id=
"@+id/fdTypeLabel"
74 android:
layout_width=
"wrap_content"
75 android:
layout_height=
"wrap_content"
76 android:
layout_marginTop=
"24dp"
77 android:
text=
"@string/filedetails_type"
78 android:
textAppearance=
"?android:attr/textAppearanceMedium" />
81 android:
id=
"@+id/fdSizeLabel"
82 android:
layout_width=
"wrap_content"
83 android:
layout_height=
"wrap_content"
84 android:
layout_below=
"@+id/fdTypeLabel"
85 android:
layout_marginTop=
"12dp"
86 android:
text=
"@string/filedetails_size"
87 android:
textAppearance=
"?android:attr/textAppearanceMedium" />
90 android:
id=
"@+id/fdCreatedLabel"
91 android:
layout_width=
"wrap_content"
92 android:
layout_height=
"wrap_content"
93 android:
layout_below=
"@+id/fdSizeLabel"
94 android:
layout_marginTop=
"12dp"
95 android:
text=
"@string/filedetails_created"
96 android:
visibility=
"gone"
97 android:
textAppearance=
"?android:attr/textAppearanceMedium" />
100 android:
id=
"@+id/fdModifiedLabel"
101 android:
layout_width=
"wrap_content"
102 android:
layout_height=
"wrap_content"
103 android:
layout_below=
"@+id/fdCreatedLabel"
104 android:
layout_marginTop=
"12dp"
105 android:
text=
"@string/filedetails_modified"
106 android:
textAppearance=
"?android:attr/textAppearanceMedium" />
110 android:
id=
"@+id/fdValueContainer"
111 android:
layout_width=
"wrap_content"
112 android:
layout_height=
"wrap_content"
113 android:
layout_alignParentTop=
"true"
114 android:
layout_marginLeft=
"12dp"
115 android:
layout_toRightOf=
"@+id/fdLabelContainer" >
118 android:
id=
"@+id/fdType"
119 android:
layout_width=
"wrap_content"
120 android:
layout_height=
"wrap_content"
121 android:
layout_marginTop=
"24dp"
122 android:
text=
"JPG Image"
123 android:
textAppearance=
"?android:attr/textAppearanceMedium" />
126 android:
id=
"@+id/fdSize"
127 android:
layout_width=
"wrap_content"
128 android:
layout_height=
"wrap_content"
129 android:
layout_below=
"@+id/fdType"
130 android:
layout_marginTop=
"12dp"
131 android:
text=
"389 KB"
132 android:
textAppearance=
"?android:attr/textAppearanceMedium" />
135 android:
id=
"@+id/fdCreated"
136 android:
layout_width=
"wrap_content"
137 android:
layout_height=
"wrap_content"
138 android:
layout_below=
"@+id/fdSize"
139 android:
layout_marginTop=
"12dp"
140 android:
visibility=
"gone"
141 android:
text=
"2012/05/18 12:23 PM"
142 android:
textAppearance=
"?android:attr/textAppearanceMedium" />
145 android:
id=
"@+id/fdModified"
146 android:
layout_width=
"wrap_content"
147 android:
layout_height=
"wrap_content"
148 android:
layout_below=
"@+id/fdCreated"
149 android:
layout_marginTop=
"12dp"
150 android:
text=
"2012/05/19 02:56 PM"
151 android:
textAppearance=
"?android:attr/textAppearanceMedium" />
157 android:
id=
"@+id/fdPreviewAndDL"
158 android:
layout_width=
"match_parent"
159 android:
layout_height=
"wrap_content"
160 android:
layout_below=
"@+id/fdDetailsContainer"
161 android:
gravity=
"center_horizontal" >
164 android:
id=
"@+id/fdKeepInSync"
165 android:
layout_width=
"wrap_content"
166 android:
layout_height=
"wrap_content"
167 android:
layout_centerHorizontal=
"true"
168 android:
text=
"@string/fd_keep_in_sync" />
171 android:
id=
"@+id/fdPreview"
172 android:
layout_width=
"match_parent"
173 android:
layout_height=
"match_parent"
174 android:
layout_below=
"@id/fdKeepInSync"
175 android:
layout_centerHorizontal=
"true"
176 android:
layout_marginTop=
"16dp"
177 android:
src=
"@drawable/owncloud_logo" />
180 android:
layout_width=
"match_parent"
181 android:
layout_height=
"wrap_content"
182 android:
layout_below=
"@id/fdPreview"
183 android:
orientation=
"vertical" >
186 android:
layout_width=
"match_parent"
187 android:
layout_height=
"wrap_content"
188 android:
gravity=
"center_horizontal" >
191 android:
id=
"@+id/fdRemoveBtn"
192 android:
layout_width=
"wrap_content"
193 android:
layout_height=
"wrap_content"
194 android:
layout_marginTop=
"12dp"
195 android:
text=
"@string/common_remove" />
198 android:
id=
"@+id/fdOpenBtn"
199 android:
layout_width=
"wrap_content"
200 android:
layout_height=
"wrap_content"
201 android:
layout_marginTop=
"12dp"
202 android:
text=
"@string/filedetails_open" />
207 android:
layout_width=
"match_parent"
208 android:
layout_height=
"wrap_content"
209 android:
gravity=
"center_horizontal">
212 android:
id=
"@+id/fdDownloadBtn"
213 android:
layout_width=
"wrap_content"
214 android:
layout_height=
"wrap_content"
215 android:
layout_marginTop=
"12dp"
216 android:
text=
"@string/filedetails_download" />
219 android:
id=
"@+id/fdRenameBtn"
220 android:
layout_width=
"wrap_content"
221 android:
layout_height=
"wrap_content"
222 android:
layout_marginTop=
"12dp"
223 android:
text=
"@string/common_rename" />
228 android:
id=
"@+id/fdShareBtn"
229 android:
layout_width=
"wrap_content"
230 android:
layout_height=
"wrap_content"
231 android:
layout_marginTop=
"12dp"
232 android:
text=
"@string/common_share" />