BasicSliderBehavior

constructor(barFill: Paint = Lightgray.paint, knobFill: Paint = Blue.paint, rangeFill: Paint? = null, grooveThicknessRatio: Float = 0.6f, showTicks: TickPresentation? = null, focusManager: FocusManager? = null)(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


constructor(barFill: (Slider<T>) -> Paint, knobFill: (Slider<T>) -> Paint, rangeFill: (Slider<T>) -> Paint? = null, grooveThicknessRatio: Float = 0.6f, showTicks: TickPresentation? = 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

showTicks

if and how ticks are shown on the slider

focusManager

used to request focus for the slider