Merge branch 'develop' into obeySortOrder_fixmerge
[pub/Android/ownCloud.git] / res / layout / list_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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
21 android:id="@+id/ListItemLayout"
22 android:layout_width="fill_parent"
23 android:background="@drawable/list_selector"
24 android:orientation="horizontal"
25 android:layout_height="56dp">
26
27 <FrameLayout
28 android:layout_width="56dp"
29 android:layout_height="56dp"
30 android:focusable="false"
31 android:focusableInTouchMode="false">
32
33 <ImageView
34 android:id="@+id/imageView2"
35 android:layout_width="@dimen/file_icon_size"
36 android:layout_height="@dimen/file_icon_size"
37 android:layout_gravity="center_vertical"
38 android:layout_marginLeft="22dp"
39 android:src="@drawable/local_file_indicator" />
40
41 <ImageView
42 android:id="@+id/imageView1"
43 android:layout_width="@dimen/file_icon_size"
44 android:layout_height="@dimen/file_icon_size"
45 android:layout_gravity="center_vertical"
46 android:layout_marginLeft="9dp"
47 android:src="@drawable/ic_menu_archive" />
48
49 <ImageView
50 android:id="@+id/imageView3"
51 android:layout_width="wrap_content"
52 android:layout_height="wrap_content"
53 android:layout_gravity="bottom|right"
54 android:layout_marginBottom="10dp"
55 android:layout_marginRight="2dp"
56 android:src="@drawable/ic_favorite" />
57 </FrameLayout>
58
59 <LinearLayout
60 android:layout_width="0dp"
61 android:layout_height="match_parent"
62 android:layout_weight="1"
63 android:gravity="center_vertical"
64 android:orientation="vertical" >
65
66 <TextView
67 android:id="@+id/Filename"
68 android:layout_width="wrap_content"
69 android:layout_height="wrap_content"
70 android:layout_gravity="center_vertical"
71 android:layout_marginLeft="4dp"
72 android:layout_marginRight="4dp"
73 android:ellipsize="middle"
74 android:singleLine="true"
75 android:text="TextView"
76 android:textColor="#303030"
77 android:textSize="16dip" />
78
79 <LinearLayout
80 android:layout_width="match_parent"
81 android:layout_height="wrap_content"
82 android:layout_marginLeft="4dp"
83 android:layout_marginRight="4dp"
84 android:weightSum="1">
85
86 <TextView
87 android:id="@+id/last_mod"
88 android:layout_width="wrap_content"
89 android:layout_height="wrap_content"
90 android:text="TextView"
91 android:layout_weight=".5"
92 android:textColor="@color/list_item_lastmod_and_filesize_text"
93 android:textSize="12dip"/>
94
95 <TextView
96 android:id="@+id/file_size"
97 android:layout_width="wrap_content"
98 android:layout_height="wrap_content"
99 android:gravity="right"
100 android:text="TextView"
101 android:textColor="@color/list_item_lastmod_and_filesize_text"
102 android:layout_weight=".5"
103 android:textSize="12dip"/>
104
105 </LinearLayout>
106
107 </LinearLayout>
108
109 <LinearLayout
110 android:layout_width="25dp"
111 android:layout_height="match_parent"
112 android:gravity="center_vertical"
113 android:orientation="vertical">
114
115 <ImageView
116 android:id="@+id/sharedIcon"
117 android:layout_width="wrap_content"
118 android:layout_height="wrap_content"
119 android:layout_gravity="center"
120 android:layout_marginLeft="4dp"
121 android:layout_marginBottom="4dp"
122 android:layout_marginRight="4dp"
123 android:src="@drawable/sharedlink" />
124
125 <ImageView
126 android:id="@+id/sharedWithMeIcon"
127 android:layout_width="wrap_content"
128 android:layout_height="wrap_content"
129 android:layout_gravity="center"
130 android:layout_marginLeft="4dp"
131 android:layout_marginRight="4dp"
132 android:layout_marginTop="4dp"
133 android:src="@drawable/shared_with_me" />
134
135 </LinearLayout>
136
137 <ImageView
138 android:id="@+id/custom_checkbox"
139 android:layout_width="wrap_content"
140 android:layout_height="wrap_content"
141 android:layout_gravity="center_vertical"
142 android:layout_marginLeft="4dp"
143 android:layout_marginRight="4dp"
144 android:gravity=""
145 android:src="@android:drawable/checkbox_off_background" />
146
147 </LinearLayout>