5c35c62caddde687e0eafa1c0daa067f608319b8
[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) 2012 Bartek Przybylski
6 Copyright (C) 2012-2013 ownCloud Inc.
7
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License version 2,
10 as published by the Free Software Foundation.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20 -->
21 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
22 android:id="@+id/ListItemLayout"
23 android:layout_width="fill_parent"
24 android:layout_height="160dp"
25 android:background="@drawable/list_selector"
26 android:orientation="vertical" >
27
28 <ImageView
29 android:id="@+id/imageView1"
30 android:layout_width="90dp"
31 android:layout_height="93dp"
32 android:layout_marginBottom="5dp"
33 android:layout_marginLeft="9dp"
34 android:layout_marginTop="5dp"
35 android:src="@drawable/ic_menu_archive" />
36
37 <TextView
38 android:id="@+id/Filename"
39 android:layout_width="95dp"
40 android:layout_height="wrap_content"
41 android:layout_marginLeft="4dp"
42 android:layout_marginRight="4dp"
43 android:ellipsize="middle"
44 android:singleLine="true"
45 android:text="TextView"
46 android:textColor="#303030"
47 android:textSize="16dip" />
48
49 <ImageView
50 android:id="@+id/imageView2"
51 android:layout_width="40dp"
52 android:layout_height="22dp"
53 android:layout_marginLeft="22dp"
54 android:src="@drawable/local_file_indicator" />
55
56 <TextView
57 android:id="@+id/file_size"
58 android:layout_width="wrap_content"
59 android:layout_height="wrap_content"
60 android:layout_weight=".5"
61 android:gravity="right"
62 android:text="TextView"
63 android:textColor="@color/list_item_lastmod_and_filesize_text"
64 android:textSize="12dip" />
65
66 <FrameLayout
67 android:id="@+id/imageItemFrame"
68 android:layout_width="56dp"
69 android:layout_height="56dp"
70 android:focusable="false"
71 android:focusableInTouchMode="false" >
72
73 <ImageView
74 android:id="@+id/sharedIcon"
75 android:layout_width="wrap_content"
76 android:layout_height="wrap_content"
77 android:layout_marginBottom="4dp"
78 android:layout_marginLeft="4dp"
79 android:layout_marginRight="4dp"
80 android:src="@drawable/sharedlink" />
81
82 <ImageView
83 android:id="@+id/sharedWithMeIcon"
84 android:layout_width="wrap_content"
85 android:layout_height="wrap_content"
86 android:layout_marginLeft="4dp"
87 android:layout_marginRight="4dp"
88 android:layout_marginTop="4dp"
89 android:src="@drawable/shared_with_me" />
90
91 <ImageView
92 android:id="@+id/custom_checkbox"
93 android:layout_width="wrap_content"
94 android:layout_height="wrap_content"
95 android:layout_marginLeft="4dp"
96 android:layout_marginRight="4dp"
97 android:src="@android:drawable/checkbox_off_background" />
98
99 <ImageView
100 android:id="@+id/imageView3"
101 android:layout_width="wrap_content"
102 android:layout_height="wrap_content"
103 android:layout_gravity="bottom|right"
104 android:layout_marginBottom="10dp"
105 android:layout_marginRight="2dp"
106 android:src="@drawable/ic_favorite" />
107
108 <TextView
109 android:id="@+id/last_mod"
110 android:layout_width="wrap_content"
111 android:layout_height="wrap_content"
112 android:layout_weight=".5"
113 android:text="TextView"
114 android:textColor="@color/list_item_lastmod_and_filesize_text"
115 android:textSize="12dip" />
116 </FrameLayout>
117
118 </LinearLayout>