Java android.widget OverScroller fields, constructors, methods, implement or subclass

Example usage for Java android.widget OverScroller fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.widget OverScroller.

The text is from its open source code.

Constructor

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.

Method

booleancomputeScrollOffset()
Call this when you want to know the new location.
voidfling(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.
floatgetCurrVelocity()
Returns the absolute value of the current velocity.
intgetCurrX()
Returns the current X offset in the scroll.
intgetCurrY()
Returns the current Y offset in the scroll.
intgetFinalX()
Returns where the scroll will end.
intgetFinalY()
Returns where the scroll will end.
intgetStartX()
Returns the start X offset in the scroll.
booleanisFinished()
Returns whether the scroller has finished scrolling.
voidsetFriction(float friction)
The amount of friction applied to flings.