Example usage for Java android.widget OverScroller fields, constructors, methods, implement or subclass
The text is from its open source code.
OverScroller(Context context, Interpolator interpolator) Creates an OverScroller with flywheel enabled. | |
OverScroller(Context context) Creates an OverScroller with a viscous fluid scroll interpolator and flywheel. |
boolean | computeScrollOffset() Call this when you want to know the new location. |
void | fling(int startX, int startY, int velocityX, int velocityY, int minX, int maxX, int minY, int maxY, int overX, int overY) Start scrolling based on a fling gesture. |
float | getCurrVelocity() Returns the absolute value of the current velocity. |
int | getCurrX() Returns the current X offset in the scroll. |
int | getCurrY() Returns the current Y offset in the scroll. |
int | getFinalX() Returns where the scroll will end. |
int | getFinalY() Returns where the scroll will end. |
int | getStartX() Returns the start X offset in the scroll. |
boolean | isFinished() Returns whether the scroller has finished scrolling. |
void | setFriction(float friction) The amount of friction applied to flings. |