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