ProgressIndicatorColors

Added in 1.1.0
Deprecated in 1.2.0

public class ProgressIndicatorColors


Represents the indicator and track colors used in a progress indicator Tiles component.

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 a progress indicator Tiles component.

@NonNull ColorBuilders.ColorProp

The background track color to be used for a progress indicator Tiles component.

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.1.0
Deprecated in 1.2.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 a progress indicator Tiles component.

@NonNull ColorBuilders.ColorProp trackColor

The background track color to be used for a progress indicator Tiles component.

ProgressIndicatorColors

Added in 1.1.0
Deprecated in 1.2.0
public ProgressIndicatorColors(
    @ColorInt int indicatorColor,
    @ColorInt int trackColor
)

Constructor for ProgressIndicatorColors object.

Parameters
@ColorInt int indicatorColor

The indicator color to be used for a progress indicator Tiles component. Should be in ARGB format.

@ColorInt int trackColor

The background track color to be used for a progress indicator Tiles component. Should be in ARGB format.

Public methods

getIndicatorColor

Added in 1.1.0
Deprecated in 1.2.0
public @NonNull ColorBuilders.ColorProp getIndicatorColor()

The indicator color to be used for a progress indicator Tiles component.

getTrackColor

Added in 1.1.0
Deprecated in 1.2.0
public @NonNull ColorBuilders.ColorProp getTrackColor()

The background track color to be used for a progress indicator Tiles component.

progressIndicatorColors

Added in 1.1.0
Deprecated in 1.2.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 .