BannerXTransformer

abstract class BannerXTransformer : ViewPager2.PageTransformer, Parcelable

The base class for all Transformers provided for BannerX.

To further understand the Float position parameter:

  • < -1.0F: Invisible banner to the far left.

  • <= 0.0F: A banner to the immediate left of centered banner.

  • 0: The banner completely centered and fully on screen.

  • <= 1.0: A banner to the immediate right of centered banner.

  • > 1.0F: Invisible banner to the far right.

Author

IODevBlue

Since

1.0.0

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun transformInvisibleBanners(view: View, position: Float)

Apply transformations to any invisible banner offscreen.

Link copied to clipboard
abstract fun transformLeftBanner(view: View, position: Float)

Apply transformations to the immediate left banner.

Link copied to clipboard
open override fun transformPage(banner: View, position: Float)
Link copied to clipboard
abstract fun transformRightBanner(view: View, position: Float)

Apply transformations to the immediate right banner.

Inheritors

Link copied to clipboard