ScrollerCompat

public final class ScrollerCompat


Provides access to new Scroller APIs when available.

This class provides a platform version-independent mechanism for obeying the current device's preferred scroll physics and fling behavior. It offers a subset of the APIs from Scroller or OverScroller.

Summary

Public constructors

Public methods

void

This method is deprecated.

Use abortAnimation directly.

boolean

This method is deprecated.

Use computeScrollOffset directly.

static ScrollerCompat
create(Context context)

This method is deprecated.

Use OverScroller constructor directly.

static ScrollerCompat
create(Context context, Interpolator interpolator)

This method is deprecated.

Use OverScroller constructor directly.

void
fling(
    int startX,
    int startY,
    int velocityX,
    int velocityY,
    int minX,
    int maxX,
    int minY,
    int maxY
)

This method is deprecated.

Use fling directly.

void
fling(
    int startX,
    int startY,
    int velocityX,
    int velocityY,
    int minX,
    int maxX,
    int minY,
    int maxY,
    int overX,
    int overY
)

This method is deprecated.

Use fling directly.

float

This method is deprecated.

Use getCurrVelocity directly.

int

This method is deprecated.

Use getCurrX directly.

int

This method is deprecated.

Use getCurrY directly.

int

This method is deprecated.

Use getFinalX directly.

int

This method is deprecated.

Use getFinalY directly.

boolean