com.ToxicBakery.viewpager.transforms / ABaseTransformer

ABaseTransformer

abstract class ABaseTransformer : PageTransformer

Constructors

<init>

ABaseTransformer()

Properties

isPagingEnabled

open val isPagingEnabled: Boolean

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

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.

onTransform

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

Called each .transformPage.

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

min

fun min(value: Float, min: Float): Float

Same as Math.min without double casting, zero closest to infinity handling, or NaN support.

Inheritors

AccordionTransformer

open class AccordionTransformer : ABaseTransformer

BackgroundToForegroundTransformer

open class BackgroundToForegroundTransformer : ABaseTransformer

CubeInTransformer

open class CubeInTransformer : ABaseTransformer

CubeOutTransformer

open class CubeOutTransformer : ABaseTransformer

DefaultTransformer

open class DefaultTransformer : ABaseTransformer

DepthPageTransformer

open class DepthPageTransformer : ABaseTransformer

DrawerTransformer

open class DrawerTransformer : ABaseTransformer

Created by dkzwm on 2017/3/2.

FlipHorizontalTransformer

open class FlipHorizontalTransformer : ABaseTransformer

FlipVerticalTransformer

open class FlipVerticalTransformer : ABaseTransformer

ForegroundToBackgroundTransformer

open class ForegroundToBackgroundTransformer : ABaseTransformer

RotateDownTransformer

open class RotateDownTransformer : ABaseTransformer

RotateUpTransformer

open class RotateUpTransformer : ABaseTransformer

ScaleInOutTransformer

open class ScaleInOutTransformer : ABaseTransformer

StackTransformer

open class StackTransformer : ABaseTransformer

TabletTransformer

open class TabletTransformer : ABaseTransformer

ZoomInTransformer

open class ZoomInTransformer : ABaseTransformer

ZoomOutSlideTransformer

open class ZoomOutSlideTransformer : ABaseTransformer

ZoomOutTransformer

open class ZoomOutTransformer : ABaseTransformer