Package 

Class FadingEdges


  • 
    public class FadingEdges
    
                        

    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.

    • Constructor Detail

      • FadingEdges

        FadingEdges(Float edgeWidthDp, Float visibilityThresholdDp, TimeInterpolator visibilityInterpolator)
        Creates a FadingEdges instance with fading edges of equal width.
        Parameters:
        edgeWidthDp - the width of the fade overlay (in dp).
        visibilityThresholdDp - the scroll distance over which the overlays fade in and out (in dp).
        visibilityInterpolator - used for the fading edges’ fade-in and fade-out animations.
      • FadingEdges

        FadingEdges(Float startEdgeWidthDp, Float endEdgeWidthDp, Float visibilityThresholdDp, TimeInterpolator visibilityInterpolator)
        Parameters:
        startEdgeWidthDp - the width of the fade overlay for the start edge (in dp).
        endEdgeWidthDp - the width of the fade overlay for the end edge (in dp).
        visibilityThresholdDp - the scroll distance over which the overlays fade in and out (in dp).
        visibilityInterpolator - used for the fading edges’ fade-in and fade-out animations.