ProgressIndicatorColors


class ProgressIndicatorColors


Represents the indicator and track colors used in CircularProgressIndicator.

See DEFAULT_COLORS for the default colors used in a CircularProgressIndicator.

Summary

Public constructors

ProgressIndicatorColors(
    indicatorColor: ColorBuilders.ColorProp,
    trackColor: ColorBuilders.ColorProp
)

Constructor for ProgressIndicatorColors object.

ProgressIndicatorColors(
    indicatorColor: @ColorInt Int,
    trackColor: @ColorInt Int
)

Constructor for ProgressIndicatorColors object.

Public functions

ColorBuilders.ColorProp

The indicator color to be used for CircularProgressIndicator.

ColorBuilders.ColorProp

The background track color to be used for CircularProgressIndicator.

java-static ProgressIndicatorColors

Returns a ProgressIndicatorColors object, using the current Primary color for indicator color and the current Surface color for the track color from the given Colors.

Public constructors

ProgressIndicatorColors

Added in 1.0.0
ProgressIndicatorColors(
    indicatorColor: ColorBuilders.ColorProp,
    trackColor: ColorBuilders.ColorProp
)

Constructor for ProgressIndicatorColors object.

Parameters
indicatorColor: ColorBuilders.ColorProp

The indicator color to be used for CircularProgressIndicator.

trackColor: ColorBuilders.ColorProp

The background track color to be used for CircularProgressIndicator.

ProgressIndicatorColors

Added in 1.0.0
ProgressIndicatorColors(
    indicatorColor: @ColorInt Int,
    trackColor: @ColorInt Int
)

Constructor for ProgressIndicatorColors object.

Parameters
indicatorColor: @ColorInt Int

The indicator color to be used for CircularProgressIndicator. Should be in ARGB format.

trackColor: @ColorInt Int

The background track color to be used for CircularProgressIndicator. Should be in ARGB format.

Public functions

getIndicatorColor

Added in 1.0.0
fun getIndicatorColor(): ColorBuilders.ColorProp

The indicator color to be used for CircularProgressIndicator.

getTrackColor

Added in 1.0.0
fun getTrackColor(): ColorBuilders.ColorProp

The background track color to be used for CircularProgressIndicator.

progressIndicatorColors

Added in 1.0.0
java-static fun progressIndicatorColors(colors: Colors): ProgressIndicatorColors

Returns a ProgressIndicatorColors object, using the current Primary color for indicator color and the current Surface color for the track color from the given Colors.