IndicatorParams

data class IndicatorParams(var numberOfIndicatorPanels: Int = 0)

This class holds data and properties that can be shared among different BannerXIndicator implementations.

Author

IODevBlue

Since

1.0.0

Constructors

Link copied to clipboard
fun IndicatorParams(numberOfIndicatorPanels: Int = 0)

Properties

Link copied to clipboard
var allowNumberIndicator: Boolean = false

Enable or disable displaying number of banners on the indicator widget if there are any. Default: false.

Link copied to clipboard
var applyMarqueeOnIndicatorText: Boolean = false

Append a '...' at the end of any long text to truncate it on the indicator's TextView if present.

Link copied to clipboard
var indicatorBackgroundDrawable: Drawable? = null

The background Drawable for a BannerX indicator.

Link copied to clipboard
var indicatorFadeOnIdle: Boolean = false

Apply a fade animation when the indicator widget is idle. Default: false.

Link copied to clipboard

The time it takes for the indicator to be visible when idle before it fades away.

Link copied to clipboard

The horizontal position of the indicator widget. Default: IndicatorHorizontalArrangement.CENTER.

Link copied to clipboard
var indicatorSelectedDrawable: Drawable? = null

The drawable for an indicator panel representing the currently selected Banner object.

Link copied to clipboard
@Dimension
var indicatorStartEndMargin: Int = 0

The uniform margin value applied to the outer horizontal bounds at the Start and End positions of the BannerX indicator.

Link copied to clipboard
@Dimension
var indicatorStartEndPadding: Int = 0

The uniform padding value applied to the inner horizontal bounds at the Start and End positions of the BannerX indicator.

Link copied to clipboard
@ColorInt
var indicatorTextColor: Int = 0

Color of the text used by the indicator's TextView if present.

Link copied to clipboard
@Dimension
var indicatorTextSize: Float = 0.0f

Text size used by the indicator's TextView if present.

Link copied to clipboard
var indicatorTextTypeface: Typeface? = null

The Typeface applied on the text in the indicator's TextView if present.

Link copied to clipboard
@Dimension
var indicatorTopBottomPadding: Int = 0

The uniform padding value applied to the inner vertical bounds at the Top and Bottom positions of the BannerX indicator.

Link copied to clipboard
var indicatorUnselectedDrawable: Drawable? = null

The drawable for an indicator panel representing an unselected Banner object.

Link copied to clipboard
var numberIndicatorBackgroundDrawable: Drawable? = null

The background Drawable for the BannerX number indicator if there are any.

Link copied to clipboard

The number of indicator panels that should be displayed.

Link copied to clipboard
var showIndicatorText: Boolean = false

Enable or disable the indicator widget's TextView if there are any. Default: false.