material-components-android
material-components-android copied to clipboard
[Slider] Add "Wavy" style shown in Android 13/M3 docs
Is your feature request related to a problem? Please describe.
I've noticed that in both the Android 13 Beta 1 build and the Material Design 3 docs, there are Slider components that show a wavy/squiggly line within the elapsed portion of the component. I want to add this as an option to my own app, simply for stylistic cohesion with M3.
Describe the solution you'd like
I want a way for the material components to provide this behavior in Slider, perhaps via a setter like isWavy? Preferably updating this value at runtime also animates the transition from wavy to not wavy, like it does in Android 13.
Describe alternatives you've considered
Implementing this myself, which I doubt is possible since any sort of customization you could do to Slider is likely limited to static drawables.
Additional context
Heres a screenshot of the "wavy" Slider in Android 13.

And here is a visual of a "wavy" slider within the Material Design 3 docs:

+1
+1
Minor update. It looks like the wavy design has been tweaked slightly in an Android 13 patch. Now it looks a lot less like a certain kind of cell.

If possible, I would want this to be implemented for consistency.
I found the drawable implementation used by AOSP, SquigglyProgress.kt. Without track drawable support though, using it is impossible. Any plans about this @leticiarossi?
I noticed 1.13.0-alpha01 had wavy linear progress indicators, but no support for sliders. Can you explain why @leticiarossi?