Page Summary
-
Slider.Scroller is a scroll slider that indicates the current position within a fixed-size collection.
-
The slider hides automatically after a short time of inactivity.
-
Key methods include getting and setting the position, getting the maximum value, and showing or hiding the slider.
A scroll slider that indicates the current position within a fixed-size collection. The slider hides automatically after a short time of inactivity.
Sample usage:
Scroller slider = Slider.from(view).startScroller(10, 0); .... slider.setPosition(p); // slide through p in [0,10] ....
| 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 slider, if not hidden already.
public abstract void setPosition (float position)
public abstract void show ()
Shows the slider, if not visible already. The slider hides automatically after a short time of inactivity.