ShadowRenderer

A helper class to draw linear or radial shadows using gradient shaders.

Constructors

Link copied to clipboard
constructor()
constructor(color: Int)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun drawCornerShadow(@NonNull canvas: Canvas, @Nullable matrix: Matrix, @NonNull bounds: RectF, elevation: Int, startAngle: Float, sweepAngle: Float)
Draws a corner shadow on the canvas in the current bounds with the matrix transform applied.
Link copied to clipboard
open fun drawEdgeShadow(@NonNull canvas: Canvas, @Nullable transform: Matrix, @NonNull bounds: RectF, elevation: Int)
Draws an edge shadow on the canvas in the current bounds with the matrix transform applied.
Link copied to clipboard
open fun drawInnerCornerShadow(@NonNull canvas: Canvas, @Nullable matrix: Matrix, @NonNull bounds: RectF, elevation: Int, startAngle: Float, sweepAngle: Float, @NonNull cornerPosition: Array<Float>)
Link copied to clipboard
open fun setShadowColor(color: Int)