material-components / material-components-android

Modular and customizable Material Design UI components for Android
Apache License 2.0
16.25k stars 3.05k forks source link

[Slider] A ripple doesn't keep up with a thumb #3253

Open pubiqq opened 1 year ago

pubiqq commented 1 year ago

https://user-images.githubusercontent.com/82187521/220220845-20e82b5c-7a26-4c94-9340-d4248d126b95.webm


Material Library version: 1.8.0

Device: API 21 Emulator, API 27 Emulator

drchen commented 1 year ago

It seems like a RippleDrawable bug on lower APIs, with which there's not much we can do.

We can probably expose forceDrawCompatHalo so the client can opt to use a compat halo instead on those lower APIs. But it may not be a good idea to use it by default.

pubiqq commented 1 year ago

I don't know... a ripple in Seekbar on API 27 seems to work properly, mb Slider can be fixed too?