title: HorizontalScrollView inside SwipeRefreshLayout
body: <p>I implemented the new <code>SwipeRefreshLayout</code> component in my application and it works well with any vertical views, like <code>ListView</code>, <code>GridView</code> and <code>ScrollView</code>.</p>
  
  <p>It behaves very bad with horizontal views, like <code>HorizontalScrollView</code>.
  When scrolling to the right or left, the <code>SwipeRefreshLayout</code> view caches the touch, prevents the <code>HorizontalScrollView</code> from receiving it and starts scrolling vertically to perform the refresh.</p>
  
  <p>I tried solving this issue as I previously solved issues with vertical <code>ScrollView</code> with <code>ViewPager</code> inside, using <code>requestDisallowInterceptTouchEvent</code> but it didn't work. I also noticed that this method is overridden in the original <code>SwipeRefreshLayout</code> class without returning the super. Google's developer left a comment instead "<code>//Nope.</code>" :)</p>
  
  <p>Because <code>SwipeRefreshLayout</code> component is relatively new, I couldn't find a solution that fixes the horizontal scroll issue while still allowing the swipe to refresh view to track and handle vertical scrolling so I thought I'll share my solution with hopes it will spare someone an hour or two.</p>