10 Commits

Author SHA1 Message Date
cketcham
349f91c07b Always draw the Slider's label
Also adds an option to toggle floating the label above the views around the slider, or adding extra height to the slider to keep the label inside the bounds.

PiperOrigin-RevId: 272713986
2019-10-03 15:43:03 -04:00
cketcham
88535c8f22 Only set the Slider thumb drawable state if the drawable is stateful
PiperOrigin-RevId: 271617473
2019-09-27 15:00:03 -04:00
cketcham
fb4025aad4 Refactor to use Style directly for Paint in Slider
PiperOrigin-RevId: 271612458
2019-09-27 14:58:55 -04:00
cketcham
f8fe052ed3 Add support for Slider thumb elevation
PiperOrigin-RevId: 269866946
2019-09-20 10:56:07 -04:00
cketcham
eab7b7bc1b Update Slider thumb to use MaterialShapeDrawable
This will easily allow us to support elevation and potentially custom shapes in the future.

PiperOrigin-RevId: 268932921
2019-09-18 14:12:11 -04:00
cketcham
38e95a5f3c Remove the gap between the thumb and track in disabled mode
PiperOrigin-RevId: 268905977
2019-09-18 14:04:28 -04:00
cketcham
97ca231d70 Allow the radius of the thumb and halo around the thumb to be set by the style
PiperOrigin-RevId: 268735380
2019-09-18 13:01:22 -04:00
cketcham
8a26d84ac4 Add initial Slider implementation
PiperOrigin-RevId: 268558997
2019-09-12 14:22:38 -04:00
cketcham
b12e1720a6 Remove restriction requiring Slider valueFrom and valueTo to be set
The default is from 0 to 1.

PiperOrigin-RevId: 268480998
2019-09-12 14:07:32 -04:00
marianomartin
53d4185ff9 Internal cleanup
PiperOrigin-RevId: 267368841
2019-09-12 13:47:15 -04:00