<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/overlayTextContainer"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_above="@+id/confirmationButtons"
    android:gravity="center">

    <TextView
        android:id="@+id/mainText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_marginLeft="@dimen/onfido_confirmation_buttons_activity_horizontal_margin"
        android:layout_marginRight="@dimen/onfido_confirmation_buttons_activity_horizontal_margin"
        android:gravity="center"
        android:layout_marginBottom="@dimen/onfido_capture_instructions_inner_margin"
        android:includeFontPadding="false"
        android:lineSpacingExtra="@dimen/onfido_fs_title_small_dp"
        android:textColor="@color/onfido_white"
        android:textSize="@dimen/onfido_fs_title_small_dp"
        tools:text="Front of license" />

    <TextView
        android:id="@+id/secondaryText"
        android:ellipsize="end"
        style="@style/OnfidoTextStyle.Body.Regular"
        android:layout_below="@+id/mainText"
        android:layout_centerHorizontal="true"
        android:layout_marginLeft="@dimen/onfido_confirmation_buttons_activity_horizontal_margin"
        android:layout_marginRight="@dimen/onfido_confirmation_buttons_activity_horizontal_margin"
        android:gravity="center"
        android:textColor="@color/onfido_white"
        tools:text="Position the front of your license in the frame" />

</RelativeLayout>