BaseGridView.SmoothScrollByBehavior

interface BaseGridView.SmoothScrollByBehavior


Defines behavior of duration and interpolator for smoothScrollBy().

Summary

Public functions

Int

Defines duration in milliseconds of smoothScrollBy().

Interpolator?

Defines interpolator of smoothScrollBy().

Public functions

configSmoothScrollByDuration

Added in 1.0.0-alpha03
fun configSmoothScrollByDuration(dx: Int, dy: Int): Int

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

Added in 1.0.0-alpha03
fun configSmoothScrollByInterpolator(dx: Int, dy: Int): Interpolator?

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.