blob: 39e55beef5db27efd6ace71f58750a1ff48045ea [file] [log] [blame]
Jeff Sharkey54e55b72013-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
17<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
18 android:layout_width="match_parent"
19 android:layout_height="wrap_content"
Jeff Sharkeybe8b12e2013-07-01 16:56:54 -070020 android:background="@drawable/item_background"
Jeff Sharkey54e55b72013-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"
26 android:columnCount="3">
27
28 <ImageView
29 android:id="@android:id/icon"
30 android:layout_width="@android:dimen/app_icon_size"
31 android:layout_height="@android:dimen/app_icon_size"
32 android:layout_rowSpan="2"
33 android:layout_marginEnd="8dip"
34 android:scaleType="centerInside"
35 android:contentDescription="@null" />
36
37 <TextView
38 android:id="@android:id/title"
39 android:layout_width="0dip"
40 android:layout_gravity="fill_horizontal"
41 android:layout_marginTop="2dip"
42 android:layout_columnSpan="2"
43 android:singleLine="true"
44 android:ellipsize="marquee"
45 android:textAppearance="?android:attr/textAppearanceMedium"
46 android:textAlignment="viewStart" />
47
48 <ImageView
49 android:id="@android:id/icon1"
50 android:layout_width="24dip"
51 android:layout_height="24dip"
52 android:layout_marginEnd="8dip"
53 android:visibility="gone"
54 android:scaleType="centerInside"
55 android:contentDescription="@null" />
56
57 <TextView
58 android:id="@android:id/summary"
59 android:layout_marginTop="2dip"
60 android:textAppearance="?android:attr/textAppearanceSmall" />
61
62</GridLayout>