Disable change log; to remove in future
[pub/Android/ownCloud.git] / res / layout / file_details_fragment.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 <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" >
25
26 <ScrollView
27 android:id="@+id/fdScrollView"
28 android:layout_width="fill_parent"
29 android:layout_height="fill_parent" >
30
31 <RelativeLayout
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content" >
34
35 <RelativeLayout
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" >
41
42 <ImageView
43 android:id="@+id/fdIcon"
44 android:layout_width="wrap_content"
45 android:layout_height="wrap_content"
46 android:src="@drawable/file" />
47
48 <TextView
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" />
56 </RelativeLayout>
57
58 <RelativeLayout
59 android:id="@+id/fdDetailsContainer"
60 android:layout_width="match_parent"
61 android:layout_height="wrap_content"
62 android:layout_below="@+id/fdFileHeaderContainer" >
63
64 <RelativeLayout
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" >
71
72 <TextView
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" />
79
80 <TextView
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" />
88
89 <TextView
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" />
98
99 <TextView
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" />
107 </RelativeLayout>
108
109 <RelativeLayout
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" >
116
117 <TextView
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" />
124
125 <TextView
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" />
133
134 <TextView
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" />
143
144 <TextView
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" />
152 </RelativeLayout>
153
154 </RelativeLayout>
155
156 <RelativeLayout
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" >
162
163 <CheckBox
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" />
169
170 <ImageView
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" />
178
179 <LinearLayout
180 android:layout_width="match_parent"
181 android:layout_height="wrap_content"
182 android:layout_below="@id/fdPreview"
183 android:orientation="vertical" >
184
185 <LinearLayout
186 android:layout_width="match_parent"
187 android:layout_height="wrap_content"
188 android:gravity="center_horizontal" >
189
190 <Button
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" />
196
197 <Button
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" />
203
204 </LinearLayout>
205
206 <LinearLayout
207 android:layout_width="match_parent"
208 android:layout_height="wrap_content"
209 android:gravity="center_horizontal">
210
211 <Button
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" />
217
218 <Button
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" />
224
225 </LinearLayout>
226 <!--
227 <Button
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" />
233 -->
234
235 </LinearLayout>
236 </RelativeLayout>
237
238 </RelativeLayout>
239 </ScrollView>
240
241 </RelativeLayout>