<?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"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true">

    <android.support.design.widget.CoordinatorLayout
        android:id="@+id/coordinatorLayout"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <android.support.design.widget.AppBarLayout
            android:id="@+id/appbar"
            xmlns:android="http://schemas.android.com/apk/res/android"
            xmlns:app="http://schemas.android.com/apk/res-auto"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:theme="?android:toolbarStyle">

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

            <android.support.v7.widget.Toolbar
                android:id="@+id/toolbar"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?colorPrimary"
                android:minHeight="?actionBarSize"
                android:theme="?android:toolbarStyle">

                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:gravity="center"
                    android:orientation="horizontal"
                    android:padding="@dimen/spacing_normal">

                    <com.fastaccess.ui.widgets.FontTextView
                        android:id="@+id/changes"
                        style="@style/TextAppearance.AppCompat.Small"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center|end"
                        android:layout_marginEnd="@dimen/spacing_xs_large"
                        android:background="?selectableItemBackgroundBorderless"
                        android:drawablePadding="@dimen/spacing_micro"
                        android:drawableTop="@drawable/ic_file_multi"
                        android:gravity="center"
                        tools:text="100"/>

                    <com.fastaccess.ui.widgets.FontTextView
                        android:id="@+id/addition"
                        style="@style/TextAppearance.AppCompat.Small"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center|end"
                        android:layout_marginEnd="@dimen/spacing_xs_large"
                        android:background="?selectableItemBackgroundBorderless"
                        android:drawablePadding="@dimen/spacing_micro"
                        android:drawableTop="@drawable/ic_add"
                        android:gravity="center"
                        android:scaleType="centerCrop"
                        tools:text="100"/>

                    <com.fastaccess.ui.widgets.FontTextView
                        android:id="@+id/deletion"
                        style="@style/TextAppearance.AppCompat.Small"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center|end"
                        android:background="?selectableItemBackgroundBorderless"
                        android:drawablePadding="@dimen/spacing_micro"
                        android:drawableTop="@drawable/ic_clear"
                        android:gravity="center"
                        tools:text="100"/>
                </LinearLayout>
            </android.support.v7.widget.Toolbar>

            <android.support.design.widget.TabLayout
                android:id="@+id/tabs"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?colorPrimary"
                app:tabSelectedTextColor="?colorAccent"
                app:tabTextColor="?android:textColorTertiary"/>
        </android.support.design.widget.AppBarLayout>

        <com.fastaccess.ui.widgets.ViewPagerView
            android:id="@+id/pager"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:layout_behavior="@string/scroll_behavior"/>

        <android.support.design.widget.FloatingActionButton
            android:id="@+id/fab"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="end|bottom"
            android:layout_margin="@dimen/fab_margin"
            android:src="@drawable/ic_comment"
            android:tint="@color/white"
            app:fabSize="auto"/>

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

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