Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

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>(@ColorInt color: Int)

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

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

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

<init>(@ColorInt color: Int, @ColorInt brightColor: Int, @ColorInt 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(@ColorInt 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(
    @ColorInt color: Int,
    @ColorInt 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(
    @ColorInt color: Int,
    @ColorInt brightColor: Int,
    @ColorInt 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

@ColorInt var brightColor: Int

A brighter version of the search orb used for animation.

color

@ColorInt var color: Int

The main color of the search orb.

iconColor

@ColorInt var iconColor: Int

A color used to tint the search orb icon.