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() |
long |
getDuration() |
float |
getFinal() |
float |
getStart() |
boolean |
isFinished() |
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)
startValue - Start valuefinalValue - Final valueScroller.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()