title: Snap Recyclerview item to Center when loaded
body: <p>I am using an infinite scroll for recyclerview with X items which repeats.
  Also i want am using <strong>PagerSnapHelper()</strong> to snap the scroll like viewpager.</p>
  
  <p>So initially when the list is loaded the display is like -
  <a href="https://i.stack.imgur.com/JzSae.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JzSae.png" alt="enter image description here"></a></p>
  
  <p>As soon as i start scrolling on either side left or right the <strong>PageSnapHelper()</strong> come in work an snap it like viewpager with center alignment like this - <a href="https://i.stack.imgur.com/ukDhy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ukDhy.png" alt="enter image description here"></a></p>
  
  <p>I want to show recyclerview as like 2nd image when initially loaded. Please tell what to do next to acheive that.</p>
  
  <p>here is the code snipet -</p>
  
  <pre><code>linearLayoutManager = new LinearLayoutManager(mContext,   LinearLayoutManager.HORIZONTAL, false);
  this.recyclerView.setLayoutManager(linearLayoutManager);
  SnapHelper snapHelper = new PagerSnapHelper();
  adapterCarousel = new AdapterCarousel(mContext, glideRequestManager);
  adapterCarousel.setViewType(RECYCLER_VIEW_TYPE_NORMAL);
  adapterCarousel.setCarousel(carousel);
  this.recyclerView.setAdapter(adapterCarousel);
  snapHelper.attachToRecyclerView(recyclerView);
  linearLayoutManager.scrollToPosition(Integer.MAX_VALUE / 2);
  </code></pre>