FadingEdges

constructor(width: Dp = FADING_EDGE_WIDTH_DP.dp, visibilityThreshold: Dp = FADING_EDGE_VISIBILITY_THRESHOLD_DP.dp, visibilityEasing: Easing = FastOutSlowInEasing)

Creates a FadingEdges instance with fading edges of equal width.

Parameters

width

the width of the fade overlays.

visibilityThreshold

the scroll distance over which the overlays fade in and out.

visibilityEasing

used for the fading edges’ fade-in and fade-out animations. This is a mapping of the degree to which visibilityThreshold has been satisfied to the opacity of the fading edges.


constructor(startWidth: Dp = FadingEdgesDefaults.edgeWidth, endWidth: Dp = FadingEdgesDefaults.edgeWidth, visibilityThreshold: Dp = FadingEdgesDefaults.visibilityThreshold, visibilityEasing: Easing = FadingEdgesDefaults.visibilityEasing)

Parameters

startWidth

the width of the fade overlay for the start edge.

endWidth

the width of the fade overlay for the end edge.

visibilityThreshold

the scroll distance over which the overlays fade in and out.

visibilityEasing

used for the fading edges’ fade-in and fade-out animations. This is a mapping of the degree to which visibilityThreshold has been satisfied to the opacity of the fading edges.