Android APIs
public class

TitleView

extends FrameLayout
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ android.support.v17.leanback.widget.TitleView

Class Overview

Title view for a leanback fragment.

Summary

[Expand]
Inherited XML Attributes
From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
TitleView(Context context)
TitleView(Context context, AttributeSet attrs)
TitleView(Context context, AttributeSet attrs, int defStyleAttr)
Public Methods
void enableAnimation(boolean enable)
Enables or disables any view animations.
Drawable getBadgeDrawable()
Returns the badge drawable.
SearchOrbView.Colors getSearchAffordanceColors()
Returns the SearchOrbView.Colors used to draw the search affordance.
View getSearchAffordanceView()
Returns the view for the search affordance.
CharSequence getTitle()
Returns the title text.
void setBadgeDrawable(Drawable drawable)
Sets the badge drawable.
void setOnSearchClickedListener(View.OnClickListener listener)
Sets the listener to be called when the search affordance is clicked.
void setSearchAffordanceColors(SearchOrbView.Colors colors)
Sets the SearchOrbView.Colors used to draw the search affordance.
void setTitle(String titleText)
Sets the title text.
[Expand]
Inherited Methods
From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.view.ViewParent
From interface android.view.ViewManager
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public TitleView (Context context)

public TitleView (Context context, AttributeSet attrs)

public TitleView (Context context, AttributeSet attrs, int defStyleAttr)

Public Methods

public void enableAnimation (boolean enable)

Enables or disables any view animations.

public Drawable getBadgeDrawable ()

Returns the badge drawable.

public SearchOrbView.Colors getSearchAffordanceColors ()

Returns the SearchOrbView.Colors used to draw the search affordance.

public View getSearchAffordanceView ()

Returns the view for the search affordance.

public CharSequence getTitle ()

Returns the title text.

public void setBadgeDrawable (Drawable drawable)

Sets the badge drawable. If non-null, the drawable is displayed instead of the title text.

public void setOnSearchClickedListener (View.OnClickListener listener)

Sets the listener to be called when the search affordance is clicked.

public void setSearchAffordanceColors (SearchOrbView.Colors colors)

Sets the SearchOrbView.Colors used to draw the search affordance.

public void setTitle (String titleText)

Sets the title text.