<?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:id="@+id/root"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:animateLayoutChanges="true"
    android:background="@drawable/onfido_autoplay_video_view_background"
    android:foreground="@drawable/onfido_autoplay_video_view_foreground">

    <com.onfido.android.sdk.capture.ui.camera.liveness.intro.error.LoadingErrorState
        android:id="@+id/loadingErrorState"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:visibility="invisible" />

    <com.onfido.android.sdk.capture.ui.widget.LoadingView
        android:id="@+id/progressBar"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        app:onfidoText="@string/onfido_liveness_intro_loading_video" />

    <TextureView
        android:id="@+id/videoPlayer"
        android:visibility="invisible"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center" />
</FrameLayout>