Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
Android 0.0.0 Developer Preview
belongs to Maven artifact androidx.leanback:leanback:1.1.0-alpha01

TitleHelper

public class TitleHelper
extends Object

java.lang.Object
   ↳ androidx.leanback.widget.TitleHelper


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

Summary

Public constructors

TitleHelper(ViewGroup sceneRoot, View titleView)

Public methods

BrowseFrameLayout.OnFocusSearchListener getOnFocusSearchListener()

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

ViewGroup getSceneRoot()

Returns the scene root ViewGroup.

View getTitleView()

Returns the TitleView

void showTitle(boolean show)

Shows the title.

Inherited methods

Public constructors

TitleHelper

public TitleHelper (ViewGroup sceneRoot, 
                View titleView)

Parameters
sceneRoot ViewGroup

titleView View

Public methods

getOnFocusSearchListener

public BrowseFrameLayout.OnFocusSearchListener getOnFocusSearchListener ()

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

Returns
BrowseFrameLayout.OnFocusSearchListener

getSceneRoot

public ViewGroup getSceneRoot ()

Returns the scene root ViewGroup.

Returns
ViewGroup

getTitleView

public View getTitleView ()

Returns the TitleView

Returns
View

showTitle

public void showTitle (boolean show)

Shows the title.

Parameters
show boolean