belongs to Maven artifact com.android.support:viewpager:28.0.0-alpha1
ViewPager.PageTransformer
  public
  static
  
  
  interface
  ViewPager.PageTransformer
  
  
  
| android.support.v4.view.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.
As property animation is only supported as of Android 3.0 and forward, setting a PageTransformer on a ViewPager on earlier platform versions will be ignored.
Summary
| Public methods | |
|---|---|
| 
        abstract
        
        
        
        
        void | 
      transformPage(View page, float position)
      Apply a property transformation to the given page. | 
Public methods
transformPage
void transformPage (View page, float position)
Apply a property transformation to the given page.
| Parameters | |
|---|---|
| page | View: Apply the transformation to this page | 
| position | float: 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. | 
- Annotations
- Interfaces- ActionProvider.VisibilityListener
- AsyncLayoutInflater.OnInflateFinishedListener
- LayoutInflaterFactory
- MenuItemCompat.OnActionExpandListener
- NestedScrollingChild
- NestedScrollingChild2
- NestedScrollingParent
- NestedScrollingParent2
- OnApplyWindowInsetsListener
- ScrollingView
- TintableBackgroundView
- ViewPager.OnAdapterChangeListener
- ViewPager.OnPageChangeListener
- ViewPager.PageTransformer
- ViewPropertyAnimatorListener
- ViewPropertyAnimatorUpdateListener
 
- Classes- AbsSavedState
- AccessibilityDelegateCompat
- ActionProvider
- AsyncLayoutInflater
- GestureDetectorCompat
- GravityCompat
- InputDeviceCompat
- LayoutInflaterCompat
- MarginLayoutParamsCompat
- MenuCompat
- MenuItemCompat
- MotionEventCompat
- NestedScrollingChildHelper
- NestedScrollingParentHelper
- PagerAdapter
- PagerTabStrip
- PagerTitleStrip
- PointerIconCompat
- ScaleGestureDetectorCompat
- VelocityTrackerCompat
- ViewCompat
- ViewConfigurationCompat
- ViewGroupCompat
- ViewPager
- ViewPager.LayoutParams
- ViewPager.SavedState
- ViewPager.SimpleOnPageChangeListener
- ViewParentCompat
- ViewPropertyAnimatorCompat
- ViewPropertyAnimatorListenerAdapter
- WindowCompat
- WindowInsetsCompat
 
