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

[Slider] Add support for secondary track

Open
#1,866 11 comments 12 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Awaiting Design Feedback feature request Widget: Slider
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

I want to be able to show the cache buffer in a slider that allows to control a player. The value is informational and should not limit the ability to slide to values larger than the buffer.

**Describe the solution you'd like**
Behave like SeekBar and propose a secondary track to represent that value to users.

**Describe alternatives you've considered**
As all is private there's no way to implement that by extending the slider, alternative are seekbar with custom labels.

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

Start by locating the Slider and SeekBar implementations and compare how their tracks and values are represented. Add support for an informational secondary track that shows the buffer value without preventing the slider from moving beyond it, then verify the behavior against the existing component tests if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
design, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.