ProgressIndicatorColors
Class
Android
public class ProgressIndicatorColors(
public val indicatorBrush: Brush,
public val trackBrush: Brush,
public val overflowTrackBrush: Brush,
public val disabledIndicatorBrush: Brush,
public val disabledTrackBrush: Brush,
public val disabledOverflowTrackBrush: Brush,
)
Represents the indicator and track colors used in progress indicator.
Parameters
indicatorBrush | Brush used to draw the indicator of progress indicator. |
trackBrush | Brush used to draw the track of progress indicator. |
overflowTrackBrush | Brush used to draw the track for progress overflow (>100%). |
disabledIndicatorBrush | Brush used to draw the indicator if the component is disabled. |
disabledTrackBrush | Brush used to draw the track if the component is disabled. |
disabledOverflowTrackBrush | Brush used to draw the overflow track if the component is disabled. |
Functions
public fun copy(
indicatorColor: Color = Color.Unspecified,
trackColor: Color = Color.Unspecified,
overflowTrackColor: Color = Color.Unspecified,
disabledIndicatorColor: Color = Color.Unspecified,
disabledTrackColor: Color = Color.Unspecified,
disabledOverflowTrackColor: Color = Color.Unspecified,
): ProgressIndicatorColors
Returns a copy of this ProgressIndicatorColors optionally overriding some of the values.
Parameters
indicatorColor | The indicator color. |
trackColor | The track color. |
overflowTrackColor | The overflow track color. |
disabledIndicatorColor | The disabled indicator color. |
disabledTrackColor | The disabled track color. |
disabledOverflowTrackColor | The disabled overflow track color. |
public fun copy(
indicatorBrush: Brush? = null,
trackBrush: Brush? = null,
overflowTrackBrush: Brush? = null,
disabledIndicatorBrush: Brush? = null,
disabledTrackBrush: Brush? = null,
disabledOverflowTrackBrush: Brush? = null,
): ProgressIndicatorColors
Returns a copy of this ProgressIndicatorColors optionally overriding some of the values.
Parameters
indicatorBrush | Brush used to draw the indicator of progress indicator. |
trackBrush | Brush used to draw the track of progress indicator. |
overflowTrackBrush | Brush used to draw the track for progress overflow. |
disabledIndicatorBrush | Brush used to draw the indicator if the component is disabled. |
disabledTrackBrush | Brush used to draw the track if the component is disabled. |
disabledOverflowTrackBrush | Brush used to draw the overflow track if the component is disabled. |