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