Merge branch 'develop' into feature_previews
[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 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
22 android:id="@+id/fdScrollView"
23 android:layout_width="fill_parent"
24 android:layout_height="fill_parent" >
25
26 <RelativeLayout
27 android:layout_width="match_parent"
28 android:layout_height="wrap_content" >
29
30 <RelativeLayout
31 android:id="@+id/fdFileHeaderContainer"
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 android:layout_marginLeft="16dp"
35 android:layout_marginTop="4dp" >
36
37 <ImageView
38 android:id="@+id/fdIcon"
39 android:layout_width="wrap_content"
40 android:layout_height="wrap_content"
41 android:src="@drawable/file" />
42
43 <TextView
44 android:id="@+id/fdFilename"
45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"
47 android:layout_centerVertical="true"
48 android:layout_toRightOf="@+id/fdIcon"
49 android:text="@string/placeholder_filename"
50 android:textAppearance="?android:attr/textAppearanceLarge" />
51
52 </RelativeLayout>
53
54 <RelativeLayout
55 android:id="@+id/fdDetailsContainer"
56 android:layout_width="match_parent"
57 android:layout_height="wrap_content"
58 android:layout_below="@id/fdFileHeaderContainer" >
59
60 <RelativeLayout
61 android:id="@+id/fdLabelContainer"
62 android:layout_width="wrap_content"
63 android:layout_height="wrap_content"
64 android:layout_alignParentLeft="true"
65 android:layout_alignParentTop="true"
66 android:layout_marginLeft="16dp" >
67
68 <TextView
69 android:id="@+id/fdTypeLabel"
70 android:layout_width="wrap_content"
71 android:layout_height="wrap_content"
72 android:layout_marginTop="24dp"
73 android:text="@string/filedetails_type"
74 android:textAppearance="?android:attr/textAppearanceMedium" />
75
76 <TextView
77 android:id="@+id/fdSizeLabel"
78 android:layout_width="wrap_content"
79 android:layout_height="wrap_content"
80 android:layout_below="@+id/fdTypeLabel"
81 android:layout_marginTop="12dp"
82 android:text="@string/filedetails_size"
83 android:textAppearance="?android:attr/textAppearanceMedium" />
84
85 <TextView
86 android:id="@+id/fdCreatedLabel"
87 android:layout_width="wrap_content"
88 android:layout_height="wrap_content"
89 android:layout_below="@+id/fdSizeLabel"
90 android:layout_marginTop="12dp"
91 android:text="@string/filedetails_created"
92 android:visibility="gone"
93 android:textAppearance="?android:attr/textAppearanceMedium" />
94
95 <TextView
96 android:id="@+id/fdModifiedLabel"
97 android:layout_width="wrap_content"
98 android:layout_height="wrap_content"
99 android:layout_below="@+id/fdCreatedLabel"
100 android:layout_marginTop="12dp"
101 android:text="@string/filedetails_modified"
102 android:textAppearance="?android:attr/textAppearanceMedium" />
103 </RelativeLayout>
104
105 <RelativeLayout
106 android:id="@+id/fdValueContainer"
107 android:layout_width="wrap_content"
108 android:layout_height="wrap_content"
109 android:layout_alignParentTop="true"
110 android:layout_marginLeft="12dp"
111 android:layout_toRightOf="@+id/fdLabelContainer" >
112
113 <TextView
114 android:id="@+id/fdType"
115 android:layout_width="wrap_content"
116 android:layout_height="wrap_content"
117 android:layout_marginTop="24dp"
118 android:text="@string/placeholder_filetype"
119 android:textAppearance="?android:attr/textAppearanceMedium" />
120
121 <TextView
122 android:id="@+id/fdSize"
123 android:layout_width="wrap_content"
124 android:layout_height="wrap_content"
125 android:layout_below="@+id/fdType"
126 android:layout_marginTop="12dp"
127 android:text="@string/placeholder_filesize"
128 android:textAppearance="?android:attr/textAppearanceMedium" />
129
130 <TextView
131 android:id="@+id/fdCreated"
132 android:layout_width="wrap_content"
133 android:layout_height="wrap_content"
134 android:layout_below="@+id/fdSize"
135 android:layout_marginTop="12dp"
136 android:visibility="gone"
137 android:text="@string/placeholder_timestamp"
138 android:textAppearance="?android:attr/textAppearanceMedium" />
139
140 <TextView
141 android:id="@+id/fdModified"
142 android:layout_width="wrap_content"
143 android:layout_height="wrap_content"
144 android:layout_below="@+id/fdCreated"
145 android:layout_marginTop="12dp"
146 android:text="@string/placeholder_timestamp"
147 android:textAppearance="?android:attr/textAppearanceMedium" />
148
149 </RelativeLayout>
150
151 </RelativeLayout>
152
153 <RelativeLayout
154 android:id="@+id/fdProgressAndControl"
155 android:layout_width="match_parent"
156 android:layout_height="wrap_content"
157 android:layout_below="@+id/fdDetailsContainer"
158 android:gravity="center_horizontal"
159 android:layout_margin="16dp"
160 >
161
162 <CheckBox
163 android:id="@+id/fdKeepInSync"
164 android:layout_width="wrap_content"
165 android:layout_height="wrap_content"
166 android:layout_centerHorizontal="true"
167 android:text="@string/fd_keep_in_sync" />
168
169 <LinearLayout
170 android:layout_width="match_parent"
171 android:layout_height="wrap_content"
172 android:layout_below="@id/fdKeepInSync"
173 android:orientation="vertical" >
174
175 <TextView
176 android:id="@+id/fdProgressText"
177 android:layout_width="match_parent"
178 android:layout_height="wrap_content"
179 android:text="@string/downloader_download_in_progress_ticker"
180 />
181
182 <ProgressBar android:id="@+id/fdProgressBar"
183 android:layout_width="match_parent"
184 android:layout_height="wrap_content"
185 android:progressDrawable="@android:drawable/progress_horizontal"
186 android:indeterminate="false"
187 android:indeterminateOnly="false"
188 />
189
190 <LinearLayout
191 android:layout_width="match_parent"
192 android:layout_height="wrap_content"
193 android:gravity="center_horizontal"
194 android:layout_marginTop="12dp"
195 >
196
197 <Button
198 android:id="@+id/fdDownloadBtn"
199 android:layout_width="0dp"
200 android:layout_height="wrap_content"
201 android:layout_weight="1"
202 android:text="@string/filedetails_download" />
203
204 <Button
205 android:id="@+id/fdOpenBtn"
206 android:layout_width="0dp"
207 android:layout_height="wrap_content"
208 android:layout_weight="1"
209 android:text="@string/filedetails_open" />
210
211 </LinearLayout>
212
213 <LinearLayout
214 android:layout_width="match_parent"
215 android:layout_height="wrap_content"
216 android:gravity="center_horizontal"
217 android:layout_marginTop="12dp"
218 >
219
220 <Button
221 android:id="@+id/fdRenameBtn"
222 android:layout_width="0dp"
223 android:layout_height="wrap_content"
224 android:layout_weight="1"
225 android:text="@string/common_rename" />
226
227 <Button
228 android:id="@+id/fdRemoveBtn"
229 android:layout_width="0dp"
230 android:layout_height="wrap_content"
231 android:layout_weight="1"
232 android:text="@string/common_remove" />
233
234 </LinearLayout>
235
236 </LinearLayout>
237
238 </RelativeLayout>
239
240 </RelativeLayout>
241
242 </ScrollView>