BasicSliderBehavior

constructor(barFill: (Slider<T>) -> Paint, knobFill: (Slider<T>) -> Paint, rangeFill: (Slider<T>) -> Paint? = null, grooveThicknessRatio: Float = 0.6f, grooveInsetRatio: Float = 1.0f, markPresentation: MarkPresentation? = null, focusManager: FocusManager? = null)(source)

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

grooveInsetRatio

size of the bar inset vs the knob radius

markPresentation

if and how marks are shown on the slider

focusManager

used to request focus for the slider


constructor(barFill: Paint = Lightgray.paint, knobFill: Paint = Blue.paint, rangeFill: Paint? = null, grooveThicknessRatio: Float = 0.6f, grooveInsetRatio: Float = 1.0f, markPresentation: MarkPresentation? = null, focusManager: FocusManager? = null)(source)

A simple SliderBehavior that renders a bar with a round knob and marks 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

grooveInsetRatio

size of the bar inset vs the knob radius

markPresentation

if and how marks are shown on the slider

focusManager

used to request focus for the slider