title: How can I modify the SwipeRefreshLayout swipe behavior when within a TabLayout
body: <p>I'm using the android.support.design.widget.TabLayout within a SwipeRefreshLayout and I'm noticing that if my horizontal swipes have any slight downward change that the SwipeRefreshLayout is handled before the horizontal pager swipe. At the moment it's kind of hard to swipe the view pager because of this.</p>
  
  <p>I'd like to modify the SwipeRefresh to respond only when the swipe is more vertical so that horizontal swiping is easier. Or maybe there is a better way to approach this?</p>
  
  <p>This is my example app's activity_main.xml</p>
  
  <pre><code>&lt;android.support.v4.widget.SwipeRefreshLayout
  android:id="@+id/swipeRefreshLayout"
  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"
  app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  
  &lt;RelativeLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;android.support.design.widget.TabLayout
          android:id="@+id/tabLayout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"/&gt;
  
  
      &lt;android.support.v4.view.ViewPager
          android:id="@+id/viewPager"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_below="@id/tabLayout"/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>This is the onCreate of my MainActivity:</p>
  
  <pre><code>    @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          mTabLayout = (TabLayout) findViewById(R.id.tabLayout);
          mSwipe = (SwipeRefreshLayout) findViewById(R.id.swipeRefreshLayout);
          mSwipe.setOnRefreshListener(this);
  
          mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager());
          mViewPager = (ViewPager) findViewById(R.id.viewPager);
          mViewPager.setAdapter(mSectionsPagerAdapter);
          mTabLayout.setupWithViewPager(mViewPager);
      }
  </code></pre>