<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".idcard_captor.view_controller.SampleIdcardCaptorMainActivity">
    <RelativeLayout
        android:id="@+id/oliveapp_face_captureLayout"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_alignParentBottom="true"
        android:layout_alignParentTop="true"
        android:visibility="visible">

        <RelativeLayout
            android:id="@+id/oliveapp_face_previewLayout"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_alignParentBottom="true"
            android:layout_alignParentLeft="true"
            android:layout_alignParentRight="true"
            android:layout_alignParentTop="true">

            <view
                android:id="@+id/oliveapp_face_cameraPreviewView"
                class="com.oliveapp.camerasdk.ui.CameraRootView"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_centerInParent="true"/>

        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/oliveapp_face_captureIDCardHintLayout"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:visibility="visible">

            <ImageView
                android:id="@+id/oliveapp_face_idcardSkeletonImageView"
                android:layout_width="252dp"
                android:layout_height="400dp"
                android:adjustViewBounds="true"
                android:scaleType="fitXY"
                android:src="@drawable/oliveapp_face_idcard_shade_skeleton_minimum3"
                android:layout_centerInParent="true" />

            <ImageView
                android:id="@+id/oliveapp_face_scan_line"
                android:layout_width="wrap_content"
                android:layout_height="400dp"
                android:adjustViewBounds="true"
                android:scaleType="fitXY"
                android:src="@drawable/oliveapp_scan_line"/>

            <ImageView
                android:id="@+id/oliveapp_face_shadowLeftImageView"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_alignParentBottom="true"
                android:layout_alignParentLeft="true"
                android:layout_alignParentTop="true"
                android:layout_toLeftOf="@+id/oliveapp_face_idcardSkeletonImageView"
                android:layout_toStartOf="@+id/oliveapp_face_idcardSkeletonImageView"
                android:scaleType="fitXY"
                android:src="@drawable/oliveapp_face_black_shadow" />

            <ImageView
                android:id="@+id/oliveapp_face_shadowRightImageView"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_alignParentLeft="false"
                android:layout_alignParentRight="true"
                android:layout_toEndOf="@+id/oliveapp_face_idcardSkeletonImageView"
                android:layout_toRightOf="@+id/oliveapp_face_idcardSkeletonImageView"
                android:scaleType="fitXY"
                android:src="@drawable/oliveapp_face_black_shadow" />

            <ImageView
                android:id="@+id/oliveapp_face_shadowTopImageView"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_alignParentTop="true"
                android:layout_toLeftOf="@+id/oliveapp_face_shadowRightImageView"
                android:layout_toRightOf="@+id/oliveapp_face_shadowLeftImageView"
                android:adjustViewBounds="false"
                android:baselineAlignBottom="false"
                android:scaleType="fitXY"
                android:src="@drawable/oliveapp_face_black_shadow"
                android:layout_above="@+id/oliveapp_face_idcardSkeletonImageView" />

            <ImageView
                android:id="@+id/oliveapp_face_shadowBottomImageView"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_alignParentBottom="true"
                android:layout_toLeftOf="@+id/oliveapp_face_shadowRightImageView"
                android:layout_toRightOf="@+id/oliveapp_face_shadowLeftImageView"
                android:scaleType="fitXY"
                android:src="@drawable/oliveapp_face_black_shadow"
                android:layout_below="@+id/oliveapp_face_idcardSkeletonImageView" />

            <com.oliveapp.libcommon.uicomponents.VerticalTextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:id="@+id/oliveapp_face_hintTextView"
                android:layout_centerVertical="true"
                android:layout_alignParentLeft="true"
                android:layout_alignParentStart="true"
                android:text="@string/oliveapp_face_database_image_hint_front"
                android:textColor="#ffffff"
                android:layout_marginLeft="5dp" />

        </RelativeLayout>
    </RelativeLayout>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="invisible">
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/oliveapp_frame_rate_text"
            android:text="FPS: "/>
    </RelativeLayout>

    <!--<RelativeLayout-->
        <!--android:id="@+id/oliveapp_face_takePictureButtonLayout"-->
        <!--android:layout_width="fill_parent"-->
        <!--android:layout_height="64dp"-->
        <!--android:layout_alignParentBottom="true"-->
        <!--android:layout_alignParentLeft="true"-->
        <!--android:layout_alignParentRight="true"-->
        <!--android:layout_alignParentStart="true"-->
        <!--android:layout_centerHorizontal="true"-->
        <!--android:background="@drawable/oliveapp_face_black_shadow">-->
    <ImageButton
        android:id="@+id/oliveapp_face_takePictureButton"
        style="?android:attr/borderlessButtonStyle"
        android:layout_height="64dp"
        android:layout_width="wrap_content"
        android:clickable="true"
        android:src="@drawable/oliveapp_camera_alt_white_48dp"
        android:scaleType="fitCenter"
        android:layout_alignParentBottom="true"
        android:layout_centerInParent="true"
        android:visibility="invisible"/>
    <!--</RelativeLayout>-->


</RelativeLayout>
