blob: 8372eedb56d77fcb3d51f10eba9a36a4d78f5e88 [file] [log] [blame]
Jeff Sharkey09c10bf2013-06-30 20:02:59 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2013 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16
Jeff Sharkey2e694f82013-08-06 16:26:14 -070017<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
Jeff Sharkey09c10bf2013-06-30 20:02:59 -070018 android:layout_width="match_parent"
19 android:layout_height="wrap_content"
Jeff Sharkeyc317af82013-07-01 16:56:54 -070020 android:background="@drawable/item_background"
Jeff Sharkey09c10bf2013-06-30 20:02:59 -070021 android:minHeight="?android:attr/listPreferredItemHeight"
22 android:paddingStart="?android:attr/listPreferredItemPaddingStart"
23 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
24 android:paddingTop="8dip"
25 android:paddingBottom="8dip"
Jeff Sharkey2e694f82013-08-06 16:26:14 -070026 android:orientation="horizontal">
Jeff Sharkey09c10bf2013-06-30 20:02:59 -070027
28 <ImageView
29 android:id="@android:id/icon"
Jeff Sharkey42d26792013-09-06 13:22:09 -070030 android:layout_width="@dimen/icon_size"
31 android:layout_height="@dimen/icon_size"
32 android:layout_marginStart="12dp"
33 android:layout_marginEnd="20dp"
Jeff Sharkey2e694f82013-08-06 16:26:14 -070034 android:layout_gravity="center_vertical"
Jeff Sharkey09c10bf2013-06-30 20:02:59 -070035 android:scaleType="centerInside"
36 android:contentDescription="@null" />
37
Jeff Sharkey2e694f82013-08-06 16:26:14 -070038 <LinearLayout
Jeff Sharkey09c10bf2013-06-30 20:02:59 -070039 android:layout_width="0dip"
Jeff Sharkey2e694f82013-08-06 16:26:14 -070040 android:layout_height="wrap_content"
41 android:layout_weight="1"
42 android:layout_gravity="center_vertical"
43 android:orientation="vertical">
Jeff Sharkey09c10bf2013-06-30 20:02:59 -070044
Jeff Sharkey2e694f82013-08-06 16:26:14 -070045 <LinearLayout
Jeff Sharkey2e694f82013-08-06 16:26:14 -070046 android:layout_width="match_parent"
47 android:layout_height="wrap_content"
48 android:orientation="horizontal">
Jeff Sharkey09c10bf2013-06-30 20:02:59 -070049
Jeff Sharkey42d26792013-09-06 13:22:09 -070050 <TextView
51 android:id="@android:id/title"
52 android:layout_width="0dip"
53 android:layout_height="wrap_content"
54 android:layout_weight="1"
55 android:singleLine="true"
56 android:ellipsize="marquee"
57 android:textAppearance="?android:attr/textAppearanceMedium"
58 android:textAlignment="viewStart" />
59
Jeff Sharkey2e694f82013-08-06 16:26:14 -070060 <ImageView
61 android:id="@android:id/icon1"
Jeff Sharkey42d26792013-09-06 13:22:09 -070062 android:layout_width="@dimen/root_icon_size"
63 android:layout_height="@dimen/root_icon_size"
64 android:layout_marginStart="8dip"
Jeff Sharkey2e694f82013-08-06 16:26:14 -070065 android:scaleType="centerInside"
66 android:contentDescription="@null" />
67
Jeff Sharkey42d26792013-09-06 13:22:09 -070068 </LinearLayout>
69
70 <LinearLayout
71 android:id="@+id/line2"
72 android:layout_width="match_parent"
73 android:layout_height="wrap_content"
74 android:orientation="horizontal">
75
Jeff Sharkey2e694f82013-08-06 16:26:14 -070076 <TextView
Jeff Sharkey42d26792013-09-06 13:22:09 -070077 android:id="@+id/date"
78 android:layout_width="wrap_content"
Jeff Sharkey2e694f82013-08-06 16:26:14 -070079 android:layout_height="wrap_content"
Jeff Sharkey2e694f82013-08-06 16:26:14 -070080 android:layout_gravity="center_vertical"
Jeff Sharkey42d26792013-09-06 13:22:09 -070081 android:minWidth="70dp"
Jeff Sharkey2e694f82013-08-06 16:26:14 -070082 android:singleLine="true"
83 android:ellipsize="marquee"
84 android:textAlignment="viewStart"
85 android:textAppearance="?android:attr/textAppearanceSmall" />
86
87 <TextView
88 android:id="@+id/size"
Jeff Sharkey42d26792013-09-06 13:22:09 -070089 android:layout_width="wrap_content"
Jeff Sharkey2e694f82013-08-06 16:26:14 -070090 android:layout_height="wrap_content"
91 android:layout_gravity="center_vertical"
Jeff Sharkey42d26792013-09-06 13:22:09 -070092 android:minWidth="70dp"
93 android:layout_marginStart="8dp"
Jeff Sharkey2e694f82013-08-06 16:26:14 -070094 android:singleLine="true"
95 android:ellipsize="marquee"
Jeff Sharkey42d26792013-09-06 13:22:09 -070096 android:textAlignment="viewStart"
Jeff Sharkey2e694f82013-08-06 16:26:14 -070097 android:textAppearance="?android:attr/textAppearanceSmall" />
98
99 <TextView
Jeff Sharkey42d26792013-09-06 13:22:09 -0700100 android:id="@android:id/summary"
101 android:layout_width="0dp"
Jeff Sharkey2e694f82013-08-06 16:26:14 -0700102 android:layout_height="wrap_content"
Jeff Sharkey42d26792013-09-06 13:22:09 -0700103 android:layout_weight="1"
Jeff Sharkey2e694f82013-08-06 16:26:14 -0700104 android:layout_gravity="center_vertical"
Jeff Sharkey42d26792013-09-06 13:22:09 -0700105 android:layout_marginStart="8dp"
Jeff Sharkey2e694f82013-08-06 16:26:14 -0700106 android:singleLine="true"
107 android:ellipsize="marquee"
Jeff Sharkey42d26792013-09-06 13:22:09 -0700108 android:textAlignment="viewStart"
Jeff Sharkey2e694f82013-08-06 16:26:14 -0700109 android:textAppearance="?android:attr/textAppearanceSmall" />
110
111 </LinearLayout>
112
113 </LinearLayout>
114
115</LinearLayout>