Fading Edges
open class FadingEdges(startWidth: Dp = FadingEdgesDefaults.edgeWidth, endWidth: Dp = FadingEdgesDefaults.edgeWidth, visibilityThreshold: Dp = FadingEdgesDefaults.visibilityThreshold, visibilityEasing: Easing = FadingEdgesDefaults.visibilityEasing)
FadingEdges applies a horizontal fade to the edges of the chart area for scrollable charts. This effect indicates that there’s more content beyond a given edge, and the user can scroll to reveal it.
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.
Constructors
Link copied to clipboard
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.