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