<?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"
    android:animateLayoutChanges="true"
    android:background="@color/onfido_white">

    <com.onfido.android.sdk.capture.ui.widget.ShadowedScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@+id/logo"
        android:layout_alignParentTop="true"
        android:fillViewport="true">

        <LinearLayout
            android:id="@+id/descriptionContainer"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">

            <TextView
                android:id="@+id/title"
                style="@style/OnfidoTextStyle.Title.Large"
                android:layout_marginLeft="@dimen/onfido_activity_horizontal_margin"
                android:layout_marginTop="@dimen/onfido_liveness_intro_title_margin_top"
                android:layout_marginRight="@dimen/onfido_activity_horizontal_margin"
                android:text="@string/onfido_welcome_view_title" />

            <TextView
                android:id="@+id/subtitle"
                style="@style/OnfidoTextStyle.Body.Compact"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="@dimen/onfido_activity_horizontal_margin"
                android:layout_marginTop="12dp"
                android:layout_marginRight="@dimen/onfido_activity_horizontal_margin"
                android:text="@string/onfido_welcome_view_time"
                android:textColor="@color/onfido_dark_300" />

            <View
                android:layout_width="match_parent"
                android:layout_height="@dimen/onfido_liveness_intro_separator_height"
                android:layout_marginLeft="@dimen/onfido_activity_horizontal_margin"
                android:layout_marginTop="@dimen/onfido_liveness_intro_separator_margin_vertical"
                android:layout_marginRight="@dimen/onfido_activity_horizontal_margin"
                android:layout_marginBottom="@dimen/onfido_liveness_intro_separator_margin_vertical"
                android:background="@color/onfido_light_400" />

            <LinearLayout
                android:id="@+id/stepsContainer"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="@dimen/onfido_activity_horizontal_margin"
                android:layout_marginRight="@dimen/onfido_activity_horizontal_margin"
                android:orientation="vertical" />

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent">

                <com.onfido.android.sdk.capture.ui.camera.liveness.intro.AutoPlayVideoView
                    android:id="@+id/videoView"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_centerInParent="true"
                    android:contentDescription="@string/onfido_accessibility_liveness_video_example"
                    android:layout_marginLeft="@dimen/onfido_liveness_intro_video_margin_horiz"
                    android:layout_marginTop="@dimen/onfido_liveness_intro_video_margin_vertical"
                    android:layout_marginRight="@dimen/onfido_liveness_intro_video_margin_horiz"
                    android:layout_marginBottom="@dimen/onfido_liveness_intro_video_margin_vertical"
                    android:animateLayoutChanges="true" />

            </RelativeLayout>

        </LinearLayout>

    </com.onfido.android.sdk.capture.ui.widget.ShadowedScrollView>

    <ImageView
        android:id="@+id/logo"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@+id/next"
        android:layout_centerHorizontal="true"
        android:tint="@color/onfido_watermark_color_grey"
        app:srcCompat="@drawable/onfido_ic_watermark" />

    <com.onfido.android.sdk.capture.ui.widget.Button
        android:id="@+id/next"
        style="@style/OnfidoFlatButton"
        app:onfidoButtonText="@string/onfido_continue" />

</RelativeLayout>