ColorBuilders


class ColorBuilders


Builders for color utilities for layout elements.

Summary

Nested types

@RequiresSchemaVersion(major = 1, minor = 300)
interface ColorBuilders.Brush

Interface defining a Brush describes how something is drawn on screen.

@RequiresSchemaVersion(major = 1, minor = 0)
class ColorBuilders.ColorProp

A property defining a color.

Builder for ColorProp

@RequiresSchemaVersion(major = 1, minor = 300)
class ColorBuilders.ColorStop

A color and an offset, determining a color position in a gradient.

Builder for ColorStop

A sweep gradient with the given colors dispersed around its center with offsets defined in each color stop.

Builder for SweepGradient.

Public functions

java-static ColorBuilders.ColorProp
@RequiresSchemaVersion(major = 1, minor = 0)
argb(colorArgb: @ColorInt Int)

Shortcut for building a ColorProp using an ARGB value.

Public functions

argb

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
java-static fun argb(colorArgb: @ColorInt Int): ColorBuilders.ColorProp

Shortcut for building a ColorProp using an ARGB value.