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 = 72f

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 = 6.dp

The default stroke width for the indicator and track strokes

Functions

colors

Source set: Android
@Composable
    public fun colors(): LevelIndicatorColors

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

colors

Source set: Android
@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.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: