BasicSliderBehavior
class BasicSliderBehavior<T : Comparable<T>>(barFill: (Slider<T>) -> Paint, knobFill: (Slider<T>) -> Paint, rangeFill: (Slider<T>) -> Paint? = null, grooveThicknessRatio: Float = 0.6f, showTicks: TickPresentation? = null, focusManager: FocusManager? = null) : AbstractSliderBehavior<T> (source)
A simple SliderBehavior that renders a bar with a round knob and ticks if enabled.
Parameters
barFill
paint used to fill the slider's bar
knobFill
paint used to fill the slider's knob
rangeFill
paint used to fill the section between the slider's start and knob
grooveThicknessRatio
size of the bar vs the knob diameter
showTicks
if and how ticks are shown on the slider
focusManager
used to request focus for the slider
Constructors
Link copied to clipboard
constructor(barFill: Paint = Lightgray.paint, knobFill: Paint = Blue.paint, rangeFill: Paint? = null, grooveThicknessRatio: Float = 0.6f, showTicks: TickPresentation? = null, focusManager: FocusManager? = null)
A simple SliderBehavior that renders a bar with a round knob and ticks if enabled.
Inherited functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard