setFadingEdgeColor

open fun setFadingEdgeColor(@ColorInt color: Int)

Sets an overlay color for fading edges. Zero (transparent) instead fades the content's alpha to reveal the actual background on every API level.


open fun setFadingEdgeColor(@ColorInt color: Int, @Nullable runnable: @Nullable Runnable)

Sets the color for fading edge rendering with an optional completion callback.