TitleHelper


class TitleHelper


Helper for managing androidx.leanback.widget.TitleView, including transitions and focus movement. Assumes the TitleView is overlayed on the topmost portion of the scene root view.

Summary

Public constructors

TitleHelper(sceneRoot: ViewGroup!, titleView: View!)

Public functions

BrowseFrameLayout.OnFocusSearchListener!

Returns a androidx.leanback.widget.BrowseFrameLayout.OnFocusSearchListener which may be used to manage focus switching between the title view and scene root.

ViewGroup!

Returns the scene root ViewGroup.

View!

Returns the TitleView

Unit

Shows the title.

Public constructors

TitleHelper

Added in 1.1.0
TitleHelper(sceneRoot: ViewGroup!, titleView: View!)

Public functions

getOnFocusSearchListener

Added in 1.1.0
fun getOnFocusSearchListener(): BrowseFrameLayout.OnFocusSearchListener!

Returns a androidx.leanback.widget.BrowseFrameLayout.OnFocusSearchListener which may be used to manage focus switching between the title view and scene root.

getSceneRoot

Added in 1.1.0
fun getSceneRoot(): ViewGroup!

Returns the scene root ViewGroup.

getTitleView

Added in 1.1.0
fun getTitleView(): View!

Returns the TitleView

showTitle

Added in 1.1.0
fun showTitle(show: Boolean): Unit

Shows the title.