Merge remote-tracking branch 'origin/develop' into add_cookie_based_session_support
[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="wrap_content"
36 android:layout_height="wrap_content"
37 android:src="@drawable/local_file_indicator"/>
38
39 <ImageView
40 android:id="@+id/imageView1"
41 android:layout_width="20dp"
42 android:layout_height="20dp"
43 android:layout_gravity="center_vertical|center"
44 android:layout_margin="4dp"
45 android:src="@drawable/ic_menu_archive" />
46
47 <ImageView
48 android:id="@+id/imageView3"
49 android:layout_width="wrap_content"
50 android:layout_height="wrap_content"
51 android:layout_gravity="bottom"
52 android:layout_weight=".1"
53 android:maxHeight="15dip"
54 android:src="@drawable/ic_favorite" />
55
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:textSize="12dip"/>
92
93 <TextView
94 android:id="@+id/file_size"
95 android:layout_width="wrap_content"
96 android:layout_height="wrap_content"
97 android:gravity="right"
98 android:text="TextView"
99 android:layout_weight=".5"
100 android:textSize="12dip"/>
101
102 </LinearLayout>
103
104 </LinearLayout>
105
106 <LinearLayout
107 android:layout_width="wrap_content"
108 android:layout_height="match_parent"
109 android:gravity="center_vertical"
110 android:orientation="vertical">
111
112 <ImageView
113 android:id="@+id/sharedIcon"
114 android:layout_width="wrap_content"
115 android:layout_height="wrap_content"
116 android:layout_gravity="center_vertical"
117 android:layout_marginLeft="4dp"
118 android:layout_marginBottom="4dp"
119 android:layout_marginRight="4dp"
120 android:src="@drawable/sharedlink" />
121
122 <ImageView
123 android:id="@+id/sharedWithMeIcon"
124 android:layout_width="wrap_content"
125 android:layout_height="wrap_content"
126 android:layout_gravity="center_vertical"
127 android:layout_marginLeft="4dp"
128 android:layout_marginRight="4dp"
129 android:layout_marginTop="4dp"
130 android:src="@drawable/shared_with_me" />
131
132 </LinearLayout>
133
134 <ImageView
135 android:id="@+id/custom_checkbox"
136 android:layout_width="wrap_content"
137 android:layout_height="wrap_content"
138 android:layout_gravity="center_vertical"
139 android:layout_marginLeft="4dp"
140 android:layout_marginRight="4dp"
141 android:gravity=""
142 android:src="@android:drawable/checkbox_off_background" />
143
144 </LinearLayout>