title: Android - horizontal scrolling of multiple viewable items
body: <p>EDIT: See my own answer for easy solution</p>
  
  <p><strong>IMPORTANT</strong>: <em>Bounty is offered for clear way to modify ViewPager to satisfy the scenario outlined below. Please do not offer HorizontalScrollView - I need full Fragment lifecycle scenario covered</em></p>
  
  <p>I need to implement horizontal scrolling of <code>Fragments</code>-based views in which one item is in the center and items to the right/left are partially or fully visible. <code>ViewPager</code> is ill suitable for the task since it's focused on displaying one item at each time.</p>
  
  <p>To make it easier to understand below is a quick sketch in which items 1, 5 and 6 are outside of viewable area. And and want to make this viewable number configurable so for example in portrait view I will only show 2 (or possibly just one) items.</p>
  
  <p>I'm not trying to fit say 3 items on the screen, as long as central item is shown others can be cropped. On the small screen is OK to have 1 central item and as screen grows in size multiple (cropped is OK) items should be shown</p>
  
  <p>I understand that this looks like a gallery but again the items are not simple images but <code>Fragments</code> with a vertically scrollable list in each fragment</p>
  
  <p>P.S. Found this blogpost by @Commonsware that <a href="http://commonsware.com/blog/2012/08/20/multiple-view-viewpager-options.html" rel="noreferrer">list 3 different approaches</a>. For my need I like #3</p>
  
  <p><img src="https://i.stack.imgur.com/D4RA5.jpg" alt="enter image description here"></p>