39a3edd2882addfcc97d1553bc155943fb53a969
[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/imageView4"
40 android:layout_width="wrap_content"
41 android:layout_height="wrap_content"
42 android:src="@drawable/downloading_file_indicator"/>
43
44 <ImageView
45 android:id="@+id/imageView1"
46 android:layout_width="20dp"
47 android:layout_height="20dp"
48 android:layout_gravity="center_vertical|center"
49 android:layout_margin="4dp"
50 android:src="@drawable/ic_menu_archive" />
51
52 <ImageView
53 android:id="@+id/imageView3"
54 android:layout_width="wrap_content"
55 android:layout_height="wrap_content"
56 android:layout_gravity="bottom"
57 android:layout_weight=".1"
58 android:maxHeight="15dip"
59 android:src="@drawable/ic_favorite" />
60
61 </FrameLayout>
62
63 <LinearLayout
64 android:layout_width="match_parent"
65 android:layout_height="match_parent"
66 android:orientation="vertical"
67 android:gravity="center_vertical">
68
69 <TextView
70 android:id="@+id/Filename"
71 android:layout_width="wrap_content"
72 android:layout_height="wrap_content"
73 android:layout_gravity="center_vertical"
74 android:layout_marginLeft="4dp"
75 android:layout_marginRight="4dp"
76 android:ellipsize="middle"
77 android:singleLine="true"
78 android:text="TextView"
79 android:textColor="#303030"
80 android:textSize="16dip" />
81
82 <LinearLayout
83 android:layout_width="match_parent"
84 android:layout_height="wrap_content"
85 android:layout_marginLeft="4dp"
86 android:layout_marginRight="4dp"
87 android:weightSum="1">
88
89 <TextView
90 android:id="@+id/last_mod"
91 android:layout_width="wrap_content"
92 android:layout_height="wrap_content"
93 android:text="TextView"
94 android:layout_weight=".5"
95 android:textSize="12dip"/>
96
97 <TextView
98 android:id="@+id/file_size"
99 android:layout_width="wrap_content"
100 android:layout_height="wrap_content"
101 android:gravity="right"
102 android:text="TextView"
103 android:layout_weight=".5"
104 android:textSize="12dip"/>
105
106 </LinearLayout>
107
108 </LinearLayout>
109
110 </LinearLayout>