1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2014 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 <LinearLayout 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/listPreferredItemHeightSmall" 21 android:gravity="center_vertical" 22 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 23 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 24 android:background="?android:attr/selectableItemBackground"> 25 26 <ImageView 27 android:id="@+android:id/icon" 28 android:layout_width="wrap_content" 29 android:layout_height="wrap_content" 30 android:layout_marginStart="6dip" 31 android:layout_marginEnd="6dip" 32 android:layout_gravity="center" 33 android:contentDescription="@null" /> 34 35 <RelativeLayout 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:layout_weight="1" 39 android:layout_marginStart="15dip" 40 android:paddingTop="16dip" 41 android:paddingBottom="16dip"> 42 43 <TextView 44 android:id="@+android:id/title" 45 android:layout_width="wrap_content" 46 android:layout_height="wrap_content" 47 android:singleLine="true" 48 android:textAppearance="@android:style/TextAppearance.Material.Subhead" 49 android:textColor="?android:attr/textColorPrimary" 50 android:ellipsize="marquee" 51 android:fadingEdge="horizontal" /> 52 53 <TextView 54 android:id="@android:id/summary" 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" 57 android:layout_below="@android:id/title" 58 android:layout_alignStart="@android:id/title" 59 android:visibility="gone" 60 android:textAlignment="viewStart" 61 android:textAppearance="@android:style/TextAppearance.Material.Body1" 62 android:textColor="?android:attr/textColorSecondary" 63 android:maxLines="10" /> 64 65 </RelativeLayout> 66 67 <LinearLayout 68 android:id="@android:id/widget_frame" 69 android:layout_width="wrap_content" 70 android:layout_height="match_parent" 71 android:minWidth="58dip" 72 android:gravity="end|center_vertical" 73 android:orientation="vertical" /> 74 75 </LinearLayout> 76