Register now for Android Dev Summit 2019!

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 BrowseFrameLayout.OnFocusSearchListener!

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

open ViewGroup!

Returns the scene root ViewGroup.

open View!

Returns the TitleView

open Unit

Shows the title.

Public constructors

<init>

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

Public methods

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.

getSceneRoot

open fun getSceneRoot(): ViewGroup!

Returns the scene root ViewGroup.

getTitleView

open fun getTitleView(): View!

Returns the TitleView

showTitle

open fun showTitle(show: Boolean): Unit

Shows the title.