inital work on 16dp margin/padding values and material margin/padding values for...
[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="90dp"
34 android:layout_height="72dp"
35 android:padding="@dimen/standard_padding"
36 android:focusable="false"
37 android:focusableInTouchMode="false">
38
39 <ImageView
40 android:id="@+id/localFileIndicator"
41 android:layout_width="@dimen/file_icon_size"
42 android:layout_height="@dimen/file_icon_size"
43 android:layout_gravity="top|right"
44 android:layout_marginLeft="21dp"
45 android:src="@drawable/local_file_indicator" />
46
47 <ImageView
48 android:id="@+id/thumbnail"
49 android:layout_width="@dimen/file_icon_size"
50 android:layout_height="@dimen/file_icon_size"
51 android:layout_gravity="left|center_vertical"
52 android:src="@drawable/ic_menu_archive" />
53
54 <ImageView
55 android:id="@+id/favoriteIcon"
56 android:layout_width="wrap_content"
57 android:layout_height="wrap_content"
58 android:layout_gravity="bottom|right"
59 android:layout_marginRight="2dp"
60 android:src="@drawable/ic_favorite" />
61 </FrameLayout>
62
63 <LinearLayout
64 android:layout_width="0dp"
65 android:layout_height="match_parent"
66 android:layout_weight="1"
67 android:gravity="center_vertical"
68 android:paddingTop="@dimen/standard_padding"
69 android:paddingBottom="@dimen/standard_padding"
70 android:orientation="vertical" >
71
72 <TextView
73 android:id="@+id/Filename"
74 android:layout_width="wrap_content"
75 android:layout_height="wrap_content"
76 android:layout_gravity="center_vertical"
77 android:layout_marginLeft="0dp"
78 android:layout_marginRight="4dp"
79 android:ellipsize="middle"
80 android:singleLine="true"
81 android:text="TextView"
82 android:textColor="#303030"
83 android:textSize="@dimen/two_line_primary_text_size" />
84
85 <LinearLayout
86 android:layout_width="match_parent"
87 android:layout_height="wrap_content"
88 android:layout_marginLeft="0dp"
89 android:layout_marginRight="4dp"
90 android:weightSum="1">
91
92 <TextView
93 android:id="@+id/last_mod"
94 android:layout_width="wrap_content"
95 android:layout_height="wrap_content"
96 android:text="TextView"
97 android:layout_weight=".5"
98 android:textColor="@color/list_item_lastmod_and_filesize_text"
99 android:textSize="@dimen/two_line_secondary_text_size"/>
100
101 <TextView
102 android:id="@+id/file_size"
103 android:layout_width="wrap_content"
104 android:layout_height="wrap_content"
105 android:gravity="right"
106 android:text="TextView"
107 android:textColor="@color/list_item_lastmod_and_filesize_text"
108 android:layout_weight=".5"
109 android:textSize="@dimen/two_line_secondary_text_size"/>
110
111 </LinearLayout>
112
113 </LinearLayout>
114
115 <LinearLayout
116 android:layout_width="25dp"
117 android:layout_height="match_parent"
118 android:gravity="center_vertical"
119 android:orientation="vertical">
120
121 <ImageView
122 android:id="@+id/sharedIcon"
123 android:layout_width="wrap_content"
124 android:layout_height="wrap_content"
125 android:layout_gravity="center"
126 android:layout_marginLeft="4dp"
127 android:layout_marginBottom="4dp"
128 android:layout_marginRight="4dp"
129 android:src="@drawable/sharedlink" />
130
131 <ImageView
132 android:id="@+id/sharedWithMeIcon"
133 android:layout_width="wrap_content"
134 android:layout_height="wrap_content"
135 android:layout_gravity="center"
136 android:layout_marginLeft="4dp"
137 android:layout_marginRight="4dp"
138 android:layout_marginTop="4dp"
139 android:src="@drawable/shared_with_me"
140 android:visibility="invisible" />
141
142 </LinearLayout>
143
144 <ImageView
145 android:id="@+id/custom_checkbox"
146 android:layout_width="wrap_content"
147 android:layout_height="wrap_content"
148 android:layout_gravity="center_vertical"
149 android:layout_marginLeft="4dp"
150 android:layout_marginRight="16dp"
151 android:gravity=""
152 android:src="@drawable/ic_checkbox_blank_outline" />
153 </LinearLayout>
154
155 <View
156 android:layout_width="match_parent"
157 android:layout_height="1dp"
158 android:background="@color/list_divider_background"></View>
159
160 </LinearLayout>