BaseGridView.SmoothScrollByBehavior


public interface BaseGridView.SmoothScrollByBehavior


Defines behavior of duration and interpolator for smoothScrollBy().

Summary

Public methods

abstract int
configSmoothScrollByDuration(int dx, int dy)

Defines duration in milliseconds of smoothScrollBy().

abstract @Nullable Interpolator

Defines interpolator of smoothScrollBy().

Public methods

configSmoothScrollByDuration

Added in 1.0.0-alpha03
abstract int configSmoothScrollByDuration(int dx, int dy)

Defines duration in milliseconds of smoothScrollBy().

Parameters
int dx

x distance in pixels.

int dy

y distance in pixels.

Returns
int

Duration in milliseconds or UNDEFINED_DURATION for default value.

configSmoothScrollByInterpolator

Added in 1.0.0-alpha03
abstract @Nullable Interpolator configSmoothScrollByInterpolator(int dx, int dy)

Defines interpolator of smoothScrollBy().

Parameters
int dx

x distance in pixels.

int dy

y distance in pixels.

Returns
@Nullable Interpolator

Interpolator to be used or null for default interpolator.