title: View Pager: Change default direction
body: <p>A similar <a href="https://stackoverflow.com/questions/13489723/how-to-reverse-the-direction-of-viewpager-to-left-to-right-order">question</a> has already been asked</p>
  
  <pre><code>"I have viewPager with several views. the default behavior of viewPager is that the first item is displayed first, then swiping right to left displays the second view right to the current view etc.
  
  the behavior i want is that after the first item is displayed, swiping left to right will display the next view left to the current item. "
  </code></pre>
  
  <p>But in my case, the problem is a little different.
  My first page <strong>must</strong> contain a list of item. On that list view, i have add a feature---- u swipe an item right to left, it displays certain options like iOS. So default view pager behavior is creating conflicts with this list behavior.</p>
  
  <p>My ViewPager contains 2 fragments. Fragment 1 contains list of items. Fragment 2 contains item details. 
  I cannot <code>set current item</code> as the second fragment.</p>
  
  <p>Tried gesturelistner, with it i can get the direction of swipe but was not able to reverse it.</p>
  
  <p>So i need to reverse the default swipe direction of viewpager.</p>