<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
    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.support.v4.widget.DrawerLayout
        android:id="@+id/drawer_layout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@drawable/bg3"
        tools:openDrawer="left">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="#80000000"
            android:orientation="vertical">
        </LinearLayout>

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

            <android.support.v7.widget.RecyclerView
                android:id="@+id/grid_cards"
                android:layout_width="match_parent"
                android:layout_height="match_parent"/>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="bottom"
                android:layout_marginBottom="2dp"
                android:layout_marginLeft="10dp"
                android:orientation="horizontal"
                android:weightSum="1">

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/deck_name"
                    android:textColor="@color/holo_blue_light" />

                <android.support.v7.widget.AppCompatSpinner
                    android:id="@+id/toolbar_list"
                    android:layout_width="0dp"
                    android:layout_height="@dimen/item_height"
                    android:layout_weight="1" />

                <ImageView
                    android:id="@+id/btn_nav_list"
                    android:layout_width="42dp"
                    android:layout_height="42dp"
                    android:layout_marginLeft="2dp"
                    android:layout_marginRight="2dp"
                    android:layout_gravity="center_vertical"
                    android:src="@drawable/listicon"/>

                <ImageView
                    android:id="@+id/btn_nav_search"
                    android:layout_width="42dp"
                    android:layout_height="42dp"
                    android:layout_marginLeft="2dp"
                    android:layout_marginRight="2dp"
                    android:layout_gravity="center_vertical"
                    android:src="@drawable/search"/>

                <com.nightonke.boommenu.BoomMenuButton
                    android:id="@+id/bmb"
                    android:layout_width="60dp"
                    android:layout_height="48dp"
                    android:layout_gravity="center_vertical"
                    android:background="@drawable/buttonfunction"
                    app:bmb_buttonEnum="textOutsideCircle"
                    app:bmb_buttonPlaceEnum="buttonPlace_sc_9_1"
                    app:bmb_dimColor="#80000000"
                    app:bmb_normalColor="@android:color/transparent"
                    app:bmb_piecePlaceEnum="piecePlace_dot_9_1">

                    <ImageView
                        android:id="@+id/cube2"
                        android:layout_width="35dp"
                        android:layout_height="35dp"
                        android:layout_gravity="center"
                        app:srcCompat="@drawable/cube" />
                </com.nightonke.boommenu.BoomMenuButton>
            </LinearLayout>
        </FrameLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_gravity="left"
            android:background="@drawable/left"
            android:orientation="vertical"
            android:paddingLeft="4dp"
            android:paddingRight="4dp"
            android:paddingTop="2dp">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="4dp"
                android:layout_marginRight="30dp"
                android:layout_marginTop="10dp"
                android:orientation="horizontal"
                android:paddingLeft="20dp">

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical"
                    android:text="@string/label_limitlist"
                    android:textColor="@color/holo_blue_light"/>
                <android.support.v7.widget.AppCompatSpinner
                    android:id="@+id/sp_limit_list"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/item_height"
                    app:popupTheme="@style/AppTheme.PopupOverlay.Bule"
                    />
            </LinearLayout>

            <com.tubb.smrv.SwipeMenuRecyclerView
                android:id="@+id/list_cards"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:divider="@android:color/transparent"
                android:dividerHeight="4dp"
                android:padding="2dp"
                android:scrollbars="none"/>
        </LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_gravity="right"
            android:background="@android:color/transparent"
            android:orientation="vertical">

            <include
                android:id="@+id/nav_view_list"
                layout="@layout/nav_card_search"/>
        </LinearLayout>
    </android.support.v4.widget.DrawerLayout>

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