1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 Copyright (C) 2015 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 android:layout_width="match_parent" 20 android:layout_height="72dp" 21 android:background="@drawable/chips_dropdown_background" 22 android:padding="12dp"> 23 24 <com.android.messaging.ui.ContactIconView 25 android:id="@android:id/icon" 26 style="@style/ChipIconStyle" 27 android:layout_width="40dp" 28 android:layout_height="40dp" 29 android:layout_gravity="center_vertical" 30 android:importantForAccessibility="no" /> 31 32 <LinearLayout 33 android:layout_width="0dp" 34 android:layout_height="wrap_content" 35 android:layout_weight="1" 36 android:layout_gravity="center_vertical" 37 android:orientation="vertical"> 38 39 <TextView 40 android:id="@android:id/title" 41 android:layout_width="match_parent" 42 android:layout_height="wrap_content" 43 android:ellipsize="middle" 44 android:singleLine="true" 45 android:textAlignment="viewStart" 46 android:textColor="@drawable/chips_dropdown_text_color" 47 android:textSize="16sp" /> 48 49 <TextView 50 android:id="@android:id/text1" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:ellipsize="middle" 54 android:singleLine="true" 55 android:textAlignment="viewStart" 56 android:textColor="@drawable/chips_dropdown_text_color" 57 android:textSize="14sp"/> 58 59 </LinearLayout> 60 61 <ImageView 62 android:id="@android:id/icon1" 63 style="@style/ChipDeleteIconStyle" 64 android:layout_width="36dp" 65 android:layout_height="48dp" 66 android:layout_gravity="center_vertical" 67 android:paddingTop="10dp" 68 android:paddingBottom="10dp" 69 android:contentDescription="@string/chips_delete_content_description" /> 70 71 </LinearLayout>