<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
    android:id="@+id/drawer"
    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:fitsSystemWindows="true">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <android.support.design.widget.CoordinatorLayout
            android:id="@+id/coordinatorLayout"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1">

            <include layout="@layout/header_title_with_toolbar"/>

            <include layout="@layout/fragment_container"/>

            <include layout="@layout/bottom_fab"/>

            <include layout="@layout/issues_bottom_navigation"/>

            <android.support.v7.widget.CardView
                android:id="@+id/filterLayout"
                android:layout_width="200dp"
                android:layout_height="wrap_content"
                android:layout_gravity="bottom|end"
                android:layout_margin="@dimen/fab_margin"
                android:visibility="gone"
                app:cardBackgroundColor="?card_background"
                app:cardCornerRadius="@dimen/spacing_normal"
                tools:visibility="visible">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="vertical">

                    <com.fastaccess.ui.widgets.FontTextView
                        android:id="@+id/add"
                        style="@style/TextAppearance.AppCompat.Title"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:background="?selectableItemBackground"
                        android:drawablePadding="@dimen/spacing_xs_large"
                        android:drawableStart="@drawable/ic_add"
                        android:padding="@dimen/spacing_xs_large"
                        android:text="@string/add"/>

                    <com.fastaccess.ui.widgets.FontTextView
                        android:id="@+id/search"
                        style="@style/TextAppearance.AppCompat.Title"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:background="?selectableItemBackground"
                        android:drawablePadding="@dimen/spacing_xs_large"
                        android:drawableStart="@drawable/ic_search"
                        android:padding="@dimen/spacing_xs_large"
                        android:text="@string/search"/>
                </LinearLayout>
            </android.support.v7.widget.CardView>


        </android.support.design.widget.CoordinatorLayout>

        <include layout="@layout/add_banner_layout"/>
    </LinearLayout>

    <include layout="@layout/nav_menu_layout"/>
</android.support.v4.widget.DrawerLayout>