public class

SearchOrbView.Colors

extends java.lang.Object

 java.lang.Object

↳androidx.leanback.widget.SearchOrbView.Colors

Overview

A set of colors used to display the search orb.

Summary

Fields
public intbrightColor

A brighter version of the search orb used for animation.

public intcolor

The main color of the search orb.

public inticonColor

A color used to tint the search orb icon.

Constructors
publicColors(int color)

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

publicColors(int color, int brightColor)

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

publicColors(int color, int brightColor, int iconColor)

Constructs a color set using the given colors.

Methods
public static intgetBrightColor(int color)

Computes a default brighter version of the given color.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public int color

The main color of the search orb.

public int brightColor

A brighter version of the search orb used for animation.

public int iconColor

A color used to tint the search orb icon.

Constructors

public Colors(int color)

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

Parameters:

color: The main search orb color.

public Colors(int color, int brightColor)

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

Parameters:

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

public Colors(int color, int brightColor, int iconColor)

Constructs a color set using the given colors.

Parameters:

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

Methods

public static int getBrightColor(int color)

Computes a default brighter version of the given color.