ScrollerCompat

public final class ScrollerCompat
extends Object

java.lang.Object
   ↳ androidx.core.widget.ScrollerCompat


This class is deprecated.
Use OverScroller directly.

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 methods

void abortAnimation()

This method is deprecated. Use OverScroller.abortAnimation() directly.

boolean computeScrollOffset()

This method is deprecated. Use OverScroller.computeScrollOffset() directly.

static ScrollerCompat create(Context context, Interpolator interpolator)

This method is deprecated. Use OverScroller constructor directly.

static ScrollerCompat create(Context context)

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 OverScroller.fling(int, int, int, int, int, int, int, int) 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 OverScroller.fling(int, int, int, int, int, int, int, int, int, int) directly.

float getCurrVelocity()

This method is deprecated. Use OverScroller.getCurrVelocity() directly.

int getCurrX()

This method is deprecated. Use OverScroller.getCurrX() directly.

int getCurrY()

This method is deprecated. Use OverScroller.getCurrY() directly.