<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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="wrap_content">

    <com.onfido.android.sdk.capture.audio.ExpandablePillView
        android:id="@+id/pillView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

    <RelativeLayout
        android:id="@+id/speaker"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/onfido_audio_pill_background"
        android:padding="@dimen/onfido_audio_pill_icon_margin">

        <ImageView
            android:layout_width="@dimen/onfido_audio_speaker_size"
            android:layout_height="@dimen/onfido_audio_speaker_size"
            android:layout_centerInParent="true"
            app:srcCompat="@drawable/onfido_volume_full" />
    </RelativeLayout>

    <TextView
        android:id="@+id/turnSoundOn"
        style="@style/OnfidoTextStyle.Body.Compact"
        android:layout_marginLeft="@dimen/onfido_audio_pill_icon_margin"
        android:layout_marginBottom="@dimen/onfido_audio_pill_icon_margin"
        android:layout_toRightOf="@+id/speaker"
        android:alpha="0"
        android:ellipsize="end"
        android:includeFontPadding="false"
        android:text="@string/onfido_turn_sound_on"
        android:textColor="@color/onfido_white" />
</RelativeLayout>