TitleHelper

open class TitleHelper
kotlin.Any
   ↳ androidx.leanback.widget.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
<init>(sceneRoot: ViewGroup!, titleView: View!)

Public methods
open View!

Returns the TitleView

open Unit

Shows the title.

open ViewGroup!

Returns the scene root ViewGroup.

open BrowseFrameLayout.OnFocusSearchListener!

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

Public constructors

<init>

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

Public methods

getTitleView

open fun getTitleView(): View!

Returns the TitleView

showTitle

open fun showTitle(show: Boolean): Unit

Shows the title.

getSceneRoot

open fun getSceneRoot(): ViewGroup!

Returns the scene root ViewGroup.

getOnFocusSearchListener

open 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.