material-components-android icon indicating copy to clipboard operation
material-components-android copied to clipboard

[Slider] Add "Wavy" style shown in Android 13/M3 docs

Open OxygenCobalt opened this issue 3 years ago • 5 comments

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. image

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

OxygenCobalt avatar May 06 '22 03:05 OxygenCobalt

+1

KraXen72 avatar May 18 '22 18:05 KraXen72

+1

ytheekshana avatar Jun 30 '22 16:06 ytheekshana

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.

image

If possible, I would want this to be implemented for consistency.

OxygenCobalt avatar Oct 06 '22 17:10 OxygenCobalt

I found the drawable implementation used by AOSP, SquigglyProgress.kt. Without track drawable support though, using it is impossible. Any plans about this @leticiarossi?

OxygenCobalt avatar Jun 23 '23 21:06 OxygenCobalt

I noticed 1.13.0-alpha01 had wavy linear progress indicators, but no support for sliders. Can you explain why @leticiarossi?

OxygenCobalt avatar Apr 18 '24 02:04 OxygenCobalt