1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2019 The Android Open Source Project 3 Licensed under the Apache License, Version 2.0 (the "License"); 4 you may not use this file except in compliance with the License. 5 You may obtain a copy of the License at 6 http://www.apache.org/licenses/LICENSE-2.0 7 Unless required by applicable law or agreed to in writing, software 8 distributed under the License is distributed on an "AS IS" BASIS, 9 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 See the License for the specific language governing permissions and 11 limitations under the License. 12--> 13<androidx.cardview.widget.CardView 14 xmlns:android="http://schemas.android.com/apk/res/android" 15 xmlns:app="http://schemas.android.com/apk/res-auto" 16 android:layout_width="match_parent" 17 android:layout_height="match_parent" 18 android:elevation="@dimen/dialer_card_elevation" 19 app:cardBackgroundColor="@color/onhold_call_background" 20 app:cardCornerRadius="@dimen/onhold_profile_corner_radius"> 21 22 <androidx.constraintlayout.widget.ConstraintLayout 23 android:layout_width="match_parent" 24 android:layout_height="match_parent" 25 android:id="@+id/swap_calls_view" 26 android:background="?android:attr/selectableItemBackground"> 27 28 <androidx.constraintlayout.widget.Guideline 29 android:layout_width="wrap_content" 30 android:layout_height="wrap_content" 31 android:id="@+id/guideline" 32 android:orientation="vertical" 33 app:layout_constraintGuide_begin="@dimen/onhold_profile_guideline"/> 34 35 <ImageView 36 android:id="@+id/icon" 37 android:layout_width="@dimen/avatar_icon_size" 38 android:layout_height="@dimen/avatar_icon_size" 39 android:scaleType="centerCrop" 40 android:layout_marginStart="@dimen/onhold_profile_avatar_margin" 41 app:layout_constraintTop_toTopOf="parent" 42 app:layout_constraintBottom_toBottomOf="parent" 43 app:layout_constraintStart_toStartOf="parent"/> 44 45 <TextView 46 android:id="@+id/title" 47 android:layout_width="0dp" 48 android:layout_height="wrap_content" 49 android:textAppearance="?android:attr/textAppearanceLarge" 50 android:singleLine="true" 51 app:layout_constraintVertical_chainStyle="packed" 52 app:layout_constraintTop_toTopOf="parent" 53 app:layout_constraintBottom_toTopOf="@+id/text" 54 app:layout_constraintStart_toStartOf="@id/guideline" 55 app:layout_constraintEnd_toStartOf="@+id/swap_call_icon"/> 56 57 <TextView 58 android:id="@id/text" 59 android:layout_width="0dp" 60 android:layout_height="wrap_content" 61 android:text="@string/onhold_call_label" 62 android:textAppearance="?android:attr/textAppearanceSmall" 63 android:singleLine="true" 64 app:layout_constraintTop_toBottomOf="@id/title" 65 app:layout_constraintBottom_toBottomOf="parent" 66 app:layout_constraintStart_toStartOf="@id/guideline" 67 app:layout_constraintEnd_toStartOf="@+id/swap_call_icon"/> 68 69 <ImageView 70 android:id="@+id/swap_call_icon" 71 android:layout_width="0dp" 72 android:layout_height="match_parent" 73 android:src="@drawable/ic_swap_calls" 74 android:scaleType="center" 75 android:tint="@color/secondary_icon_color" 76 android:paddingLeft="@dimen/swap_call_button_margin" 77 android:paddingRight="@dimen/swap_call_button_margin" 78 app:layout_constraintTop_toTopOf="parent" 79 app:layout_constraintBottom_toBottomOf="parent" 80 app:layout_constraintEnd_toEndOf="parent"/> 81 </androidx.constraintlayout.widget.ConstraintLayout> 82</androidx.cardview.widget.CardView> 83