<?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="com.sharefaith.thesharefaithapp.ui.SFBibleActivity">

    <include layout="@layout/sf_nav_frame"
             android:id="@+id/navMenuContainer"
            />

    <ListView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:id="@+id/mainNavListView"
        android:layout_gravity="left|top"
        android:clickable="true"
        android:divider="#00ffffff"
        android:smoothScrollbar="false"
        android:background="@color/sf_background_menu"
        android:listSelector="#00ffffff"
        android:cacheColorHint="#00ffffff"
        android:visibility="visible"
        android:paddingTop="10dp"
        android:paddingLeft="6dp"
        android:layout_below="@+id/navMenuContainer"/>

    <include layout="@layout/sf_refresh_frame"
             android:id="@+id/refreshContainer"/>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/slide_right"
        android:layout_below="@+id/navMenuContainer"
        android:background="#ffffff">

        <com.sharefaith.thesharefaithapp.base.SFBibleWebView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:id="@+id/bible_webview"
            />

        <TextView
            android:layout_width="match_parent"
            android:layout_height="50dp"
            android:id="@+id/top_gradient"
            android:layout_alignTop="@+id/bible_webview"
            android:background="@drawable/sf_border_fade_top_theme1"/>

        <TextView
            android:layout_width="match_parent"
            android:layout_height="50dp"
            android:id="@+id/bottom_gradiant"
            android:background="@drawable/sf_border_fade_bottom_theme1"
            android:layout_alignBottom="@+id/bible_webview"/>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="120dp"
            android:layout_alignParentBottom="true"
            android:orientation="horizontal"
            android:background="@color/sf_background_default"
            android:id="@+id/footer">

            <RelativeLayout
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="0.5"
                android:layout_marginTop="1dp"
                android:layout_marginRight="1dp"
                android:layout_marginBottom="1dp"
                android:id="@+id/listen_button"
                android:visibility="visible"
                android:background="@color/sf_background_menu">

                <TextView
                    android:layout_width="200dp"
                    android:layout_height="match_parent"
                    android:text="@string/listen_button"
                    android:id="@+id/listen_textView"
                    android:background="#000000"
                    android:fontFamily="Open Sans"
                    android:gravity="center"
                    android:textSize="@dimen/sf_bible_menu_font_size"
                    android:textColor="#ffffff"
                    android:paddingLeft="20dp"
                    android:layout_centerHorizontal="true"/>

                <ImageView
                    android:layout_width="40dp"
                    android:layout_height="40dp"
                    android:id="@+id/listen_imageView"
                    android:layout_centerVertical="true"
                    android:src="@drawable/sf_control_microphone"
                    android:layout_alignLeft="@+id/listen_textView"/>
            </RelativeLayout>

            <RelativeLayout
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="0.5"
                android:layout_marginTop="1dp"
                android:layout_marginBottom="1dp"
                android:id="@+id/settings_button"
                android:background="@color/sf_background_menu">

                <TextView
                    android:layout_width="200dp"
                    android:layout_height="match_parent"
                    android:text="@string/settings_button"
                    android:id="@+id/settings_textView"
                    android:background="#000000"
                    android:fontFamily="Open Sans"
                    android:gravity="center"
                    android:textSize="@dimen/sf_bible_menu_font_size"
                    android:textColor="#ffffff"
                    android:paddingLeft="20dp"
                    android:layout_centerHorizontal="true"/>

                <ImageView
                    android:layout_width="40dp"
                    android:layout_height="40dp"
                    android:id="@+id/setting_imageView"
                    android:src="@drawable/sf_control_gear"
                    android:layout_centerVertical="true"
                    android:layout_alignLeft="@+id/settings_textView"
                    />
            </RelativeLayout>

        </LinearLayout>

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/arrows_container"
            android:layout_marginBottom="10dp"
            android:layout_above="@+id/footer">

            <ImageView
                android:layout_width="70dp"
                android:layout_height="70dp"
                android:id="@+id/left_arrow"
                android:background="@drawable/sf_arrow_background"
                android:layout_marginBottom="15dp"
                android:layout_marginLeft="5dp"
                android:padding="15dp"
                android:src="@drawable/sf_arrow_left"
                android:layout_centerVertical="true"
                android:paddingLeft="11dp"
                android:paddingTop="15dp"
                android:paddingRight="15dp"
                android:paddingBottom="15dp"/>

            <ImageView
                android:layout_width="85dp"
                android:layout_height="85dp"
                android:id="@+id/play_bible"
                android:background="@drawable/sf_arrow_background"
                android:visibility="visible"
                android:layout_alignParentBottom="false"
                android:layout_alignParentTop="false"
                android:paddingLeft="18dp"
                android:paddingTop="18dp"
                android:paddingRight="18dp"
                android:paddingBottom="18dp"
                android:layout_centerInParent="true"/>

            <ImageView
                android:layout_width="70dp"
                android:layout_height="70dp"
                android:id="@+id/right_arrow"
                android:background="@drawable/sf_arrow_background"
                android:layout_marginBottom="15dp"
                android:layout_marginRight="5dp"
                android:layout_alignParentRight="true"
                android:layout_alignParentBottom="false"
                android:src="@drawable/sf_arrow_right"
                android:layout_centerVertical="true"
                android:paddingLeft="15dp"
                android:paddingTop="15dp"
                android:paddingRight="11dp"
                android:paddingBottom="15dp"/>

        </RelativeLayout>

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:id="@+id/settings"
            android:clickable="true"
            android:visibility="gone">

            <include layout="@layout/sf_size_frame"
                     android:id="@+id/size_container"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"/>

            <include layout="@layout/sf_fonts_frame"
                     android:id="@+id/fonts_container"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     android:layout_below="@+id/size_container"/>

            <include layout="@layout/sf_theme_frame"
                     android:id="@+id/theme_container"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:layout_below="@+id/fonts_container"/>

            <TextView
                android:layout_width="match_parent"
                android:layout_height="120dp"
                android:text="DONE"
                android:id="@+id/done"
                android:gravity="center"
                android:background="#54a500"
                android:textSize="@dimen/sf_bible_menu_font_size"
                android:textStyle="bold"
                android:fontFamily="Open Sans"
                android:layout_below="@+id/theme_container"
                android:textColor="#ffffff"/>

        </RelativeLayout>

        <ListView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/bible_version_listView"
            android:visibility="gone"
            android:background="@color/sf_background_menu"/>

        <ListView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:id="@+id/book_select_listView"
            android:visibility="gone"
            android:background="#ffffff"/>

    </RelativeLayout>

</RelativeLayout>
