<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:id="@+id/recording_container"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingLeft="12dp"
    android:paddingRight="12dp"
    android:layout_gravity="center_vertical"
    android:gravity="center_vertical"
    android:orientation="horizontal"
    tools:visibility="visible"
    tools:showIn="@layout/conversation_input_panel">

  <TextView
      android:id="@+id/record_time"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:ellipsize="none"
      style="@style/Signal.Text.Body"
      android:text="00:00.0"
      android:textColor="?conversation_item_outgoing_text_primary_color"
      android:singleLine="true"
      android:visibility="gone"
      tools:visibility="visible"/>

    <TextView
        android:id="@+id/record_cancel"
        style="@style/Signal.Text.Caption"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginEnd="8dp"
        android:ellipsize="none"
        android:gravity="center_vertical"
        android:padding="4dp"
        android:text="@string/cancel"
        android:textColor="@color/audio_icon"
        android:visibility="gone"
        tools:visibility="visible" />

  <FrameLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:clipChildren="true">

    <TextView
        android:id="@+id/slide_to_cancel"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:gravity="left|start|center_vertical"
        android:drawableLeft="@drawable/slidearrow"
        android:drawableStart="@drawable/slidearrow"
        style="@style/Signal.Text.Preview"
        android:singleLine="true"
        android:text="@string/chat_record_slide_to_cancel"
        android:textColor="@color/slidearrow_color"
        android:ellipsize="none"
        android:visibility="gone"
        android:paddingLeft="10dp"
        android:paddingStart="10dp"
        android:paddingRight="50dp"
        android:paddingEnd="50dp"
        tools:visibility="visible"/>

  </FrameLayout>

</LinearLayout>
