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

    <androidx.fragment.app.FragmentContainerView
        android:id="@+id/fragment_container"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/switch_widget"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|center_horizontal"
        android:layout_marginBottom="8dp"
        android:background="@drawable/story_pill_toggle_background">

        <FrameLayout
            android:id="@+id/text_switch"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/story_pill_button_background"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toStartOf="@id/camera_switch"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent">

            <TextView
                android:id="@+id/camera_switch_mirror"
                android:layout_width="wrap_content"
                android:layout_height="36dp"
                android:layout_gravity="center"
                android:gravity="center"
                android:paddingHorizontal="18dp"
                android:text="@string/MediaSelectionActivity__camera"
                android:textAppearance="@style/TextAppearance.Signal.Body2"
                android:textColor="@color/story_pill_text_color"
                android:visibility="invisible" />

            <TextView
                android:id="@+id/text_switch_actual"
                android:layout_width="wrap_content"
                android:layout_height="36dp"
                android:layout_gravity="center"
                android:gravity="center"
                android:paddingHorizontal="18dp"
                android:text="@string/MediaSelectionActivity__text"
                android:textAppearance="@style/TextAppearance.Signal.Body2"
                android:textColor="@color/story_pill_text_color" />
        </FrameLayout>

        <FrameLayout
            android:id="@+id/camera_switch"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="2dp"
            android:layout_marginTop="2dp"
            android:layout_marginBottom="2dp"
            android:background="@drawable/story_pill_button_background"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@id/text_switch"
            app:layout_constraintTop_toTopOf="parent">

            <TextView
                android:id="@+id/text_switch_mirror"
                android:layout_width="wrap_content"
                android:layout_height="36dp"
                android:layout_gravity="center"
                android:gravity="center"
                android:paddingHorizontal="18dp"
                android:text="@string/MediaSelectionActivity__text"
                android:textAppearance="@style/TextAppearance.Signal.Body2"
                android:textColor="@color/story_pill_text_color"
                android:visibility="invisible" />

            <TextView
                android:id="@+id/camera_switch_actual"
                android:layout_width="wrap_content"
                android:layout_height="36dp"
                android:layout_gravity="center"
                android:gravity="center"
                android:paddingHorizontal="18dp"
                android:text="@string/MediaSelectionActivity__camera"
                android:textAppearance="@style/TextAppearance.Signal.Body2"
                android:textColor="@color/story_pill_text_color" />
        </FrameLayout>

    </androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>