Merge remote-tracking branch 'remotes/upstream/cancelUploadOnWlanExit' into beta
[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 <ImageView
43 android:id="@+id/sharedIcon"
44 android:layout_width="wrap_content"
45 android:layout_height="wrap_content"
46 android:layout_margin="4dp"
47 android:layout_gravity="top|right"
48 android:src="@drawable/shared_via_link" />
49
50 <ImageView
51 android:id="@+id/localFileIndicator"
52 android:layout_width="@dimen/file_icon_size"
53 android:layout_height="@dimen/file_icon_size"
54 android:layout_gravity="bottom|right"
55 android:layout_marginTop="2dp"
56 android:layout_marginRight="2dp"
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="2dp"
65 android:layout_marginRight="2dp"
66 android:src="@drawable/ic_favorite" />
67
68 <ImageView
69 android:id="@+id/custom_checkbox"
70 android:layout_width="wrap_content"
71 android:layout_height="wrap_content"
72 android:layout_gravity="center_vertical|bottom"
73 android:layout_marginLeft="4dp"
74 android:layout_marginRight="4dp"
75 android:gravity=""
76 android:src="@android:drawable/checkbox_off_background"
77 android:elevation="30dp" />
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>