BasicSliderBehavior
class BasicSliderBehavior<T : Comparable<T>>(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) : AbstractSliderBehavior<T> (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
Constructors
Link copied to clipboard
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)
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)
A simple SliderBehavior that renders a bar with a round knob and marks if enabled.
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