Skip to content

RangeSlider

raeleus edited this page Jul 29, 2021 · 6 revisions

RangeSlider

The RangeSlider is a simple alternative to Slider which allows users to specify a range with two knobs. The layout of the internal components is improved over Slider's implementation as well, making knob positioning much more intuitive.

RangeSliderStyle

All the fields for RangeSliderStyle are optional.

  • background: a drawable that is displayed behind all the other components. It is the main bar that represents the unfilled range. The padding of the drawable defines the area where the progressKnob is drawn and the minimum/maximum positions of the knobs.
  • progressKnob: a drawable this is drawn between the positions of the beginning and end of the range.
  • knobBeginUp:
  • knobBeginOver:
  • knobBeginDown:
  • knobEndUp:
  • knobEndOver:
  • knobEndDown:
  • backgroundDisabled:
  • progressKnobDisabled:
  • knobBeginDisabled:
  • knobEndDisabled:

How to use RangeSlider

Clone this wiki locally