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 SearchOrbView.Colors used to display the search orb.

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 setOrbColors(Colors) instead.

void setOrbColors(SearchOrbView.Colors colors)

Sets the SearchOrbView.Colors used to display the search orb.

void setOrbIcon(Drawable icon)

Sets the orb icon.

Protected methods

void onAttachedToWindow()
void onDetachedFromWindow()
void onFocusChanged(boolean gainFocus, int direction, Rect previouslyFocusedRect)

Inherited methods