4333d4d54d96e7ded0960e57098646f0cdeaba31
[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 as published by
10 the Free Software Foundation, either version 2 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 -->
21 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
22 android:id="@+id/ListItemLayout"
23 android:layout_width="fill_parent"
24 android:background="@drawable/list_selector"
25 android:orientation="horizontal"
26 android:layout_height="56dp">
27
28 <FrameLayout
29 android:layout_width="wrap_content"
30 android:layout_height="56dp"
31 android:focusable="false"
32 android:focusableInTouchMode="false">
33
34 <ImageView
35 android:id="@+id/imageView2"
36 android:layout_width="wrap_content"
37 android:layout_height="wrap_content"
38 android:src="@drawable/local_file_indicator"/>
39
40 <ImageView
41 android:id="@+id/imageView1"
42 android:layout_width="20dp"
43 android:layout_height="20dp"
44 android:layout_gravity="center_vertical|center"
45 android:layout_margin="4dp"
46 android:src="@drawable/ic_menu_archive" />
47
48 <ImageView
49 android:id="@+id/imageView3"
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:layout_gravity="bottom"
53 android:layout_weight=".1"
54 android:maxHeight="15dip"
55 android:src="@drawable/ic_favorite" />
56
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:textSize="12dip"/>
93
94 <TextView
95 android:id="@+id/file_size"
96 android:layout_width="wrap_content"
97 android:layout_height="wrap_content"
98 android:gravity="right"
99 android:text="TextView"
100 android:layout_weight=".5"
101 android:textSize="12dip"/>
102
103 </LinearLayout>
104
105 </LinearLayout>
106
107 <ImageView
108 android:id="@+id/custom_checkbox"
109 android:layout_width="wrap_content"
110 android:layout_height="wrap_content"
111 android:layout_gravity="center_vertical"
112 android:layout_marginLeft="4dp"
113 android:layout_marginRight="4dp"
114 android:gravity=""
115 android:src="@android:drawable/checkbox_off_background" />
116
117 </LinearLayout>