UX4G Logo
Components

Progress Indicator

Comprehensive progress visualization suite featuring Linear Progress Bars, Circular Progress Rings, and Half-Circle Gauge Indicators

The UX4G Progress Indicator suite provides determinate and animated visual progress representations across three distinct form factors:

  1. Linear Progress Bar (Ux4gLinearProgressBar): Horizontal track with optional header icons, labels, outside/inside percentage indicators, gradient fills, and smooth animations.
  2. Circular Progress Ring (Ux4gCircularProgress): 360° ring indicator with auto-scaling center values, metadata labels, sweep gradients, and round/butt caps.
  3. Half-Circle Progress Gauge (Ux4gHalfCircleProgress): 180° semicircle speedometer gauge with center percentage text, descriptions, and optional 0%–100% boundary scale marks.

Import from com.ux4g.designsystemv1.components.progress.*.


Interactive Previews

1. Linear Progress Bar (Ux4gLinearProgressBar)

Horizontal progress track displaying real-time task completion with an outside percentage label.

Ux4gLinearProgressBar (Linear Variant)Jetpack Compose
UX4G Linear Progress Bar Preview

2. Circular Progress Ring (Ux4gCircularProgress)

Full 360-degree circular ring indicator with centered percentage display and supporting descriptive subtitle.

Ux4gCircularProgress (Circular Ring Variant)Jetpack Compose
UX4G Circular Progress Ring Preview

3. Half-Circle Progress Gauge (Ux4gHalfCircleProgress)

180-degree semicircle speedometer gauge with bold center value, animated caption, and 0% to 100% boundary scale marks.

Ux4gHalfCircleProgress (Half-Circle Gauge Variant)Jetpack Compose
UX4G Half Circle Progress Gauge Preview

Kotlin Usage

Citizen Onboarding Progress Example
import androidx.compose.foundation.layout.*
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.unit.dp
import com.ux4g.designsystemv1.components.progress.*
import com.ux4g.designsystemv1.foundation.Ux4gColors
import com.ux4g.designsystemv1.foundation.Ux4gIcons

@Composable
fun ProgressShowcaseScreen() {
    Column(
        modifier = Modifier
            .fillMaxWidth()
            .padding(16.dp),
        verticalArrangement = Arrangement.spacedBy(28.dp),
        horizontalAlignment = Alignment.CenterHorizontally
    ) {
        // 1. Linear Progress with Header Label
        Ux4gLinearProgressBar(
            value = 0.75f,
            icon = Ux4gIcons.Info,
            label = "Document Upload Progress",
            hint = "3 of 4 completed",
            showPercentage = true,
            labelPosition = Ux4gProgressLabelPosition.Outside,
            height = 10.dp
        )

        // 2. Circular Ring with Center Content
        Ux4gCircularProgress(
            value = 0.85f,
            size = Ux4gCircularProgressSize.XXL,
            centerValueText = "85%",
            centerDescription = "Verified",
            label = "KYC Verification",
            description = "Aadhaar & PAN matched"
        )

        // 3. Half-Circle Gauge with Scale
        Ux4gHalfCircleProgress(
            value = 0.65f,
            size = Ux4gHalfCircleProgressSize.L,
            valueText = "65%",
            description = "Application Health Score",
            showScale = true,
            strokeCap = StrokeCap.Round,
            progressColor = Ux4gColors.primary
        )
    }
}

Parameters

1. Ux4gLinearProgressBar Props

PropTypeDescriptionDefault
value *FloatDeterminate progress value between 0.0f and 1.0f.—
modifierModifierCompose layout modifier applied to outer container.Modifier
labelString?Header title label displayed above-left of the bar.null
hintString?Supporting caption text displayed above-right.null
iconUx4gIcon?Optional circular leading icon placed left of label.null
iconColorColor?Icon tint color.Ux4gColors.primary
iconBackgroundColorColor?Circular background color behind leading icon.Ux4gColors.primary (12% opacity)
heightDpVertical thickness / height of the progress track.8.dp
shapeUx4gProgressShapeCorner style: Rounded (pill shape) or Sharp (square ends).Ux4gProgressShape.Rounded
customBorderRadiusDp?Explicit corner radius override.null
colorColor?Solid progress fill color.Ux4gColors.primary
gradientColorsList<Color>?Two or more colors for horizontal gradient progress fill.null
trackColorColor?Background rail track color.Ux4gColors.neutral900 (12% opacity)
showPercentageBooleanWhether to render the formatted percentage text.false
labelPositionUx4gProgressLabelPositionPosition of percentage label: Outside (top-right) or Inside (within bar).Ux4gProgressLabelPosition.Outside
insideLabelStyleTextStyle?Text style for percentage text rendered inside the bar.null

2. Ux4gCircularProgress Props

PropTypeDescriptionDefault
value *FloatProgress value between 0.0f and 1.0f.—
modifierModifierCompose layout modifier.Modifier
sizeUx4gCircularProgressSizeRing size preset: XS (20dp), S (28dp), M (36dp), L (48dp), XL (88dp), XXL (116dp), XXXL (144dp).Ux4gCircularProgressSize.L
diameterDp?Custom diameter override.null
strokeWidthDp?Thickness of the circular ring track.Auto-scaled (3dp - 12dp)
progressColorColor?Solid progress arc color.Ux4gColors.primary
trackColorColor?Background inactive ring color.Ux4gColors.neutral300
progressGradientColorsList<Color>?Gradient colors for a 360-degree sweep gradient.Sweep gradient palette
strokeCapStrokeCapStroke endpoint style: StrokeCap.Butt or StrokeCap.Round.StrokeCap.Butt
startAngleDegreesFloatAngle in degrees where progress starts (-90f = 12 o'clock).-90f
centerValueTextString?Main headline text rendered in ring center (e.g. "50%").null
centerDescriptionString?Secondary subtitle text rendered below center value.null
center(@Composable () -> Unit)?Custom composable slot rendered in ring center.null
labelString?Title heading placed below the circular ring.null
descriptionString?Explanatory description placed below the label.null
backgroundColorColor?Optional solid circle background fill color.null
gapDpSpacing between ring and bottom metadata section.8.dp

3. Ux4gHalfCircleProgress Props

PropTypeDescriptionDefault
value *FloatProgress value between 0.0f and 1.0f.—
modifierModifierCompose layout modifier.Modifier
sizeUx4gHalfCircleProgressSizeSemicircle size preset: S (80dp), M (140dp), L (200dp), XL (280dp).Ux4gHalfCircleProgressSize.L
widthDp?Custom width constraint override.null
strokeWidthDp?Arc track thickness.Auto-scaled (4dp - 22dp)
progressColorColor?Solid color for the gauge arc.Ux4gColors.primary
trackColorColor?Inactive background arc color.Ux4gColors.neutral900 (16% opacity)
gradientColorsList<Color>?Gradient colors for horizontal sweep.Horizontal gradient palette
strokeCapStrokeCapEnd cap style (StrokeCap.Round or StrokeCap.Butt).StrokeCap.Round
valueTextString?Main numeric / percentage text centered in semicircle."$percent%"
descriptionString?Explanatory caption centered below the value.null
showScaleBooleanWhen true, renders 0% and 100% labels at arc endpoints.false
gapDpSpacing between gauge arc and text labels.4.dp

Enums Reference

enum class Ux4gProgressShape {
    Rounded,  // Fully rounded pill ends
    Sharp     // Square corners
}

enum class Ux4gProgressLabelPosition {
    Outside,  // Header top-right outside the bar
    Inside    // Embedded directly within the filled bar
}

enum class Ux4gCircularProgressSize(val diameter: Dp) {
    XS(20.dp), S(28.dp), M(36.dp), L(48.dp),
    XL(88.dp), XXL(116.dp), XXXL(144.dp)
}

enum class Ux4gHalfCircleProgressSize(val width: Dp) {
    S(80.dp), M(140.dp), L(200.dp), XL(280.dp)
}

On this page