SurfaceColors

Provides a convenient way to get color values of tonal variations of R.attr.colorSurface.

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun getColor(@NonNull context: Context): Int
Returns the tonal surface color value in RGB.
Link copied to clipboard
open fun getColorForElevation(@NonNull context: Context, @Dimension elevation: Float): Int
Returns the corresponding surface color in RGB with the given elevation.
Link copied to clipboard
open fun valueOf(name: String): SurfaceColors

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.