title: How to make swipe on horizontal recyclerview bring only the next item into view - Android
body: <p>I have a horizontal <code>RecyclerView</code> that shows 4 <code>cards</code> numbered 1-4. These cards take up the entire width of the screen so only 1 card can be fully visible at a time. The user is presented with the first card, when they swipe the card to the left like this,</p>
  
  <p><a href="https://i.stack.imgur.com/vmudP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vmudP.png" alt="enter image description here"></a></p>
  
  <p>the <code>RecyclerView</code> will scroll all the way to number 4. <strong>I don't want that.</strong> </p>
  
  <p><strong>I want the swipe to bring the next card (number 2) into the view</strong></p>
  
  <p>Similar to how Androids <code>ViewPager</code> works. </p>