6 Commits

Author SHA1 Message Date
cketcham
1bc4f60d81 Handle single tap for Slider in scrollable container
PiperOrigin-RevId: 295160709
2020-02-14 17:13:07 -05:00
cketcham
99932525e9 Improve handling of touch input for Slider with multiple thumbs
This changes the logic of picking the correct thumb on touch down. The closest thumb will be picked unless there are two thumbs in the same spot. In that case it will wait for enough movement in the x direction to determine which thumb to pick.

PiperOrigin-RevId: 292353858
2020-01-31 11:13:06 -05:00
cketcham
a6e28bef76 Add support for multiple Slider thumbs
Resolves https://github.com/material-components/material-components-android/issues/916

PiperOrigin-RevId: 292135289
2020-01-29 16:14:10 -05:00
cketcham
9e4ff3009f Refactor handling of the thumb position to prepare for multiple thumb support
PiperOrigin-RevId: 289482135
2020-01-13 15:05:21 -08:00
haodong
fa4dc3d038 Fixed crash with NullPointerException when set value before laid out in Slider.
PiperOrigin-RevId: 288945151
2020-01-10 09:07:35 -08:00
haodong
9bbcd2d7ae Fixed no OnChangeListener fires when value changed with single click.
Fixed set same values triggering listener.

Resolves https://github.com/material-components/material-components-android/issues/716
Resolves https://github.com/material-components/material-components-android/issues/853

PiperOrigin-RevId: 288608132
2020-01-08 11:57:33 -08:00