Merge remote-tracking branch 'remotes/upstream/externalSD2' into beta
[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/file_size"
96 android:layout_width="wrap_content"
97 android:layout_height="wrap_content"
98 android:text="Size MB"
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/last_mod"
113 android:layout_width="wrap_content"
114 android:layout_height="wrap_content"
115 android:gravity="right"
116 android:text="Mod Date"
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 <ImageView
125 android:id="@+id/sharedIcon"
126 android:layout_width="wrap_content"
127 android:layout_height="wrap_content"
128 android:layout_gravity="center"
129 android:layout_marginTop="4dp"
130 android:layout_marginLeft="4dp"
131 android:layout_marginBottom="4dp"
132 android:layout_marginRight="4dp"
133 android:src="@drawable/shared_via_link" />
134
135 <ImageView
136 android:id="@+id/custom_checkbox"
137 android:layout_width="wrap_content"
138 android:layout_height="wrap_content"
139 android:layout_gravity="center_vertical"
140 android:layout_marginLeft="4dp"
141 android:layout_marginRight="@dimen/standard_margin"
142 android:gravity=""
143 android:src="@drawable/ic_checkbox_blank_outline" />
144 </LinearLayout>
145
146 <View
147 android:layout_width="match_parent"
148 android:layout_height="1dp"
149 android:background="@color/list_divider_background"></View>
150
151 </LinearLayout>