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