material-components / material-components/material-components-android
[Slider] Customize track slider with drawable
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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