title: Viewpager intercepts snackbar dismiss
body: <p><strong>Scope</strong></p>
  
  <p>I have a fragment that contains a ViewPager.  Each page of the viewpager contains an item fragment.  When I take an action on the item fragment, I display a snackbar within the item fragment.  The snackbar is part of the item fragment (the CoordinatorLayout is part of the item fragments layout).</p>
  
  <p><strong>Problem</strong></p>
  
  <p>The problem I am facing is that I am not allowed to dismiss the snackbar because the viewpager intercepts the swipe event and changes pages instead of letting the snackbar get dismissed.  </p>
  
  <p><strong>Question</strong></p>
  
  <p>I would like the viewpager not to intercept touches on the snackbar, but still intercept touches on the remainder of the item fragment (the user should still be able to swipe to change pages when not swiping on the snackbar).  Does anyone know of a way to do this?</p>
  
  <p>I have created a sample app to demonstrate the problem.  It is available at <a href="https://github.com/gfrederick/ViewPagerSnackbar" rel="nofollow">https://github.com/gfrederick/ViewPagerSnackbar</a></p>