Jeff Sharkey | 09c10bf | 2013-06-30 20:02:59 -0700 | [diff] [blame^] | 1 | <?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" |
| 20 | android:minHeight="?android:attr/listPreferredItemHeight" |
| 21 | android:paddingStart="?android:attr/listPreferredItemPaddingStart" |
| 22 | android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" |
| 23 | android:paddingTop="8dip" |
| 24 | android:paddingBottom="8dip" |
| 25 | android:columnCount="3"> |
| 26 | |
| 27 | <ImageView |
| 28 | android:id="@android:id/icon" |
| 29 | android:layout_width="@android:dimen/app_icon_size" |
| 30 | android:layout_height="@android:dimen/app_icon_size" |
| 31 | android:layout_rowSpan="2" |
| 32 | android:layout_marginEnd="8dip" |
| 33 | android:scaleType="centerInside" |
| 34 | android:contentDescription="@null" /> |
| 35 | |
| 36 | <TextView |
| 37 | android:id="@android:id/title" |
| 38 | android:layout_width="0dip" |
| 39 | android:layout_gravity="fill_horizontal" |
| 40 | android:layout_marginTop="2dip" |
| 41 | android:layout_columnSpan="2" |
| 42 | android:singleLine="true" |
| 43 | android:ellipsize="marquee" |
| 44 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 45 | android:textAlignment="viewStart" /> |
| 46 | |
| 47 | <ImageView |
| 48 | android:id="@android:id/icon1" |
| 49 | android:layout_width="24dip" |
| 50 | android:layout_height="24dip" |
| 51 | android:layout_marginEnd="8dip" |
| 52 | android:visibility="gone" |
| 53 | android:scaleType="centerInside" |
| 54 | android:contentDescription="@null" /> |
| 55 | |
| 56 | <TextView |
| 57 | android:id="@android:id/summary" |
| 58 | android:layout_marginTop="2dip" |
| 59 | android:textAppearance="?android:attr/textAppearanceSmall" /> |
| 60 | |
| 61 | </GridLayout> |