| <?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/small_avatar_icon_size" |
| android:layout_height="@dimen/small_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="wrap_content" |
| android:layout_height="wrap_content" |
| android:theme="@style/Theme.Dialer.BidiText" |
| android:textAppearance="?android:attr/textAppearanceLarge" |
| android:singleLine="true" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintStart_toStartOf="@id/guideline" |
| app:layout_constraintEnd_toStartOf="@+id/title_separator"/> |
| |
| <TextView |
| android:id="@id/title_separator" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="@dimen/onhold_profile_status_margin" |
| android:layout_marginEnd="@dimen/onhold_profile_status_margin" |
| android:textAppearance="?android:attr/textAppearanceLarge" |
| android:singleLine="true" |
| android:text="@string/onhold_call_separator" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintStart_toEndOf="@id/title" |
| app:layout_constraintEnd_toStartOf="@+id/time"/> |
| |
| <Chronometer |
| android:id="@id/time" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAppearance="?android:attr/textAppearanceLarge" |
| android:textColor="@color/onhold_time_color" |
| android:singleLine="true" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintStart_toEndOf="@id/title_separator" |
| app:layout_constraintEnd_toStartOf="@+id/time_separator"/> |
| |
| <TextView |
| android:id="@id/time_separator" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="@dimen/onhold_profile_status_margin" |
| android:layout_marginEnd="@dimen/onhold_profile_status_margin" |
| android:textAppearance="?android:attr/textAppearanceLarge" |
| android:singleLine="true" |
| android:text="@string/onhold_call_separator" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintStart_toEndOf="@id/time" |
| app:layout_constraintEnd_toStartOf="@+id/onhold_label"/> |
| |
| <TextView |
| android:id="@id/onhold_label" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:textAppearance="?android:attr/textAppearanceLarge" |
| android:singleLine="true" |
| android:text="@string/call_state_hold" |
| android:textColor="@color/onhold_label_color" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintStart_toEndOf="@id/time_separator" |
| app:layout_constraintEnd_toStartOf="@+id/swap_call"/> |
| |
| <TextView |
| android:id="@id/swap_call" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginEnd="@dimen/onhold_profile_avatar_margin" |
| android:text="@string/swap_call_label" |
| android:textAppearance="?android:attr/textAppearanceLarge" |
| android:singleLine="true" |
| android:textColor="?android:attr/colorAccent" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintEnd_toEndOf="parent"/> |
| </androidx.constraintlayout.widget.ConstraintLayout> |
| </androidx.cardview.widget.CardView> |