title: Android ViewPager2 setPageMargin unresolved
body: <p>I want to implement Carousel using <strong><code>View Pager2</code></strong> with preview of left and right page like this:</p>
  
  <p><a href="https://i.stack.imgur.com/Jgtsv.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/Jgtsv.jpg" alt="enter image description here"></a></p>
  
  <p>Initially I was using view pager1 which supported. Now I think it's removed</p>
  
  <pre><code>    viewPagerhost.setPageMargin(20);
  </code></pre>
  
  <p>Any idea how we can achieve this using View Pager 2</p>