<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" xmlns:app="http://schemas.android.com/apk/res-auto">

    <at.nineyards.anyline.modules.document.DocumentScanView
            android:id="@+id/document_scan_view"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:api_2_enabled="false"
    />

    <ImageView
            android:id="@+id/image_result"
            android:layout_width="100dp"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_alignParentRight="true"
            android:adjustViewBounds="true"/>

    <ImageView
            android:id="@+id/full_image"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_alignParentBottom="true"
            android:layout_alignParentLeft="true"
            android:adjustViewBounds="true"/>

    <FrameLayout
            android:id="@+id/error_message_layout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            android:visibility="gone"
            tools:visibility="visible"
    >

        <TextView
                android:id="@+id/error_message"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:padding="16dp"
                android:textColor="@android:color/primary_text_dark"
                android:gravity="center"
                android:layout_margin="24dp"
                android:layout_gravity="center"
                android:background="@android:color/background_dark"
                tools:text="Error: image to dark! but I am very very very long and you can not read me" />

    </FrameLayout>
</RelativeLayout>
