<?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="match_parent">

    <RelativeLayout
        android:id="@+id/videoContainer"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@+id/firstAction"
        android:layout_marginLeft="@dimen/onfido_video_view_margin_horizontal"
        android:layout_marginTop="@dimen/onfido_video_view_margin_vertical"
        android:layout_marginRight="@dimen/onfido_video_view_margin_horizontal"
        android:layout_marginBottom="@dimen/onfido_video_view_margin_vertical">

        <com.onfido.android.sdk.capture.ui.camera.liveness.video_view.VideoPlayerView
            android:id="@+id/videoPlayerView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@drawable/onfido_video_view_frame" />

        <FrameLayout
            android:id="@+id/challengesContainer"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignBottom="@+id/videoPlayerView"
            android:layout_margin="@dimen/onfido_liveness_challenges_review_margin"
            android:background="@drawable/onfido_liveness_challenges_review_background"
            android:clickable="false" />

        <com.onfido.android.sdk.capture.audio.VolumeWarningView
            android:id="@+id/volumeView"
            android:layout_width="0dp"
            android:layout_height="0dp"
            android:layout_marginLeft="@dimen/onfido_audio_pill_margin"
            android:layout_marginRight="@dimen/onfido_audio_pill_margin"
            android:layout_marginTop="@dimen/onfido_audio_pill_margin" />

    </RelativeLayout>

    <com.onfido.android.sdk.capture.ui.widget.Button
        android:id="@+id/firstAction"
        style="@style/OnfidoFlatButton"
        android:layout_above="@+id/secondAction"
        android:layout_alignParentBottom="false"
        android:layout_marginBottom="@dimen/onfido_confirmation_buttons_middle_margin"
        app:onfidoButtonText="@string/onfido_submit_video" />

    <com.onfido.android.sdk.capture.ui.widget.Button
        android:id="@+id/secondAction"
        style="@style/OnfidoFlatButton"
        app:onfidoButtonType="secondary"
        app:onfidoButtonText="@string/onfido_retake_video" />

</RelativeLayout>