Merge branch 'develop' into release-1.5.8
[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="wrap_content"
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="32dp"
36 android:layout_height="32dp"
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="32dp"
44 android:layout_height="32dp"
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:src="@drawable/ic_favorite" />
56 </FrameLayout>
57
58 <LinearLayout
59 android:layout_width="0dp"
60 android:layout_height="match_parent"
61 android:layout_weight="1"
62 android:gravity="center_vertical"
63 android:orientation="vertical" >
64
65 <TextView
66 android:id="@+id/Filename"
67 android:layout_width="wrap_content"
68 android:layout_height="wrap_content"
69 android:layout_gravity="center_vertical"
70 android:layout_marginLeft="4dp"
71 android:layout_marginRight="4dp"
72 android:ellipsize="middle"
73 android:singleLine="true"
74 android:text="TextView"
75 android:textColor="#303030"
76 android:textSize="16dip" />
77
78 <LinearLayout
79 android:layout_width="match_parent"
80 android:layout_height="wrap_content"
81 android:layout_marginLeft="4dp"
82 android:layout_marginRight="4dp"
83 android:weightSum="1">
84
85 <TextView
86 android:id="@+id/last_mod"
87 android:layout_width="wrap_content"
88 android:layout_height="wrap_content"
89 android:text="TextView"
90 android:layout_weight=".5"
91 android:textColor="@color/list_item_lastmod_and_filesize_text"
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:textColor="@color/list_item_lastmod_and_filesize_text"
101 android:layout_weight=".5"
102 android:textSize="12dip"/>
103
104 </LinearLayout>
105
106 </LinearLayout>
107
108 <LinearLayout
109 android:layout_width="wrap_content"
110 android:layout_height="match_parent"
111 android:gravity="center_vertical"
112 android:orientation="vertical">
113
114 <ImageView
115 android:id="@+id/sharedIcon"
116 android:layout_width="wrap_content"
117 android:layout_height="wrap_content"
118 android:layout_gravity="center_vertical"
119 android:layout_marginLeft="4dp"
120 android:layout_marginBottom="4dp"
121 android:layout_marginRight="4dp"
122 android:src="@drawable/sharedlink" />
123
124 <ImageView
125 android:id="@+id/sharedWithMeIcon"
126 android:layout_width="wrap_content"
127 android:layout_height="wrap_content"
128 android:layout_gravity="center_vertical"
129 android:layout_marginLeft="4dp"
130 android:layout_marginRight="4dp"
131 android:layout_marginTop="4dp"
132 android:src="@drawable/shared_with_me" />
133
134 </LinearLayout>
135
136 <ImageView
137 android:id="@+id/custom_checkbox"
138 android:layout_width="wrap_content"
139 android:layout_height="wrap_content"
140 android:layout_gravity="center_vertical"
141 android:layout_marginLeft="4dp"
142 android:layout_marginRight="4dp"
143 android:gravity=""
144 android:src="@android:drawable/checkbox_off_background" />
145
146 </LinearLayout>