ColorBuilders


public final class ColorBuilders


Builders for color utilities for layout elements.

Summary

Nested types

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

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

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

A property defining a color.

Builder for ColorProp

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

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

Builder for ColorStop

@RequiresSchemaVersion(major = 1, minor = 300)
public final class ColorBuilders.SweepGradient implements ColorBuilders.Brush

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

Builder for SweepGradient.

Public methods

static @NonNull ColorBuilders.ColorProp
@RequiresSchemaVersion(major = 1, minor = 0)
argb(@ColorInt int colorArgb)

Shortcut for building a ColorProp using an ARGB value.

Public methods

argb

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public static @NonNull ColorBuilders.ColorProp argb(@ColorInt int colorArgb)

Shortcut for building a ColorProp using an ARGB value.