title: Horizontal and Vertical ViewPager together
body: <p>I have a list of items (custom objects). This is the main list.
  Each of the item in the list has another list of data (URLS). This is the sublist.</p>
  
  <p>I want to show the data from main-list implemented as a <code>vertical viewpager</code>. So, flipping in vertical direction changes the items from the main list. And for the data in each item in the main-list should have the sublist implemented as a <code>horizontal viewpager</code>. So, if the fling is in the horizontal direction it shows me the items in the sublist corresponding to the item in the main list. </p>
  
  <p>Also, vertical fling to any item in the sublist should be able to take to the next item of the mainlist.</p>
  
  <p>Essentially, I am looking at implementing both direction view-pagers. Implementing view-pager in one direction seems to be pretty straight forward. i.e. <code>FragmentActivity</code> hosting a <code>Fragment</code> and a adapter class implementing a <code>FragmentPagerAdapter</code>. But, how should I go about implementing the above functionality?</p>
  
  <p>I tried playing around with some third-party libraries including <code>DirectionalViewPager</code> (it's deprecated though). I am planning to use <code>GestureListeners</code> and animations together to build this effect. </p>
  
  <p>Any pointers on what could be the best way to approach this problem would be very helpful.</p>
  
  <p>Thanks,</p>