public class FloatScroller
extends java.lang.Object
Scroller.| Constructor and Description |
|---|
FloatScroller() |
| Modifier and Type | Method and Description |
|---|---|
void |
abortAnimation()
Aborts the animation, setting the current value to the final value.
|
boolean |
computeScroll()
Computes the current value, returning true if the animation is still active and false if the
animation has finished.
|
void |
forceFinished()
Force the finished field to a particular value.
Unlike abortAnimation() the current value isn't set to the final value. |
float |
getCurr()
Returns the current value.
|
long |
getDuration() |
float |
getFinal()
Returns final value.
|
float |
getStart()
Returns starting value.
|
boolean |
isFinished()
Returns current state.
|
void |
setDuration(long duration) |
void |
startScroll(float startValue,
float finalValue)
Starts an animation from startValue to finalValue.
|
public long getDuration()
public void setDuration(long duration)
public void forceFinished()
abortAnimation() the current value isn't set to the final value.Scroller.forceFinished(boolean)public void abortAnimation()
Scroller.abortAnimation()public void startScroll(float startValue,
float finalValue)
Scroller.startScroll(int, int, int, int)public boolean computeScroll()
Scroller.computeScrollOffset()public boolean isFinished()
Scroller.isFinished()public float getStart()
Scroller.getStartX()public float getFinal()
Scroller.getFinalX()public float getCurr()
Scroller.getCurrX()