Merge branch 'feature_previews' into develop
[pub/Android/ownCloud.git] / res / layout / file_preview.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 ownCloud Android client application
4
5 Copyright (C) 2012-2013 ownCloud Inc.
6
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20 -->
21
22 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
23 xmlns:tools="http://schemas.android.com/tools"
24 android:id="@+id/top"
25 android:layout_width="match_parent"
26 android:layout_height="match_parent"
27 android:background="@color/owncloud_white"
28 android:gravity="center"
29 tools:context=".ui.fragment.FilePreviewFragment" >
30
31 <FrameLayout
32 android:id="@+id/visual_area"
33 android:layout_width="match_parent"
34 android:layout_height="0dp"
35 android:layout_alignParentTop="true"
36 android:layout_above="@+id/media_controller"
37 >
38
39 <ImageView
40 android:id="@+id/image_preview"
41 android:layout_width="match_parent"
42 android:layout_height="match_parent"
43 android:layout_margin="16dp"
44 android:layout_gravity="center"
45 android:contentDescription="@string/preview_image_description"
46 android:src="@drawable/owncloud_logo" />
47
48 <VideoView
49 android:id="@+id/video_preview"
50 android:layout_width="match_parent"
51 android:layout_height="match_parent"
52 android:layout_gravity="center"
53 android:visibility="gone"
54 />
55
56 </FrameLayout>
57
58 <com.owncloud.android.media.MediaControlView
59 android:id="@id/media_controller"
60 android:layout_width="match_parent"
61 android:layout_height="wrap_content"
62 android:layout_alignParentBottom="true"
63 />
64
65 </RelativeLayout>