SliderPickerInspectorView

constructor(@NonNull context: Context, @NonNull label: String, @NonNull unitLabel: String, minValue: Int, maxValue: Int, defaultValue: Int, @Nullable listener: SliderPickerInspectorView.SliderPickerListener)

Construct slider picker.

Parameters

context

The context to use.

label

Label displayed before slider view.

unitLabel

Unit label format. This format string must contain "%d" or "%s" to substitute correct value during formatting. For example when using "%d pt" slider label gets formatted as "10 pt".

minValue

Minimum slider value.

maxValue

Maximum slider value.

defaultValue

Initial value set for the slider and the edit text.

listener

Listener called when new values are picked using the slider.