Package 

Interface ViewPager.PageTransformer


  • 
    public 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 transformationto 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 willbe ignored.

    • Method Summary

      Modifier and Type Method Description
      abstract void transformPage(@NonNull() View page, float position) Apply a property transformation to the given page.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • transformPage

         abstract 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-centerposition of the pager.