Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

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.