ProgressIndicatorColors
public 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(Constructor for |
ProgressIndicatorColors(Constructor for |
Public methods |
|
|---|---|
@NonNull ColorBuilders.ColorProp |
The indicator color to be used for |
@NonNull ColorBuilders.ColorProp |
The background track color to be used for |
static @NonNull ProgressIndicatorColors |
progressIndicatorColors(@NonNull Colors colors)Returns a |
Public constructors
ProgressIndicatorColors
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 |
@NonNull ColorBuilders.ColorProp trackColor |
The background track color to be used for |
ProgressIndicatorColors
public ProgressIndicatorColors(
@ColorInt int indicatorColor,
@ColorInt int trackColor
)
Constructor for ProgressIndicatorColors object.
| Parameters | |
|---|---|
@ColorInt int indicatorColor |
The indicator color to be used for |
@ColorInt int trackColor |
The background track color to be used for |
Public methods
getIndicatorColor
public @NonNull ColorBuilders.ColorProp getIndicatorColor()
The indicator color to be used for CircularProgressIndicator.
getTrackColor
public @NonNull ColorBuilders.ColorProp getTrackColor()
The background track color to be used for CircularProgressIndicator.
progressIndicatorColors
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 Colors.