<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/vector_coordinator_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <androidx.appcompat.widget.Toolbar
            android:id="@+id/callTransferToolbar"
            style="@style/VectorToolbarStyle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:elevation="4dp"
            app:layout_constraintTop_toTopOf="parent" />

        <com.google.android.material.tabs.TabLayout
            android:id="@+id/callTransferTabLayout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:layout_constraintTop_toBottomOf="@+id/callTransferToolbar"
            app:tabGravity="fill"
            app:tabMaxWidth="0dp"
            app:tabMode="fixed" />

        <androidx.viewpager2.widget.ViewPager2
            android:id="@+id/callTransferViewPager"
            android:layout_width="0dp"
            android:layout_height="0dp"
            app:layout_constraintBottom_toTopOf="@+id/callTransferActionsLayout"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/callTransferTabLayout"
            app:layout_behavior="@string/appbar_scrolling_view_behavior" />

        <RelativeLayout
            android:background="?riotx_header_panel_background"
            android:id="@+id/callTransferActionsLayout"
            android:layout_width="match_parent"
            android:paddingVertical="8dp"
            android:paddingHorizontal="16dp"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintStart_toEndOf="parent"
            android:layout_height="wrap_content">

            <CheckBox
                android:id="@+id/callTransferConsultCheckBox"
                android:layout_width="wrap_content"
                android:layout_centerVertical="true"
                android:layout_alignParentStart="true"
                android:enabled="false"
                android:layout_height="wrap_content"/>

            <TextView
                android:id="@+id/callTransferConsultTitle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true"
                android:layout_toEndOf="@id/callTransferConsultCheckBox"
                android:layout_toStartOf="@+id/callTransferConnectAction"
                android:layout_marginEnd="8dp"
                android:ellipsize="end"
                android:text="@string/call_transfer_consult_first" />

            <Button
                android:id="@+id/callTransferConnectAction"
                style="@style/VectorButtonStyleText"
                android:layout_width="wrap_content"
                android:layout_centerVertical="true"
                android:layout_alignParentEnd="true"
                android:text="@string/call_transfer_connect_action"
                android:layout_height="wrap_content"/>

        </RelativeLayout>

        <include
            android:id="@+id/waiting_view"
            layout="@layout/merge_overlay_waiting_view" />

    </androidx.constraintlayout.widget.ConstraintLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>