public interface

BaseGridView.SmoothScrollByBehavior

 androidx.leanback.widget.BaseGridView.SmoothScrollByBehavior

Overview

Defines behavior of duration and interpolator for smoothScrollBy().

Summary

Methods
public intconfigSmoothScrollByDuration(int dx, int dy)

Defines duration in milliseconds of smoothScrollBy().

public InterpolatorconfigSmoothScrollByInterpolator(int dx, int dy)

Defines interpolator of smoothScrollBy().

Methods

public int configSmoothScrollByDuration(int dx, int dy)

Defines duration in milliseconds of smoothScrollBy().

Parameters:

dx: x distance in pixels.
dy: y distance in pixels.

Returns:

Duration in milliseconds or UNDEFINED_DURATION for default value.

public Interpolator configSmoothScrollByInterpolator(int dx, int dy)

Defines interpolator of smoothScrollBy().

Parameters:

dx: x distance in pixels.
dy: y distance in pixels.

Returns:

Interpolator to be used or null for default interpolator.