La Vista previa para desarrolladores de Android 11 ya está disponible. Pruébala y comparte tus comentarios.

BaseGridView.SmoothScrollByBehavior

public static interface BaseGridView.SmoothScrollByBehavior

androidx.leanback.widget.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 Interpolator configSmoothScrollByInterpolator(int dx, int dy)

Defines interpolator of smoothScrollBy().

Public methods

configSmoothScrollByDuration

public abstract int configSmoothScrollByDuration (int dx, 
                int dy)

Defines duration in milliseconds of smoothScrollBy().

Parameters
dx int: x distance in pixels.

dy int: y distance in pixels.

Returns
int Duration in milliseconds or UNDEFINED_DURATION for default value.

configSmoothScrollByInterpolator

public abstract Interpolator configSmoothScrollByInterpolator (int dx, 
                int dy)

Defines interpolator of smoothScrollBy().

Parameters
dx int: x distance in pixels.

dy int: y distance in pixels.

Returns
Interpolator Interpolator to be used or null for default interpolator.