title: ScrollView does not scroll in fragment
body: <p>I googled my problem and read similar questions in stackoverflow but I dont solve any way.</p>
  
  <p>I have a layout with coordinatorLayout (main.xml) and a fragment with relativeLayout (fragment.xml)</p>
  
  <blockquote>
    <p>main.xml</p>
  </blockquote>
  
  <p>
  </p>
  
  <pre><code>&lt;android.support.design.widget.AppBarLayout
      android:id="@+id/appbar"
      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:paddingRight="16dp"
          app:layout_scrollFlags="scroll|enterAlways"
          app:popupTheme="@style/AppTheme.PopupOverlay"&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="horizontal"&gt;
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:orientation="vertical"
                  android:layout_weight="1"&gt;
                  &lt;TextView
                      android:layout_width="match_parent"
                      android:layout_height="40dp"
                      android:text="FRAGMENT TITLE"
                      android:textSize="20sp"
                      android:textColor="@color/colorWhite"
                      android:id="@+id/main_toolbar_title"
                      android:gravity="center_vertical" /&gt;
              &lt;/LinearLayout&gt;
          &lt;/LinearLayout&gt;
      &lt;/android.support.v7.widget.Toolbar&gt;
  
      &lt;android.support.design.widget.TabLayout
          android:id="@+id/tabs"
          android:background="@color/colorWhite"
          android:layout_width="match_parent"
          android:layout_height="60dp" /&gt;
  &lt;/android.support.design.widget.AppBarLayout&gt;
  
  &lt;android.support.v4.view.ViewPager
      android:id="@+id/container"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:layout_behavior="@string/appbar_scrolling_view_behavior" /&gt;
  </code></pre>
  
  <p></p>
  
  <blockquote>
    <p>fragment.xml</p>
  </blockquote>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:padding="10dp"
  android:background="#f3f3f3"&gt;
  
  &lt;ScrollView
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical"&gt;
  
          &lt;android.support.v7.widget.CardView
              android:id="@+id/card_view"
              android:layout_gravity="center"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              card_view:contentPadding="1dp"
              card_view:cardCornerRadius="2dp"&gt;
  
              &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:orientation="vertical"&gt;
  
                  &lt;Button
                      android:layout_width="match_parent"
                      android:layout_height="66dp"
                      android:textAllCaps="false"
                      android:text="Button Title"
                      android:textSize="18sp"
                      android:textColor="#404040"/&gt;
                  &lt;Button
                      android:layout_width="match_parent"
                      android:layout_height="66dp"
                      android:textAllCaps="false"
                      android:text="Button Title"
                      android:textSize="18sp"
                      android:textColor="#404040"/&gt;
                  &lt;Button
                      android:layout_width="match_parent"
                      android:layout_height="66dp"
                      android:textAllCaps="false"
                      android:text="Button Title"
                      android:textSize="18sp"
                      android:textColor="#404040"/&gt;
                  &lt;Button
                      android:layout_width="match_parent"
                      android:layout_height="66dp"
                      android:textAllCaps="false"
                      android:text="Button Title"
                      android:textSize="18sp"
                      android:textColor="#404040"/&gt;
                  &lt;Button
                      android:layout_width="match_parent"
                      android:layout_height="66dp"
                      android:textAllCaps="false"
                      android:text="Button Title"
                      android:textSize="18sp"
                      android:textColor="#404040"/&gt;
                  &lt;Button
                      android:layout_width="match_parent"
                      android:layout_height="66dp"
                      android:textAllCaps="false"
                      android:text="Button Title"
                      android:textSize="18sp"
                      android:textColor="#404040"/&gt;
                  &lt;Button
                      android:layout_width="match_parent"
                      android:layout_height="66dp"
                      android:textAllCaps="false"
                      android:text="Button Title"
                      android:textSize="18sp"
                      android:textColor="#404040"/&gt;
                  &lt;Button
                      android:layout_width="match_parent"
                      android:layout_height="66dp"
                      android:textAllCaps="false"
                      android:text="Button Title"
                      android:textSize="18sp"
                      android:textColor="#404040"/&gt;
  
              &lt;/LinearLayout&gt;
          &lt;/android.support.v7.widget.CardView&gt;
      &lt;/LinearLayout&gt;
  &lt;/ScrollView&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>As you have seen, I have more buttons in scrollView but not scrolling. The ui elements in view pager, I first thought it was because of view pager but I have test it test_fragment.xml, it works perfectly.</p>
  
  <p>scrollView scrolls when I press and hold out of view pager (ex. My First Tab)
   and move finger up/down </p>
  
  <blockquote>
    <p>test_fragment.xml</p>
  </blockquote>
  
  <pre><code>&lt;android.support.design.widget.CoordinatorLayout
  android:id="@+id/quickreturn_coordinator"
  android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  
  &lt;android.support.v7.widget.RecyclerView
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:layout_behavior="@string/appbar_scrolling_view_behavior" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>What is the problem? </p>
  
  <p>Thanks in advance.</p>