e372faaaca1bc28269a3c7860fdb98f6549eb9cb
[pub/Android/ownCloud.git] / res / layout / grid_image.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 ownCloud Android client application
4 Copyright (C) 2014 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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20 android:id="@+id/ListItemLayout"
21 android:layout_width="match_parent"
22 android:layout_height="match_parent"
23 android:layout_gravity="center_horizontal"
24 android:background="@drawable/list_selector"
25 android:gravity="center_horizontal"
26 android:orientation="vertical" >
27
28 <FrameLayout
29 android:layout_width="match_parent"
30 android:layout_height="wrap_content" >
31
32 <LinearLayout
33 android:layout_width="wrap_content"
34 android:layout_height="wrap_content"
35 android:layout_gravity="top|right"
36 android:orientation="vertical"
37 android:layout_margin="4dp">
38
39 <ImageView
40 android:id="@+id/sharedIcon"
41 android:layout_width="wrap_content"
42 android:layout_height="wrap_content"
43 android:layout_gravity="center"
44 android:layout_marginBottom="4dp"
45 android:src="@drawable/sharedlink" />
46
47 <ImageView
48 android:id="@+id/sharedWithMeIcon"
49 android:layout_width="wrap_content"
50 android:layout_height="wrap_content"
51 android:layout_gravity="center"
52 android:layout_marginTop="4dp"
53 android:src="@drawable/shared_with_me"
54 android:visibility="invisible" />
55 </LinearLayout>
56 <com.owncloud.android.ui.SquareImageView
57 android:id="@+id/thumbnail"
58 android:layout_width="match_parent"
59 android:layout_height="match_parent"
60 android:paddingLeft="10dp"
61 android:paddingRight="10dp"
62 android:scaleType="centerCrop"
63 android:src="@drawable/ic_menu_archive"/>
64
65 <ImageView
66 android:id="@+id/localFileIndicator"
67 android:layout_width="@dimen/file_icon_size"
68 android:layout_height="@dimen/file_icon_size"
69 android:layout_gravity="bottom|right"
70 android:layout_marginTop="4dp"
71 android:layout_marginBottom="4dp"
72 android:layout_marginRight="4dp"
73 android:src="@drawable/local_file_indicator" />
74
75 <ImageView
76 android:id="@+id/favoriteIcon"
77 android:layout_width="15dp"
78 android:layout_height="15dp"
79 android:layout_gravity="bottom|right"
80 android:layout_marginBottom="4dp"
81 android:layout_marginRight="4dp"
82 android:src="@drawable/ic_favorite" />
83 </FrameLayout>
84
85 </LinearLayout>