1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 ~ Copyright (C) 2017 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 <FrameLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:orientation="horizontal" 20 android:layout_width="match_parent" 21 android:layout_height="@dimen/row_height"> 22 23 <include layout="@layout/header"/> 24 25 <LinearLayout 26 android:id="@+id/click_target" 27 android:orientation="horizontal" 28 android:layout_width="match_parent" 29 android:layout_height="match_parent" 30 android:layout_marginStart="@dimen/header_width" 31 android:layout_marginEnd="@dimen/row_end_margin" 32 android:paddingTop="@dimen/row_top_bottom_padding" 33 android:paddingBottom="@dimen/row_top_bottom_padding" 34 android:paddingStart="@dimen/row_start_padding" 35 android:gravity="center_vertical" 36 android:background="?android:attr/selectableItemBackground"> 37 38 <QuickContactBadge 39 android:id="@+id/photo" 40 android:layout_width="@dimen/photo_size" 41 android:layout_height="@dimen/photo_size" 42 android:clickable="false"/> 43 44 <TextView 45 android:id="@+id/contact_name" 46 android:layout_width="wrap_content" 47 android:layout_height="match_parent" 48 android:paddingStart="@dimen/text_padding_start" 49 android:paddingEnd="@dimen/text_padding_end" 50 android:maxLines="1" 51 android:ellipsize="end" 52 android:gravity="center_vertical" 53 android:textSize="@dimen/text_size" 54 android:textColor="@color/dialer_primary_text_color" 55 android:fontFamily="sans-serif"/> 56 </LinearLayout> 57 </FrameLayout>