ProgressIndicatorColors


public class ProgressIndicatorColors


Represents the indicator and track colors used in CircularProgressIndicator.

See DEFAULT_COLORS for the default colors used in a .

Summary

Public constructors

Constructor for ProgressIndicatorColors object.

ProgressIndicatorColors(
    @ColorInt int indicatorColor,
    @ColorInt int trackColor
)

Constructor for ProgressIndicatorColors object.

Public methods

@NonNull ColorBuilders.ColorProp

The indicator color to be used for CircularProgressIndicator.

@NonNull ColorBuilders.ColorProp

The background track color to be used for CircularProgressIndicator.

static @NonNull 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 .

Public constructors

ProgressIndicatorColors

Added in 1.0.0
public ProgressIndicatorColors(
    @NonNull ColorBuilders.ColorProp indicatorColor,
    @NonNull ColorBuilders.ColorProp trackColor
)

Constructor for ProgressIndicatorColors object.

Parameters
@NonNull ColorBuilders.ColorProp indicatorColor

The indicator color to be used for CircularProgressIndicator.

@NonNull ColorBuilders.ColorProp trackColor

The background track color to be used for .

ProgressIndicatorColors

Added in 1.0.0
public ProgressIndicatorColors(
    @ColorInt int indicatorColor,
    @ColorInt int trackColor
)

Constructor for ProgressIndicatorColors object.

Parameters
@ColorInt int indicatorColor

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

@ColorInt int trackColor

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

Public methods

getIndicatorColor

Added in 1.0.0
public @NonNull ColorBuilders.ColorProp getIndicatorColor()

The indicator color to be used for CircularProgressIndicator.

getTrackColor

Added in 1.0.0
public @NonNull ColorBuilders.ColorProp getTrackColor()

The background track color to be used for CircularProgressIndicator.

progressIndicatorColors

Added in 1.0.0
public static @NonNull ProgressIndicatorColors progressIndicatorColors(@NonNull Colors colors)

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