Merge branch 'material_buttons' of https://github.com/owncloud/android into material_fab
[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) 2015 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 <com.owncloud.android.ui.SquareImageView
33 android:id="@+id/thumbnail"
34 android:layout_width="match_parent"
35 android:layout_height="match_parent"
36 android:paddingLeft="10dp"
37 android:paddingRight="10dp"
38 android:scaleType="centerCrop"
39 android:src="@drawable/ic_menu_archive"/>
40
41 <ImageView
42 android:id="@+id/sharedIcon"
43 android:layout_width="wrap_content"
44 android:layout_height="wrap_content"
45 android:layout_gravity="top|right"
46 android:layout_margin="4dp"
47 android:src="@drawable/shared_via_link" />
48
49 <ImageView
50 android:id="@+id/localFileIndicator"
51 android:layout_width="@dimen/file_icon_size"
52 android:layout_height="@dimen/file_icon_size"
53 android:layout_gravity="bottom|right"
54 android:layout_marginTop="4dp"
55 android:layout_marginBottom="4dp"
56 android:layout_marginRight="4dp"
57 android:src="@drawable/local_file_indicator" />
58
59 <ImageView
60 android:id="@+id/favoriteIcon"
61 android:layout_width="15dp"
62 android:layout_height="15dp"
63 android:layout_gravity="bottom|right"
64 android:layout_marginBottom="4dp"
65 android:layout_marginRight="4dp"
66 android:src="@drawable/ic_favorite" />
67 </FrameLayout>
68
69 </LinearLayout>