Skip to content

Most visited

Recently visited

navigation

TitleHelper

public class TitleHelper
extends Object

java.lang.Object
   ↳ android.support.v17.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

From class java.lang.Object

Public constructors

TitleHelper

TitleHelper (ViewGroup sceneRoot, 
                View titleView)

Parameters
sceneRoot ViewGroup
titleView View

Public methods

getOnFocusSearchListener

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

ViewGroup getSceneRoot ()

Returns the scene root ViewGroup.

Returns
ViewGroup

getTitleView

View getTitleView ()

Returns the TitleView

Returns
View

showTitle

void showTitle (boolean show)

Shows the title.

Parameters
show boolean
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.