<FrameLayout 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">

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

        <android.support.v7.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            android:background="@color/colorPrimary">

            <EditText
                android:id="@+id/search"
                android:layout_width="fill_parent"
                android:layout_height="48dp"
                android:layout_alignParentLeft="true"
                android:layout_alignParentTop="true"
                android:background="@null"
                android:dropDownHeight="0dp"
                android:fontFamily="sans-serif"
                android:hint="Search"
                android:imeOptions="actionSearch"
                android:inputType="textNoSuggestions"
                android:paddingBottom="8dp"
                android:paddingLeft="8dp"
                android:paddingRight="50dp"
                android:paddingTop="8dp"
                android:selectAllOnFocus="true"
                android:singleLine="true"
                android:textColor="@color/primaryTextColor"
                android:textColorHint="@color/primaryTextColor"/>

            <TextView
                android:id="@+id/settings_title"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_alignParentLeft="true"
                android:layout_centerVertical="true"
                android:fontFamily="sans-serif-light"
                android:paddingLeft="8dp"
                android:paddingRight="76dp"
                android:text="Settings"
                android:visibility="gone" />

            <ImageButton
                android:id="@+id/index_icon"
                android:layout_width="48dp"
                android:layout_height="48dp"
                android:layout_alignParentRight="true"
                android:background="@android:color/transparent"
                android:contentDescription="index"
                android:cropToPadding="true"
                android:padding="12dp"
                android:scaleType="fitXY"
                android:src="@drawable/dept_menu" />

            <ImageButton
                android:id="@+id/map_icon"
                android:layout_width="48dp"
                android:layout_height="48dp"
                android:layout_alignParentRight="true"
                android:background="@android:color/transparent"
                android:contentDescription="map"
                android:cropToPadding="true"
                android:padding="12dp"
                android:scaleType="fitXY"
                android:src="@drawable/dept_menu_off"
                android:visibility="gone" />

            <ImageButton
                android:id="@+id/remove_icon"
                android:layout_width="48dp"
                android:layout_height="48dp"
                android:layout_alignParentRight="true"
                android:background="@android:color/transparent"
                android:contentDescription="remove"
                android:padding="8dp"
                android:src="@drawable/ic_action_remove"
                android:visibility="gone" />

        </android.support.v7.widget.Toolbar>

        <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/drawer_layout"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:tools="http://schemas.android.com/tools"
                android:id="@+id/main_container"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@android:color/darker_gray"
                tools:context="com.mrane.campusmap.MainActivity"
                tools:ignore="MergeRootFrame"
                android:focusable="true"
                android:focusableInTouchMode="true">

                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:focusable="true"
                    android:focusableInTouchMode="true"></LinearLayout>

                <com.mrane.navigation.SlidingUpPanelLayout xmlns:sothree="http://schemas.android.com/apk/res-auto"
                    android:id="@+id/sliding_layout"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:gravity="bottom">

                    <!-- MAIN CONTENT -->

                    <com.mrane.zoomview.CampusMapView
                        android:id="@+id/campusMapView"
                        android:layout_width="match_parent"
                        android:layout_height="fill_parent"
                        android:paddingTop="48dp" />

                    <!-- SLIDING LAYOUT -->
                    <include layout="@layout/map_card_layout" />

                </com.mrane.navigation.SlidingUpPanelLayout>

                <RelativeLayout
                    android:id="@+id/fragment_container"
                    android:layout_width="match_parent"
                    android:layout_height="fill_parent"
                    android:layout_alignParentTop="true"
                    android:orientation="vertical"></RelativeLayout>
            </RelativeLayout>

        </android.support.v4.widget.DrawerLayout>
    </LinearLayout>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:gravity="center"
        android:id="@+id/loadingPanel">

        <ProgressBar
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:indeterminate="true" />
    </RelativeLayout>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <android.support.design.widget.FloatingActionButton
            android:id="@+id/locate_fab"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_alignParentRight="true"
            android:layout_marginBottom="96dp"
            android:layout_marginRight="8dp"
            android:src="@drawable/ic_my_location_black_24dp"
            android:tint="@android:color/black" />
    </RelativeLayout>

</FrameLayout>