SearchOrbView.Colors

class SearchOrbView.Colors


A set of colors used to display the search orb.

Summary

Public constructors

Colors(color: @ColorInt Int)

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

Colors(color: @ColorInt Int, brightColor: @ColorInt Int)

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

Colors(
    color: @ColorInt Int,
    brightColor: @ColorInt Int,
    iconColor: @ColorInt Int
)

Constructs a color set using the given colors.

Public functions

java-static Int

Computes a default brighter version of the given color.

Public properties

@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

Added in 1.1.0
Colors(color: @ColorInt Int)

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

Parameters
color: @ColorInt Int

The main search orb color.

Colors

Added in 1.1.0
Colors(color: @ColorInt Int, brightColor: @ColorInt Int)

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

Parameters
color: @ColorInt Int

The main search orb color.

brightColor: @ColorInt Int

A brighter version of the search orb used for animation.

Colors

Added in 1.1.0
Colors(
    color: @ColorInt Int,
    brightColor: @ColorInt Int,
    iconColor: @ColorInt Int
)

Constructs a color set using the given colors.

Parameters
color: @ColorInt Int

The main search orb color.

brightColor: @ColorInt Int

A brighter version of the search orb used for animation.

iconColor: @ColorInt Int

A color used to tint the search orb icon.

Public functions

getBrightColor

Added in 1.1.0
java-static fun getBrightColor(color: Int): Int

Computes a default brighter version of the given color.

Public properties

brightColor

Added in 1.1.0
val brightColor: @ColorInt Int

A brighter version of the search orb used for animation.

color

Added in 1.1.0
val color: @ColorInt Int

The main color of the search orb.

iconColor

Added in 1.1.0
val iconColor: @ColorInt Int

A color used to tint the search orb icon.