com.ToxicBakery.viewpager.transforms / ScaleInOutTransformer

ScaleInOutTransformer

open class ScaleInOutTransformer : ABaseTransformer

Constructors

<init>

ScaleInOutTransformer()

Inherited Properties

isPagingEnabled

open val isPagingEnabled: Boolean

Indicates if the default animations of the view pager should be used.

Functions

onTransform

open fun onTransform(page: View, position: Float): Unit

Called each .transformPage.

Inherited Functions

hideOffscreenPages

open fun hideOffscreenPages(): Boolean

If the position offset of a fragment is less than negative one or greater than one, returning true will set the fragment alpha to 0f. Otherwise fragment alpha is always defaulted to 1f.

onPostTransform

open fun onPostTransform(page: View, position: Float): Unit

Called each .transformPage after .onTransform.

onPreTransform

open fun onPreTransform(page: View, position: Float): Unit

Called each .transformPage before {.onTransform.

transformPage

open fun transformPage(page: View, position: Float): Unit

Apply a property transformation to the given page. For most use cases, this method should not be overridden. Instead use .transformPage to perform typical transformations.