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