ColorValue

data class ColorValue(val alpha: Float, @ColorInt val color: Int)

Background color and opacity recorded while applying an elevation concept.

Constructors

Link copied to clipboard
constructor(alpha: Float, @ColorInt color: Int)

Properties

Link copied to clipboard

normalized opacity from 0 to 1.

Link copied to clipboard
val color: Int

ARGB color, or -1 when no gradient background color was available.

Functions

Link copied to clipboard
open override fun toString(): String

Returns the recorded opacity and color for logging.