added in version 22.1.0
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
Deprecated since version 26.1.0

ScrollerCompat

public final class ScrollerCompat
extends Object

java.lang.Object
   ↳ android.support.v4.widget.ScrollerCompat


This class was deprecated in API level 26.1.0.
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 was deprecated in API level 26.1.0. Use abortAnimation() directly.

boolean computeScrollOffset()

This method was deprecated in API level 26.1.0. Use computeScrollOffset() directly.

static ScrollerCompat create(Context context, Interpolator interpolator)

This method was deprecated in API level 26.1.0. Use OverScroller constructor directly.

static ScrollerCompat create(Context context)

This method was deprecated in API level 26.1.0. Use OverScroller constructor directly.

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

This method was deprecated in API level 26.1.0. Use 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 was deprecated in API level 26.1.0. Use fling(int, int, int, int, int, int, int, int, int, int) directly.

float getCurrVelocity()

This method was deprecated in API level 26.1.0. Use getCurrVelocity() directly.

int getCurrX()

This method was deprecated in API level 26.1.0. Use getCurrX() directly.

int getCurrY()

This method was deprecated in API level 26.1.0. Use getCurrY() directly.

int getFinalX()

This method was deprecated in API level 26.1.0. Use getFinalX() directly.

int getFinalY()

This method was deprecated in API level 26.1.0. Use getFinalY() directly.

boolean isFinished()

This method was deprecated in API level 26.1.0. Use isFinished() directly.

boolean isOverScrolled()

This method was deprecated in API level 26.1.0. Use isOverScrolled() directly.

void notifyHorizontalEdgeReached(int startX, int finalX, int overX)

This method was deprecated in API level 26.1.0. Use notifyHorizontalEdgeReached(int, int, int) directly.