Register now for Android Dev Summit 2019!

Colors

open class Colors
kotlin.Any
   ↳ androidx.leanback.widget.SearchOrbView.Colors

A set of colors used to display the search orb.

Summary

Public constructors

<init>(color: Int)

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

<init>(color: Int, brightColor: Int)

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

<init>(color: Int, brightColor: Int, iconColor: Int)

Constructs a color set using the given colors.

Public methods

open static Int

Computes a default brighter version of the given color.

Properties

Int

A brighter version of the search orb used for animation.

Int

The main color of the search orb.

Int

A color used to tint the search orb icon.

Public constructors

<init>

Colors(color: Int)

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

Parameters
color Int: The main search orb color.

<init>

Colors(color: Int, brightColor: Int)

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

Parameters
color Int: The main search orb color.
brightColor Int: A brighter version of the search orb used for animation.

<init>

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

Constructs a color set using the given colors.

Parameters
color Int: The main search orb color.
brightColor Int: A brighter version of the search orb used for animation.
iconColor Int: A color used to tint the search orb icon.

Public methods

getBrightColor

open static fun getBrightColor(color: Int): Int

Computes a default brighter version of the given color.

Properties

brightColor

var brightColor: Int

A brighter version of the search orb used for animation.

color

var color: Int

The main color of the search orb.

iconColor

var iconColor: Int

A color used to tint the search orb icon.