Fading Edges
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.
visibility Threshold
the scroll distance over which the overlays fade in and out.
visibility Easing
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
start Width
the width of the fade overlay for the start edge.
end Width
the width of the fade overlay for the end edge.
visibility Threshold
the scroll distance over which the overlays fade in and out.
visibility Easing
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.