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:
- Linear Progress Bar (
Ux4gLinearProgressBar): Horizontal track with optional header icons, labels, outside/inside percentage indicators, gradient fills, and smooth animations. - Circular Progress Ring (
Ux4gCircularProgress): 360° ring indicator with auto-scaling center values, metadata labels, sweep gradients, and round/butt caps. - 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.

2. Circular Progress Ring (Ux4gCircularProgress)
Full 360-degree circular ring indicator with centered percentage display and supporting descriptive subtitle.

3. Half-Circle Progress Gauge (Ux4gHalfCircleProgress)
180-degree semicircle speedometer gauge with bold center value, animated caption, and 0% to 100% boundary scale marks.

Kotlin Usage
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
| Prop | Type | Description | Default |
|---|---|---|---|
value * | Float | Determinate progress value between 0.0f and 1.0f. | — |
modifier | Modifier | Compose layout modifier applied to outer container. | Modifier |
label | String? | Header title label displayed above-left of the bar. | null |
hint | String? | Supporting caption text displayed above-right. | null |
icon | Ux4gIcon? | Optional circular leading icon placed left of label. | null |
iconColor | Color? | Icon tint color. | Ux4gColors.primary |
iconBackgroundColor | Color? | Circular background color behind leading icon. | Ux4gColors.primary (12% opacity) |
height | Dp | Vertical thickness / height of the progress track. | 8.dp |
shape | Ux4gProgressShape | Corner style: Rounded (pill shape) or Sharp (square ends). | Ux4gProgressShape.Rounded |
customBorderRadius | Dp? | Explicit corner radius override. | null |
color | Color? | Solid progress fill color. | Ux4gColors.primary |
gradientColors | List<Color>? | Two or more colors for horizontal gradient progress fill. | null |
trackColor | Color? | Background rail track color. | Ux4gColors.neutral900 (12% opacity) |
showPercentage | Boolean | Whether to render the formatted percentage text. | false |
labelPosition | Ux4gProgressLabelPosition | Position of percentage label: Outside (top-right) or Inside (within bar). | Ux4gProgressLabelPosition.Outside |
insideLabelStyle | TextStyle? | Text style for percentage text rendered inside the bar. | null |
2. Ux4gCircularProgress Props
| Prop | Type | Description | Default |
|---|---|---|---|
value * | Float | Progress value between 0.0f and 1.0f. | — |
modifier | Modifier | Compose layout modifier. | Modifier |
size | Ux4gCircularProgressSize | Ring size preset: XS (20dp), S (28dp), M (36dp), L (48dp), XL (88dp), XXL (116dp), XXXL (144dp). | Ux4gCircularProgressSize.L |
diameter | Dp? | Custom diameter override. | null |
strokeWidth | Dp? | Thickness of the circular ring track. | Auto-scaled (3dp - 12dp) |
progressColor | Color? | Solid progress arc color. | Ux4gColors.primary |
trackColor | Color? | Background inactive ring color. | Ux4gColors.neutral300 |
progressGradientColors | List<Color>? | Gradient colors for a 360-degree sweep gradient. | Sweep gradient palette |
strokeCap | StrokeCap | Stroke endpoint style: StrokeCap.Butt or StrokeCap.Round. | StrokeCap.Butt |
startAngleDegrees | Float | Angle in degrees where progress starts (-90f = 12 o'clock). | -90f |
centerValueText | String? | Main headline text rendered in ring center (e.g. "50%"). | null |
centerDescription | String? | Secondary subtitle text rendered below center value. | null |
center | (@Composable () -> Unit)? | Custom composable slot rendered in ring center. | null |
label | String? | Title heading placed below the circular ring. | null |
description | String? | Explanatory description placed below the label. | null |
backgroundColor | Color? | Optional solid circle background fill color. | null |
gap | Dp | Spacing between ring and bottom metadata section. | 8.dp |
3. Ux4gHalfCircleProgress Props
| Prop | Type | Description | Default |
|---|---|---|---|
value * | Float | Progress value between 0.0f and 1.0f. | — |
modifier | Modifier | Compose layout modifier. | Modifier |
size | Ux4gHalfCircleProgressSize | Semicircle size preset: S (80dp), M (140dp), L (200dp), XL (280dp). | Ux4gHalfCircleProgressSize.L |
width | Dp? | Custom width constraint override. | null |
strokeWidth | Dp? | Arc track thickness. | Auto-scaled (4dp - 22dp) |
progressColor | Color? | Solid color for the gauge arc. | Ux4gColors.primary |
trackColor | Color? | Inactive background arc color. | Ux4gColors.neutral900 (16% opacity) |
gradientColors | List<Color>? | Gradient colors for horizontal sweep. | Horizontal gradient palette |
strokeCap | StrokeCap | End cap style (StrokeCap.Round or StrokeCap.Butt). | StrokeCap.Round |
valueText | String? | Main numeric / percentage text centered in semicircle. | "$percent%" |
description | String? | Explanatory caption centered below the value. | null |
showScale | Boolean | When true, renders 0% and 100% labels at arc endpoints. | false |
gap | Dp | Spacing 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)
}Popover
Rich contextual floating overlay anchored to trigger controls, supporting custom headers, actions, subtitles, and interactive rich content
Progress SLA Indicator
Service Level Agreement (SLA) status tracking component featuring Linear and Circular countdown indicators across Normal, Warning, Critical, and Completed SLA tiers