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