Android: ListView wont scroll when drawer is added
<p>I try to add a custom <code>Navigation Drawer</code> to an <code>Activity</code> with a <code>ListView</code>.
Before I added the <code>Navigation Drawer</code>, the <code>ListView</code> could be scrolled and you could select items, but when I added the drawer it doesn't do it anymore.
When I add the <code>ListView</code> above the <code>Navigation Drawer</code>, the <code>Navigation Drawer</code> works.
But when I put the <code>ListView</code> under it, the <code>Navigation Drawer</code> doesn't work.</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;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:fitsSystemWindows="true"
    tools:context="com.theoryx.androidapp.Search"&gt;

    &lt;android.support.design.widget.CoordinatorLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        android:id="@+id/snackbarPosition"&gt;
    &lt;/android.support.design.widget.CoordinatorLayout&gt;

    &lt;android.support.design.widget.AppBarLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:theme="@style/AppTheme.AppBarOverlay"&gt;

        &lt;android.support.v7.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            android:background="?attr/colorPrimary"
            app:popupTheme="@style/AppTheme.PopupOverlay" /&gt;

    &lt;/android.support.design.widget.AppBarLayout&gt;

//&lt;include layout="@layout/content_my_library" /&gt;  //&lt;----here   

    &lt;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"&gt;

        &lt;ListView
            android:id="@+id/navList"
            android:layout_width="200dp"
            android:layout_marginTop="55dp"
            android:layout_height="match_parent"
            android:layout_gravity="left|start"
            android:background="#ffffff"/&gt;
    &lt;/android.support.v4.widget.DrawerLayout&gt;

    &lt;include layout="@layout/content_my_library" /&gt; //when I put this above it the drawer works but then the listview doesn't scroll and cant be selected.

&lt;/android.support.design.widget.CoordinatorLayout&gt;
</code></pre>

<p><strong>Content_my_library:</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout 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:padding="0dp"
    android:background="@color/white"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    tools:context="com.theoryx.androidapp.MyLibrary"
    tools:showIn="@layout/activity_my_library"&gt;

    &lt;ListView
        android:id="@+id/list"
        android:layout_height="wrap_content"
        android:layout_width="match_parent"&gt;
    &lt;/ListView&gt;

&lt;/RelativeLayout&gt;
</code></pre>