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

[Slider] Customize track slider with drawable

Open
#3,019 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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 the ability to customize the Track drawable for my Slider, by sending the desired drawable asset

**Describe the solution you'd like**
Instead of drawing only the default Track, I want to set a custom drawable shape to be used. Just like in the existing implementation, there is a method to customize the Thumb with drawable.

**Describe alternatives you've considered**
Currently, I didn't see any alternative to have this asset customizable except changing the Track color itself.

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

The issue does not identify a source file, test, or entry point. Start by locating the Slider track and existing thumb-drawable customization, then determine the API and rendering changes needed; done means a caller can supply a custom track drawable and the behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.