title: NestedScrollView with webView only scrolling NestedScrollView
body: <p>Below is my code to handle the correct behaviour of my apps actionBar/toolbar/tabBar and nestedScrollView with a ViewPager (webView) inside it. The ViewPager is basically a normal webView.</p>
  
  <p>Everything works fine except my ViewPager can't be scrolled vertically. Only the NestedScrollView is being scrolled. I want the same behaviour as the Facebook app, if you scroll the newsfeed (webView) the tabBar moves the toolbar out of vision vertically.</p>
  
  <blockquote>
     
  
  <pre><code>&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"
      tools:context=".ui.activity.FragmentContainer"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      &gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          &gt;
                  &lt;android.support.v7.widget.Toolbar
                      android:id="@+id/toolbar"
                      app:theme="@style/M.Toolbar"
                      app:popupTheme="@style/M.Toolbar.PopupTheme"
                      android:layout_width="match_parent"
                      android:layout_height="?attr/actionBarSize"
                      app:layout_scrollFlags="scroll|enterAlways"
                      &gt;
                  &lt;/android.support.v7.widget.Toolbar&gt;
  
          &lt;android.support.design.widget.TabLayout
              android:id="@+id/tabs"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              app:tabMode="scrollable"
              android:visibility="gone"
              android:background="@color/background"
              app:background="@color/background"
              /&gt;
  
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
      &lt;android.support.v4.widget.NestedScrollView
          android:layout_height="match_parent"
          android:layout_width="match_parent"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"
          android:background="@android:color/transparent"
          android:fillViewport="true"
          &gt;
  
      &lt;com.m.ui.util.EdgeScrollViewPager
          android:id="@+id/viewpager"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@android:color/transparent"
          android:visibility="visible"
          &gt;
  
      &lt;/com.m.ui.util.EdgeScrollViewPager&gt;
  
      &lt;/android.support.v4.widget.NestedScrollView&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  </blockquote>
  
  <p>So in order to be able to scroll my viewPager (webView) I added a new class which extends webView:</p>
  
  <blockquote>
    <p>public class TouchyWebView extends WebView {</p>
  
  <pre><code>    public TouchyWebView(Context context) {
          super(context);
      }
  
      public TouchyWebView(Context context, AttributeSet attrs) {
          super(context, attrs);
      }
  
      public TouchyWebView(Context context, AttributeSet attrs, int defStyle) {
          super(context, attrs, defStyle);
      }
  
      @Override
      public boolean onTouchEvent(MotionEvent event){
          requestDisallowInterceptTouchEvent(true);
          return super.onTouchEvent(event);
      }
  }
  </code></pre>
  </blockquote>
  
  <p>This solves the problem with the viewPager (webView) which becomes scrollable. BUT, the NestedScrollView becomes static and refuses to scroll the tabBar/toolbar vertically. So I am stuck with either scrolling the webView OR the tabBar-toolbar. How do I make both viewPager(webView) and NestedScrollView (tabBar/toolbar) scrollable at the same time ?</p>
  
  <p><strong>My webView</strong></p>
  
  <blockquote>
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@android:color/white"&gt;
  
      &lt;com.m.ui.base.TouchyWebView
          android:id="@+id/web_webview"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@android:color/transparent"
          android:visibility="visible" /&gt;
  
      &lt;LinearLayout
          android:id="@+id/web_loadingview"
          android:orientation="vertical"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:visibility="gone"
          android:layout_gravity="center"&gt;
  
          &lt;ProgressBar
              style="?android:attr/progressBarStyleLarge"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:indeterminate="true"
              android:visibility="visible"
              android:layout_gravity="center"/&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  </blockquote>
  
  <p>Regards</p>