Remote fetch of thumbnail
[pub/Android/ownCloud.git] / res / layout / image_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="horizontal" >
27
28 <ImageView
29 android:id="@+id/imageView1"
30 android:layout_width="150dp"
31 android:layout_height="150dp"
32 android:layout_marginBottom="5dp"
33 android:layout_marginLeft="9dp"
34 android:layout_marginTop="5dp"
35 android:src="@drawable/ic_menu_archive" />
36
37 <FrameLayout
38 android:id="@+id/imageItemFrame"
39 android:layout_width="56dp"
40 android:layout_height="56dp"
41 android:focusable="false"
42 android:focusableInTouchMode="false" >
43
44 <ImageView
45 android:id="@+id/sharedIcon"
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:layout_marginBottom="4dp"
49 android:layout_marginLeft="4dp"
50 android:layout_marginRight="4dp"
51 android:src="@drawable/sharedlink" />
52
53 <ImageView
54 android:id="@+id/sharedWithMeIcon"
55 android:layout_width="wrap_content"
56 android:layout_height="wrap_content"
57 android:layout_marginLeft="4dp"
58 android:layout_marginRight="4dp"
59 android:layout_marginTop="4dp"
60 android:src="@drawable/shared_with_me" />
61
62 <ImageView
63 android:id="@+id/custom_checkbox"
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:layout_marginLeft="4dp"
67 android:layout_marginRight="4dp"
68 android:src="@android:drawable/checkbox_off_background" />
69
70 <ImageView
71 android:id="@+id/imageView2"
72 android:layout_width="32dp"
73 android:layout_height="32dp"
74 android:layout_gravity="center_vertical"
75 android:layout_marginLeft="22dp"
76 android:src="@drawable/local_file_indicator" />
77
78 <TextView
79 android:id="@+id/Filename"
80 android:layout_width="wrap_content"
81 android:layout_height="wrap_content"
82 android:layout_marginLeft="4dp"
83 android:layout_marginRight="4dp"
84 android:ellipsize="middle"
85 android:singleLine="true"
86 android:text="TextView"
87 android:textColor="#303030"
88 android:textSize="16dip" />
89
90 <ImageView
91 android:id="@+id/imageView3"
92 android:layout_width="wrap_content"
93 android:layout_height="wrap_content"
94 android:layout_gravity="bottom|right"
95 android:layout_marginBottom="10dp"
96 android:layout_marginRight="2dp"
97 android:src="@drawable/ic_favorite" />
98
99 <TextView
100 android:id="@+id/last_mod"
101 android:layout_width="wrap_content"
102 android:layout_height="wrap_content"
103 android:layout_weight=".5"
104 android:text="TextView"
105 android:textColor="@color/list_item_lastmod_and_filesize_text"
106 android:textSize="12dip" />
107
108 <TextView
109 android:id="@+id/file_size"
110 android:layout_width="wrap_content"
111 android:layout_height="wrap_content"
112 android:layout_weight=".5"
113 android:gravity="right"
114 android:text="TextView"
115 android:textColor="@color/list_item_lastmod_and_filesize_text"
116 android:textSize="12dip" />
117 </FrameLayout>
118
119 </LinearLayout>