Package icyllis.modernui.widget

# Interface ViewPager.PageTransformer

Enclosing class:
  `ViewPager`

public static interface ViewPager.PageTransformer
A PageTransformer is invoked whenever a visible/attached page is scrolled. This offers an opportunity for the application to apply a custom transformation to the page views using animation properties.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `transformPage(View page, float position)`
  Apply a property transformation to the given page.

- ## Method Details

  - ### transformPage

    void transformPage(@NonNull View page, float position)
    Apply a property transformation to the given page.
    Parameters:
      `page` - Apply the transformation to this page
      `position` - Position of page relative to the current front-and-center position of the pager. 0 is front and center. 1 is one full page position to the right, and -1 is one page position to the left.