SearchOrbView.Colors


public class SearchOrbView.Colors


A set of colors used to display the search orb.

Summary

Public fields

@ColorInt int

A brighter version of the search orb used for animation.

@ColorInt int

The main color of the search orb.

@ColorInt int

A color used to tint the search orb icon.

Public constructors

Colors(@ColorInt int color)

Constructs a color set using the given color for the search orb.

Colors(@ColorInt int color, @ColorInt int brightColor)

Constructs a color set using the given colors for the search orb.

Colors(
    @ColorInt int color,
    @ColorInt int brightColor,
    @ColorInt int iconColor
)

Constructs a color set using the given colors.

Public methods

static int
getBrightColor(int color)

Computes a default brighter version of the given color.

Public fields

brightColor

Added in 1.1.0
public @ColorInt int brightColor

A brighter version of the search orb used for animation.

color

Added in 1.1.0
public @ColorInt int color

The main color of the search orb.

iconColor

Added in 1.1.0
public @ColorInt int iconColor

A color used to tint the search orb icon.

Public constructors

Colors

Added in 1.1.0
public Colors(@ColorInt int color)

Constructs a color set using the given color for the search orb. Other colors are provided by the framework.

Parameters
@ColorInt int color

The main search orb color.

Colors

Added in 1.1.0
public Colors(@ColorInt int color, @ColorInt int brightColor)

Constructs a color set using the given colors for the search orb. Other colors are provided by the framework.

Parameters
@ColorInt int color

The main search orb color.

@ColorInt int brightColor

A brighter version of the search orb used for animation.

Colors

Added in 1.1.0
public Colors(
    @ColorInt int color,
    @ColorInt int brightColor,
    @ColorInt int iconColor
)

Constructs a color set using the given colors.

Parameters
@ColorInt int color

The main search orb color.

@ColorInt int brightColor

A brighter version of the search orb used for animation.

@ColorInt int iconColor

A color used to tint the search orb icon.

Public methods

getBrightColor

Added in 1.1.0
public static int getBrightColor(int color)

Computes a default brighter version of the given color.