ddad38c1c99a5d626edf74cd17d4ae15a24e167f
[pub/Android/ownCloud.git] / res / layout / list_layout.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 ownCloud Android client application
4
5 Copyright (C) 2012 Bartek Przybylski
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 -->
19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20 android:id="@+id/ListItemLayout"
21 android:layout_width="fill_parent"
22 android:background="@drawable/list_selector"
23 android:orientation="horizontal"
24 android:layout_height="56dp">
25
26 <FrameLayout
27 android:layout_width="wrap_content"
28 android:layout_height="56dp"
29 android:focusable="false"
30 android:focusableInTouchMode="false">
31
32 <ImageView
33 android:id="@+id/imageView2"
34 android:layout_width="wrap_content"
35 android:layout_height="wrap_content"
36 android:src="@drawable/local_file_indicator"/>
37
38 <ImageView
39 android:id="@+id/imageView1"
40 android:layout_width="20dp"
41 android:layout_height="20dp"
42 android:layout_gravity="center_vertical|center"
43 android:layout_margin="4dp"
44 android:src="@drawable/ic_menu_archive" />
45
46 <ImageView
47 android:id="@+id/imageView3"
48 android:layout_width="wrap_content"
49 android:layout_height="wrap_content"
50 android:layout_gravity="bottom"
51 android:layout_weight=".1"
52 android:maxHeight="15dip"
53 android:src="@drawable/ic_favorite" />
54
55 </FrameLayout>
56
57 <LinearLayout
58 android:layout_width="0dp"
59 android:layout_height="match_parent"
60 android:layout_weight="1"
61 android:gravity="center_vertical"
62 android:orientation="vertical" >
63
64 <TextView
65 android:id="@+id/Filename"
66 android:layout_width="wrap_content"
67 android:layout_height="wrap_content"
68 android:layout_gravity="center_vertical"
69 android:layout_marginLeft="4dp"
70 android:layout_marginRight="4dp"
71 android:ellipsize="middle"
72 android:singleLine="true"
73 android:text="TextView"
74 android:textColor="#303030"
75 android:textSize="16dip" />
76
77 <LinearLayout
78 android:layout_width="match_parent"
79 android:layout_height="wrap_content"
80 android:layout_marginLeft="4dp"
81 android:layout_marginRight="4dp"
82 android:weightSum="1">
83
84 <TextView
85 android:id="@+id/last_mod"
86 android:layout_width="wrap_content"
87 android:layout_height="wrap_content"
88 android:text="TextView"
89 android:layout_weight=".5"
90 android:textSize="12dip"/>
91
92 <TextView
93 android:id="@+id/file_size"
94 android:layout_width="wrap_content"
95 android:layout_height="wrap_content"
96 android:gravity="right"
97 android:text="TextView"
98 android:layout_weight=".5"
99 android:textSize="12dip"/>
100
101 </LinearLayout>
102
103 </LinearLayout>
104
105 <ImageView
106 android:id="@+id/custom_checkbox"
107 android:layout_width="wrap_content"
108 android:layout_height="wrap_content"
109 android:layout_gravity="center_vertical"
110 android:layout_marginLeft="4dp"
111 android:layout_marginRight="4dp"
112 android:gravity=""
113 android:src="@android:drawable/checkbox_off_background" />
114
115 </LinearLayout>