Colors
open class Colors
kotlin.Any | |
↳ | androidx.leanback.widget.SearchOrbView.Colors |
A set of colors used to display the search orb.
Summary
Public constructors | |
---|---|
Constructs a color set using the given color for the search orb. |
|
Constructs a color set using the given colors for the search orb. |
|
Constructs a color set using the given colors. |
Public methods | |
---|---|
open static Int |
getBrightColor(color: 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.