Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!
added in version 1.0.0
belongs to Maven artifact androidx.leanback:leanback:1.0.0

SearchOrbView.Colors

public static class SearchOrbView.Colors
extends Object

java.lang.Object
   ↳ androidx.leanback.widget.SearchOrbView.Colors


A set of colors used to display the search orb.

Summary

Fields

public int brightColor

A brighter version of the search orb used for animation.

public int color

The main color of the search orb.

public int iconColor

A color used to tint the search orb icon.

Public constructors

SearchOrbView.Colors(int color)

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

SearchOrbView.Colors(int color, int brightColor)

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

SearchOrbView.Colors(int color, int brightColor, 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.

Inherited methods

Fields

brightColor

added in version 1.0.0
public int brightColor

A brighter version of the search orb used for animation.

color

added in version 1.0.0
public int color

The main color of the search orb.

iconColor

added in version 1.0.0
public int iconColor

A color used to tint the search orb icon.

Public constructors

SearchOrbView.Colors

added in version 1.0.0
public SearchOrbView.Colors (int color)

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.

SearchOrbView.Colors

added in version 1.0.0
public SearchOrbView.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 int: The main search orb color.

brightColor int: A brighter version of the search orb used for animation.

SearchOrbView.Colors

added in version 1.0.0
public SearchOrbView.Colors (int color, 
                int brightColor, 
                int iconColor)

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

added in version 1.0.0
public static int getBrightColor (int color)

Computes a default brighter version of the given color.

Parameters
color int

Returns
int