com.ToxicBakery.viewpager.transforms / TabletTransformer

TabletTransformer

open class TabletTransformer : ABaseTransformer

Constructors

<init>

TabletTransformer()

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.

Companion Object Functions

getOffsetXForRotation

fun getOffsetXForRotation(degrees: Float, width: Int, height: Int): Float