material-components / material-components/material-components-android

[ProgressIndicator] Incorrect track shape in linear progress indicator

Open
#5,060 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Description:** When the inner radius of the indicator is larger than the outer radius, the start and end of the track may overlap incorrectly at certain progress values:


Expected result
Actual result



Expected result (original)


Actual result (original)


**Repro:**
- Device: Pixel 10 API 37 Emulator
- Progress value: 96 / 100
- Track thickness: 24dp
- Track corner radius: 4dp
- Track inner corner radius: 16dp
- Track stop indicator size: 0dp

**Material Library version:** 1.14.0-beta01

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the ProgressIndicator linear-track implementation and inspect how the inner and outer corner radii are handled for the supplied 96/100 case. Validate the result with the listed track dimensions and radii; done means the track start and end no longer overlap incorrectly and match the expected shape.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.