belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
SearchOrbView
public
class
SearchOrbView
extends FrameLayout
implements
View.OnClickListener
java.lang.Object | ||||
↳ | android.view.View | |||
↳ | android.view.ViewGroup | |||
↳ | android.widget.FrameLayout | |||
↳ | android.support.v17.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 |
---|
![]()
android.view.ViewGroup
|
![]()
android.view.View
|
Inherited fields |
---|
![]()
android.view.View
|
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 was deprecated
in API level 22.1.0.
Use |
void
|
setOrbColors(SearchOrbView.Colors colors)
Sets the |
void
|
setOrbIcon(Drawable icon)
Sets the orb icon. |
Protected methods | |
---|---|
void
|
onAttachedToWindow()
|
void
|
onDetachedFromWindow()
|
void
|
onFocusChanged(boolean gainFocus, int direction, Rect previouslyFocusedRect)
|
Inherited methods | |
---|---|
![]()
android.widget.FrameLayout
| |
![]()
android.view.ViewGroup
|