Object

LevelIndicatorDefaults

Contains the default values used for LevelIndicator.

Source set: Android
public object LevelIndicatorDefaults

Contains the default values used for LevelIndicator.

Properties

SweepAngle

Source set: Android
public val SweepAngle: Float

The sweep angle for the curved LevelIndicator, measured up to the centers of the stroke caps. The default value of 72 degrees equates to 20% of the circumference, i.e. 360/5.

StrokeWidth

Source set: Android
public val StrokeWidth: Dp

The default stroke width for the indicator and track strokes

Functions

colors

@Composable
public fun colors(): LevelIndicatorColors

Creates a LevelIndicatorColors that represents the default colors used in a LevelIndicator.

colors

@Composable
public fun colors(
    indicatorColor: Color = Color.Unspecified,
    trackColor: Color = Color.Unspecified,
    disabledIndicatorColor: Color = Color.Unspecified,
    disabledTrackColor: Color = Color.Unspecified,
): LevelIndicatorColors

Creates a LevelIndicatorColors with modified colors used in LevelIndicator.

Parameters

indicatorColor The indicator color.
trackColor The track color.
disabledIndicatorColor The disabled indicator color.
disabledTrackColor The disabled track color.

Last updated: