title: ListView in BottomSheet not scrolling
body: <p>Writing for Android API 23 and above (testing on API 24 and 25).</p>
  
  <p>I have written an XML which attempts to put a ListView inside of a BottomSheet. When I attempt to scroll my ListView (in any direction) the BottomSheet scrolls rather than the ListView.</p>
  
  <p>I've tried the following workaround without any success:</p>
  
  <blockquote>
    <p><a href="https://stackoverflow.com/questions/40570985/listview-in-bottomsheet">ListView in BottomSheet</a></p>
  </blockquote>
  
  <p>My XML layout file is as follows:</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"
      android:id="@+id/main_content"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"&gt;
  
      &lt;RelativeLayout 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"&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical"&gt;
  
              &lt;Button
                  android:id="@+id/refresh_button"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:onClick="onButtonPress"
                  android:text="@string/refresh_button" /&gt;
  
              &lt;RelativeLayout
                  android:id="@+id/map_container"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_weight="1"&gt;
  
                  &lt;fragment
                      android:id="@+id/map_fragment"
                      android:name="com.google.android.gms.maps.MapFragment"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent" /&gt;
  
                  &lt;android.support.design.widget.FloatingActionButton
                      android:id="@+id/floating_action_button"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_alignParentBottom="true"
                      android:layout_alignParentRight="true"
                      android:layout_marginBottom="15dp"
                      android:layout_marginRight="15dp"
                      android:clickable="true"
                      app:srcCompat="@android:drawable/ic_menu_mylocation" /&gt;
  
              &lt;/RelativeLayout&gt;
  
          &lt;/LinearLayout&gt;
  
      &lt;/RelativeLayout&gt;
  
      &lt;android.support.v4.widget.NestedScrollView
          android:id="@+id/bottom_sheet"
          android:layout_width="match_parent"
          android:layout_height="400dp"
          android:background="?android:attr/windowBackground"
          android:clipToPadding="true"
          android:fillViewport="true"
          app:layout_behavior="android.support.design.widget.BottomSheetBehavior"&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical"&gt;
  
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:background="@color/colorPrimary"
                  android:orientation="horizontal"&gt;
  
                  &lt;TextView
                      android:id="@+id/textView11"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:layout_weight="1"
                      android:padding="16dp"
                      android:text="Stations"
                      android:textColor="#ffffff"
                      android:textSize="24sp" /&gt;
  
              &lt;/LinearLayout&gt;
  
              &lt;com.example.nicsutherland.stationfinder.Adapters.BottomSheetListView
                  android:id="@+id/list_view"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"/&gt;
  
          &lt;/LinearLayout&gt;
  
      &lt;/android.support.v4.widget.NestedScrollView&gt;
  
      &lt;FrameLayout
          android:id="@+id/fragment_container"
          android:layout_width="match_parent"
          android:layout_height="match_parent" /&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>My java class contains the following code in the onCreate() method:</p>
  
  <pre><code>View bottomSheet = findViewById( R.id.bottom_sheet );
  mBottomSheetBehavior = BottomSheetBehavior.from(bottomSheet);
  mBottomSheetBehavior.setPeekHeight(300);
  </code></pre>
  
  <p>How can I get to a point where my ListView will scroll independently of my BottomSheet?</p>