1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2015 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<androidx.constraintlayout.widget.ConstraintLayout 17 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="@dimen/contact_details_item_height"> 21 22 <LinearLayout 23 android:id="@+id/call_action_id" 24 android:background="?android:attr/selectableItemBackground" 25 android:layout_width="0dp" 26 android:layout_height="match_parent" 27 android:paddingStart="@dimen/contact_details_number_padding_start" 28 android:paddingEnd="@dimen/contact_details_number_padding_end" 29 android:gravity="center_vertical" 30 android:orientation="vertical" 31 app:layout_constraintStart_toStartOf="parent" 32 app:layout_constraintEnd_toStartOf="@id/divider" 33 app:layout_constraintTop_toTopOf="parent" 34 app:layout_constraintBottom_toBottomOf="parent"> 35 36 <TextView 37 android:id="@+id/title" 38 android:theme="@style/Theme.Dialer.BidiText" 39 android:textAppearance="@style/TextAppearance.ContactDetailsListTitle" 40 android:layout_width="match_parent" 41 android:layout_height="wrap_content" 42 android:singleLine="true"/> 43 44 <TextView 45 android:id="@id/text" 46 android:textAppearance="@style/TextAppearance.ContactDetailsListSubtitle" 47 android:layout_width="match_parent" 48 android:layout_height="wrap_content" 49 android:singleLine="true"/> 50 51 </LinearLayout> 52 53 <!-- Divider line separating the text and the text icon --> 54 <View 55 android:id="@+id/divider" 56 android:layout_width="@dimen/vertical_divider_width" 57 android:layout_height="match_parent" 58 android:background="@color/divider_color" 59 android:layout_marginTop="@dimen/vertical_divider_inset" 60 android:layout_marginBottom="@dimen/vertical_divider_inset" 61 android:layout_marginEnd="@dimen/contact_details_text_button_guideline" 62 app:layout_constraintEnd_toEndOf="parent"/> 63 64 <ImageView 65 android:id="@+id/contact_details_favorite_button" 66 android:layout_width="0dp" 67 android:layout_height="match_parent" 68 android:scaleType="center" 69 android:src="@drawable/ic_favorite_activatable" 70 android:tint="@color/contact_details_icon_tint" 71 android:background="?android:attr/selectableItemBackground" 72 app:layout_constraintStart_toStartOf="@id/divider" 73 app:layout_constraintBottom_toBottomOf="parent" 74 app:layout_constraintEnd_toEndOf="parent" 75 app:layout_constraintTop_toTopOf="parent"/> 76</androidx.constraintlayout.widget.ConstraintLayout> 77