TitleView
open class TitleView : FrameLayout, TitleViewAdapter.Provider
kotlin.Any | ||||
↳ | android.view.View | |||
↳ | android.view.ViewGroup | |||
↳ | android.widget.FrameLayout | |||
↳ | androidx.leanback.widget.TitleView |
Title view for a leanback fragment.
Summary
Public constructors | |
---|---|
<init>(context: Context!, attrs: AttributeSet!) |
|
<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int) |
Public methods | |
---|---|
open Unit |
enableAnimation(enable: Boolean) Enables or disables any view animations. |
open Drawable! |
Returns the badge drawable. |
open SearchOrbView.Colors! |
Returns the |
open View! |
Returns the view for the search affordance. |
open CharSequence! |
getTitle() Returns the title text. |
open TitleViewAdapter! | |
open Unit |
setBadgeDrawable(drawable: Drawable!) Sets the badge drawable. |
open Unit |
setOnSearchClickedListener(listener: OnClickListener!) Sets the listener to be called when the search affordance is clicked. |
open Unit |
Sets the |
open Unit |
setTitle(titleText: CharSequence!) Sets the title text. |
open Unit |
updateComponentsVisibility(flags: Int) Based on the flag, it updates the visibility of the individual components - BadgeView, TextView and SearchView. |
Public constructors
<init>
TitleView(context: Context!)
<init>
TitleView(
context: Context!,
attrs: AttributeSet!)
<init>
TitleView(
context: Context!,
attrs: AttributeSet!,
defStyleAttr: Int)
Public methods
enableAnimation
open fun enableAnimation(enable: Boolean): Unit
Enables or disables any view animations.
getSearchAffordanceColors
open fun getSearchAffordanceColors(): SearchOrbView.Colors!
Returns the SearchOrbView.Colors
used to draw the search affordance.
getSearchAffordanceView
open fun getSearchAffordanceView(): View!
Returns the view for the search affordance.
getTitleViewAdapter
open fun getTitleViewAdapter(): TitleViewAdapter!
setBadgeDrawable
open fun setBadgeDrawable(drawable: Drawable!): Unit
Sets the badge drawable. If non-null, the drawable is displayed instead of the title text.
setOnSearchClickedListener
open fun setOnSearchClickedListener(listener: OnClickListener!): Unit
Sets the listener to be called when the search affordance is clicked.
setSearchAffordanceColors
open fun setSearchAffordanceColors(colors: SearchOrbView.Colors!): Unit
Sets the SearchOrbView.Colors
used to draw the search affordance.