OC-2459: Ask for pincode, when click on an instant upload notification
[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 version 2,
9 as published by the Free Software Foundation.
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 -->
20
21 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
22 xmlns:tools="http://schemas.android.com/tools"
23 android:id="@+id/top"
24 android:layout_width="match_parent"
25 android:layout_height="match_parent"
26 android:background="@color/background_color"
27 android:gravity="center"
28 tools:context=".ui.fragment.FilePreviewFragment" >
29
30 <FrameLayout
31 android:id="@+id/visual_area"
32 android:layout_width="match_parent"
33 android:layout_height="0dp"
34 android:layout_alignParentTop="true"
35 android:layout_above="@+id/media_controller"
36 >
37
38 <ImageView
39 android:id="@+id/image_preview"
40 android:layout_width="match_parent"
41 android:layout_height="match_parent"
42 android:layout_margin="16dp"
43 android:layout_gravity="center"
44 android:contentDescription="@string/preview_image_description"
45 android:src="@drawable/logo" />
46
47 <VideoView
48 android:id="@+id/video_preview"
49 android:layout_width="match_parent"
50 android:layout_height="match_parent"
51 android:layout_gravity="center"
52 android:visibility="gone"
53 />
54
55 </FrameLayout>
56
57 <com.owncloud.android.media.MediaControlView
58 android:id="@id/media_controller"
59 android:layout_width="match_parent"
60 android:layout_height="wrap_content"
61 android:layout_alignParentBottom="true"
62 />
63
64 </RelativeLayout>