FadingEdges
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
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.
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.