<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    tools:parentTag="android.widget.FrameLayout">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/ringingControls"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:padding="16dp"
        tools:background="@color/password_strength_bar_ok"
        tools:visibility="visible">

        <ImageView
            android:id="@+id/ringingControlAccept"
            android:layout_width="56dp"
            android:layout_height="56dp"
            android:background="@drawable/bg_rounded_button"
            android:backgroundTint="@color/riotx_accent"
            android:clickable="true"
            android:contentDescription="@string/call_notification_answer"
            android:focusable="true"
            android:padding="12dp"
            android:src="@drawable/ic_call_answer"
            app:tint="@color/white"
            tools:ignore="MissingConstraints,MissingPrefix" />

        <ImageView
            android:id="@+id/ringingControlDecline"
            android:layout_width="56dp"
            android:layout_height="56dp"
            android:background="@drawable/bg_rounded_button"
            android:backgroundTint="@color/riotx_destructive_accent"
            android:clickable="true"
            android:contentDescription="@string/call_notification_reject"
            android:focusable="true"
            android:padding="12dp"
            android:src="@drawable/ic_call_hangup"
            app:tint="@color/white"
            tools:ignore="MissingConstraints,MissingPrefix" />

        <androidx.constraintlayout.helper.widget.Flow
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:constraint_referenced_ids="ringingControlDecline, ringingControlAccept"
            app:flow_horizontalGap="48dp"
            app:flow_horizontalStyle="packed"
            tools:ignore="MissingConstraints" />

    </androidx.constraintlayout.widget.ConstraintLayout>


    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/connectedControls"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:padding="16dp"
        android:paddingStart="32dp"
        android:paddingEnd="32dp"
        android:visibility="gone"
        tools:background="@color/password_strength_bar_low"
        tools:layout_marginTop="120dp"
        tools:visibility="visible">

        <ImageView
            android:id="@+id/openChatIcon"
            android:layout_width="@dimen/layout_touch_size"
            android:layout_height="@dimen/layout_touch_size"
            android:background="@drawable/bg_rounded_button"
            android:clickable="true"
            android:contentDescription="@string/a11y_open_chat"
            android:focusable="true"
            android:scaleType="center"
            android:src="@drawable/ic_call_pip"
            app:tint="@android:color/white"
            tools:ignore="MissingConstraints,MissingPrefix" />

        <ImageView
            android:id="@+id/muteIcon"
            android:layout_width="56dp"
            android:layout_height="56dp"
            android:background="@drawable/bg_rounded_button"
            android:clickable="true"
            android:contentDescription="@string/a11y_mute_microphone"
            android:focusable="true"
            android:padding="16dp"
            android:src="@drawable/ic_microphone_off"
            app:backgroundTint="?attr/riotx_background"
            app:tint="?attr/riotx_text_primary"
            tools:ignore="MissingConstraints,MissingPrefix" />

        <ImageView
            android:id="@+id/endCallIcon"
            android:layout_width="56dp"
            android:layout_height="56dp"
            android:background="@drawable/bg_rounded_button"
            android:backgroundTint="@color/riotx_destructive_accent"
            android:clickable="true"
            android:contentDescription="@string/call_notification_hangup"
            android:focusable="true"
            android:padding="12dp"
            android:src="@drawable/ic_call_hangup"
            app:tint="@color/white"
            tools:ignore="MissingConstraints,MissingPrefix" />

        <ImageView
            android:id="@+id/videoToggleIcon"
            android:layout_width="56dp"
            android:layout_height="56dp"
            android:background="@drawable/bg_rounded_button"
            android:clickable="true"
            android:contentDescription="@string/a11y_stop_camera"
            android:focusable="true"
            android:padding="16dp"
            android:src="@drawable/ic_call_videocam_off_default"
            app:backgroundTint="?attr/riotx_background"
            app:tint="?attr/riotx_text_primary"
            tools:ignore="MissingConstraints,MissingPrefix" />

        <ImageView
            android:id="@+id/moreIcon"
            android:layout_width="@dimen/layout_touch_size"
            android:layout_height="@dimen/layout_touch_size"
            android:background="@drawable/bg_rounded_button"
            android:clickable="true"
            android:contentDescription="@string/settings"
            android:focusable="true"
            android:scaleType="center"
            android:src="@drawable/ic_more_horizontal"
            app:tint="@android:color/white"
            tools:ignore="MissingConstraints,MissingPrefix" />

        <androidx.constraintlayout.helper.widget.Flow
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:constraint_referenced_ids="openChatIcon, muteIcon, endCallIcon,videoToggleIcon,moreIcon"
            app:flow_horizontalGap="16dp"
            app:flow_horizontalStyle="packed"
            tools:ignore="MissingConstraints" />

    </androidx.constraintlayout.widget.ConstraintLayout>

</merge>