| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2019 The Android Open Source Project |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| http://www.apache.org/licenses/LICENSE-2.0 |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <androidx.cardview.widget.CardView |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:elevation="@dimen/dialer_card_elevation" |
| app:cardBackgroundColor="@color/onhold_call_background" |
| app:cardCornerRadius="@dimen/onhold_profile_corner_radius"> |
| |
| <androidx.constraintlayout.widget.ConstraintLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:id="@+id/swap_calls_view" |
| android:background="?android:attr/selectableItemBackground"> |
| |
| <androidx.constraintlayout.widget.Guideline |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:id="@+id/guideline" |
| android:orientation="vertical" |
| app:layout_constraintGuide_begin="@dimen/onhold_profile_guideline"/> |
| |
| <ImageView |
| android:id="@+id/icon" |
| android:layout_width="@dimen/avatar_icon_size" |
| android:layout_height="@dimen/avatar_icon_size" |
| android:scaleType="centerCrop" |
| android:layout_marginStart="@dimen/onhold_profile_avatar_margin" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintStart_toStartOf="parent"/> |
| |
| <TextView |
| android:id="@+id/title" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:theme="@style/Theme.Dialer.BidiText" |
| android:textAppearance="?android:attr/textAppearanceLarge" |
| android:singleLine="true" |
| app:layout_constraintVertical_chainStyle="packed" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toTopOf="@+id/text" |
| app:layout_constraintStart_toStartOf="@id/guideline" |
| app:layout_constraintEnd_toStartOf="@+id/swap_call_icon"/> |
| |
| <TextView |
| android:id="@id/text" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:text="@string/onhold_call_label" |
| android:textAppearance="?android:attr/textAppearanceSmall" |
| android:singleLine="true" |
| app:layout_constraintTop_toBottomOf="@id/title" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintStart_toStartOf="@id/guideline" |
| app:layout_constraintEnd_toStartOf="@+id/swap_call_icon"/> |
| |
| <ImageView |
| android:id="@+id/swap_call_icon" |
| android:layout_width="0dp" |
| android:layout_height="match_parent" |
| android:src="@drawable/ic_swap_calls" |
| android:scaleType="center" |
| android:tint="@color/secondary_icon_color" |
| android:paddingLeft="@dimen/swap_call_button_margin" |
| android:paddingRight="@dimen/swap_call_button_margin" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintEnd_toEndOf="parent"/> |
| </androidx.constraintlayout.widget.ConstraintLayout> |
| </androidx.cardview.widget.CardView> |