SearchOrbView
public
class
SearchOrbView
extends FrameLayout
implements
View.OnClickListener
| java.lang.Object | ||||
| ↳ | android.view.View | |||
| ↳ | android.view.ViewGroup | |||
| ↳ | android.widget.FrameLayout | |||
| ↳ | androidx.leanback.widget.SearchOrbView | |||
A widget that draws a search affordance, represented by a round background and an icon.
The background color and icon can be customized.Summary
Nested classes | |
|---|---|
class |
SearchOrbView.Colors
A set of colors used to display the search orb. |
Inherited constants |
|---|
Inherited fields |
|---|
Public constructors | |
|---|---|
SearchOrbView(Context context)
|
|
SearchOrbView(Context context, AttributeSet attrs)
|
|
SearchOrbView(Context context, AttributeSet attrs, int defStyleAttr)
|
|
Public methods | |
|---|---|
void
|
enableOrbColorAnimation(boolean enable)
Enables or disables the orb color animation. |
int
|
getOrbColor()
Returns the orb color |
SearchOrbView.Colors
|
getOrbColors()
Returns the |
Drawable
|
getOrbIcon()
Returns the orb icon |
void
|
onClick(View view)
|
void
|
setOnOrbClickedListener(View.OnClickListener listener)
Sets the on click listener for the orb. |
void
|
setOrbColor(int color)
Sets the background color of the search orb. |
void
|
setOrbColor(int color, int brightColor)
This method is deprecated.
Use |
void
|
setOrbColors(SearchOrbView.Colors colors)
Sets the |
void</code
| |