A determinate slider that tracks a position from left to right. Remains visible until hidden. Clients are responsible for hiding and possibly re-showing the slider at proper points in the owning context' life-cycle.
Sample usage:
Determinate slider = Slider.from(view).startDeterminate(10, 0); .... slider.setPosition(p); // slide through p in [0,10] .... slider.hide();
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract int |
getMax()
|
||||||||||
abstract float | |||||||||||
abstract void |
hide()
|
||||||||||
abstract void |
setPosition(float position)
|
||||||||||
abstract void |
show()
|
Public Methods
public abstract int getMax ()
Returns maximum value for position.
public abstract float getPosition ()
Returns current position.
public abstract void hide ()
Hides the determinate slider, if not hidden already.
public abstract void setPosition (float position)
Sets the position, typically in the range 0 and getMax()
.
Values that fall outside this range may be used for a tugging effect.
public abstract void show ()
Shows the determinate slider, if not visible already.