<?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"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/onfido_white"
    android:orientation="vertical">

    <com.onfido.android.sdk.capture.ui.widget.ShadowedScrollView
        android:id="@+id/scrollView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_above="@+id/enable"
        android:layout_alignParentTop="true"
        android:paddingBottom="@dimen/onfido_shadowed_scroll_view_margin_bottom">

        <LinearLayout
            android:id="@+id/descriptionContainer"
            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">

            <TextView
                android:id="@+id/title"
                style="@style/OnfidoTextStyle.Title.Large"
                android:layout_marginTop="@dimen/onfido_permissions_request_title_margin_top"
                android:layout_marginBottom="@dimen/onfido_permissions_request_title_margin_bottom"
                tools:text="@string/onfido_enable_camera_mic" />

            <TextView
                android:id="@+id/requestSubtitle"
                style="@style/OnfidoTextStyle.Body.Compact"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginBottom="@dimen/onfido_permissions_request_subtitle_margin_bottom"
                tools:text="@string/onfido_welcome_view_time" />

            <com.onfido.android.sdk.capture.ui.BulletStepView
                android:id="@+id/requestBulletMessage"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="@dimen/onfido_permissions_request_tap_explanation_margin_bottom" />

            <ImageView
                android:layout_width="@dimen/onfido_permissions_request_image_width"
                android:layout_height="@dimen/onfido_permissions_request_image_height"
                android:layout_gravity="center_horizontal"
                android:layout_marginBottom="@dimen/onfido_permissions_request_image_margin_bottom"
                app:srcCompat="@drawable/onfido_permissions_popup" />

            <TextView
                android:id="@+id/requestDenyExplanation"
                style="@style/OnfidoTextStyle.Muted"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                tools:text="@string/onfido_allow_camera_mic_access_deny_explanation" />

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

    <com.onfido.android.sdk.capture.ui.widget.Button
        android:id="@+id/enable"
        style="@style/OnfidoFlatButton"
        android:layout_marginBottom="@dimen/onfido_permissions_request_action_margin_bottom" />
</RelativeLayout>