905cf8de418a5ffc58e04202ad3263f3aee46b1b
[pub/Android/ownCloud.git] / res / layout / grid_item.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 <com.owncloud.android.ui.SquareLinearLayout 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"
27 android:orientation="vertical" >
28
29 <FrameLayout
30 android:layout_width="match_parent"
31 android:layout_height="wrap_content"
32 android:layout_gravity="center_horizontal" >
33
34 <ImageView
35 android:id="@+id/sharedIcon"
36 android:layout_width="wrap_content"
37 android:layout_height="wrap_content"
38 android:layout_gravity="top|left"
39 android:layout_marginLeft="2dp"
40 android:layout_marginTop="2dp"
41 android:src="@drawable/sharedlink" />
42
43 <ImageView
44 android:id="@+id/sharedWithMeIcon"
45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"
47 android:layout_gravity="bottom|left"
48 android:layout_marginLeft="2dp"
49 android:layout_marginTop="2dp"
50 android:src="@drawable/shared_with_me" />
51
52 <ImageView
53 android:id="@+id/thumbnail"
54 android:layout_width="72dp"
55 android:layout_height="72dp"
56 android:layout_gravity="center_horizontal"
57 android:layout_marginLeft="10dp"
58 android:layout_marginRight="10dp"
59 android:src="@drawable/ic_menu_archive" />
60
61 <ImageView
62 android:id="@+id/localFileIndicator"
63 android:layout_width="@dimen/file_icon_size"
64 android:layout_height="@dimen/file_icon_size"
65 android:layout_gravity="top|right"
66 android:layout_marginTop="2dp"
67 android:layout_marginRight="2dp"
68 android:src="@drawable/local_file_indicator" />
69
70 <ImageView
71 android:id="@+id/favoriteIcon"
72 android:layout_width="15dp"
73 android:layout_height="15dp"
74 android:layout_gravity="bottom|right"
75 android:layout_marginBottom="2dp"
76 android:layout_marginRight="2dp"
77 android:src="@drawable/ic_favorite" />
78
79 </FrameLayout>
80
81 <TextView
82 android:id="@+id/Filename"
83 android:layout_width="match_parent"
84 android:layout_height="wrap_content"
85 android:layout_marginLeft="4dp"
86 android:layout_marginRight="4dp"
87 android:ellipsize="middle"
88 android:gravity="center_horizontal"
89 android:singleLine="true"
90 android:text="TextView"
91 android:textColor="@color/textColor"
92 android:textSize="16dip" />
93
94 </com.owncloud.android.ui.SquareLinearLayout>