Merge branch 'master' of https://github.com/owncloud/android into target_marshmallow
[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) 2015 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="match_parent"
23 android:background="@drawable/list_selector"
24 android:orientation="vertical"
25 android:layout_height="72dp">
26
27 <LinearLayout
28 android:layout_width="match_parent"
29 android:layout_height="match_parent"
30 android:orientation="horizontal">
31
32 <FrameLayout
33 android:layout_width="60dp"
34 android:layout_height="72dp"
35 android:paddingLeft="12dp"
36 android:paddingBottom="@dimen/standard_padding"
37 android:paddingTop="@dimen/standard_padding"
38 android:paddingRight="4dp"
39 android:focusable="false"
40 android:focusableInTouchMode="false">
41
42 <ImageView
43 android:id="@+id/localFileIndicator"
44 android:layout_width="@dimen/file_icon_size"
45 android:layout_height="@dimen/file_icon_size"
46 android:layout_gravity="top|right"
47 android:layout_marginRight="4dp"
48 android:src="@drawable/local_file_indicator" />
49
50 <ImageView
51 android:id="@+id/thumbnail"
52 android:layout_width="@dimen/file_icon_size"
53 android:layout_height="@dimen/file_icon_size"
54 android:layout_gravity="left|center_vertical"
55 android:src="@drawable/ic_menu_archive" />
56
57 <ImageView
58 android:id="@+id/favoriteIcon"
59 android:layout_width="wrap_content"
60 android:layout_height="wrap_content"
61 android:layout_gravity="bottom|right"
62 android:layout_marginRight="4dp"
63 android:src="@drawable/ic_favorite" />
64 </FrameLayout>
65
66 <LinearLayout
67 android:layout_width="0dp"
68 android:layout_height="match_parent"
69 android:layout_weight="1"
70 android:gravity="top"
71 android:paddingTop="@dimen/standard_padding"
72 android:orientation="vertical" >
73
74 <TextView
75 android:id="@+id/Filename"
76 android:layout_width="wrap_content"
77 android:layout_height="wrap_content"
78 android:layout_gravity="center_vertical"
79 android:layout_marginLeft="0dp"
80 android:layout_marginRight="4dp"
81 android:ellipsize="middle"
82 android:singleLine="true"
83 android:text="TextView"
84 android:textColor="@color/textColor"
85 android:textSize="@dimen/two_line_primary_text_size" />
86
87 <LinearLayout
88 android:layout_width="match_parent"
89 android:layout_height="wrap_content"
90 android:layout_marginLeft="0dp"
91 android:layout_marginRight="4dp"
92 android:orientation="horizontal">
93
94 <TextView
95 android:id="@+id/last_mod"
96 android:layout_width="wrap_content"
97 android:layout_height="wrap_content"
98 android:text="TextView"
99 android:textColor="@color/list_item_lastmod_and_filesize_text"
100 android:textSize="@dimen/two_line_secondary_text_size"/>
101
102 <TextView
103 android:id="@+id/file_separator"
104 android:layout_width="wrap_content"
105 android:layout_height="wrap_content"
106 android:gravity="right"
107 android:text=", "
108 android:textColor="@color/list_item_lastmod_and_filesize_text"
109 android:textSize="@dimen/two_line_secondary_text_size"/>
110
111 <TextView
112 android:id="@+id/file_size"
113 android:layout_width="wrap_content"
114 android:layout_height="wrap_content"
115 android:gravity="right"
116 android:text="TextView"
117 android:textColor="@color/list_item_lastmod_and_filesize_text"
118 android:textSize="@dimen/two_line_secondary_text_size"/>
119
120 </LinearLayout>
121
122 </LinearLayout>
123
124 <LinearLayout
125 android:layout_width="25dp"
126 android:layout_height="match_parent"
127 android:gravity="center_vertical"
128 android:orientation="vertical">
129
130 <ImageView
131 android:id="@+id/sharedIcon"
132 android:layout_width="wrap_content"
133 android:layout_height="wrap_content"
134 android:layout_gravity="center"
135 android:layout_marginLeft="4dp"
136 android:layout_marginBottom="4dp"
137 android:layout_marginRight="4dp"
138 android:src="@drawable/sharedlink" />
139
140 <ImageView
141 android:id="@+id/sharedWithMeIcon"
142 android:layout_width="wrap_content"
143 android:layout_height="wrap_content"
144 android:layout_gravity="center"
145 android:layout_marginLeft="4dp"
146 android:layout_marginRight="4dp"
147 android:layout_marginTop="4dp"
148 android:src="@drawable/shared_with_me"
149 android:visibility="invisible" />
150
151 </LinearLayout>
152
153 <ImageView
154 android:id="@+id/custom_checkbox"
155 android:layout_width="wrap_content"
156 android:layout_height="wrap_content"
157 android:layout_gravity="center_vertical"
158 android:layout_marginLeft="4dp"
159 android:layout_marginRight="@dimen/standard_margin"
160 android:gravity=""
161 android:src="@drawable/ic_checkbox_blank_outline" />
162 </LinearLayout>
163
164 <View
165 android:layout_width="match_parent"
166 android:layout_height="1dp"
167 android:background="@color/list_divider_background"></View>
168
169 </LinearLayout>