title: ViewPager2: getPageWidth alternative
body: <p>I replaced <strong>ViewPager</strong> with <strong>ViewPager2</strong>, but I have problem with it.
  <strong>ViewPager</strong> has fixed 3 pages. And the second page larger than other. When page 1 or 3 is visible, a small part of page 2 is also visible, and when page 2 is visible, other pages are not visible. To do this I used method of adapter</p>
  
  <pre><code>override fun getPageWidth(position: Int): Float {
      return if (position != MAIN_PAGE) WIDTH_SMALL_PERCENT
      else super.getPageWidth(position)
  }
  </code></pre>
  
  <p>But adapter of <strong>ViewPager2</strong> don't has this method and I have no idea how do it.</p>