belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
TitleView
public
class
TitleView
extends FrameLayout
implements
TitleViewAdapter.Provider
java.lang.Object | ||||
↳ | android.view.View | |||
↳ | android.view.ViewGroup | |||
↳ | android.widget.FrameLayout | |||
↳ | android.support.v17.leanback.widget.TitleView |
Title view for a leanback fragment.
Summary
Inherited constants |
---|
![]()
android.view.ViewGroup
|
![]()
android.view.View
|
Inherited fields |
---|
![]()
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 |
View
|
getSearchAffordanceView()
Returns the view for the search affordance. |
CharSequence
|
getTitle()
Returns the title text. |
TitleViewAdapter
|
getTitleViewAdapter()
Returns |
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 |
void
|
setTitle(CharSequence titleText)
Sets the title text. |
void
|
updateComponentsVisibility(int flags)
Based on the flag, it updates the visibility of the individual components - BadgeView, TextView and SearchView. |
Inherited methods | |
---|---|
![]()
android.widget.FrameLayout
| |
![]()
android.view.ViewGroup
|