Skip to content

Most visited

Recently visited

navigation

FocusHighlightHelper

public class FocusHighlightHelper
extends Object

java.lang.Object
   ↳ android.support.v17.leanback.widget.FocusHighlightHelper


Sets up the highlighting behavior when an item gains focus.

Summary

Public constructors

FocusHighlightHelper()

Public methods

static void setupBrowseItemFocusHighlight(ItemBridgeAdapter adapter, int zoomIndex, boolean useDimmer)

Sets up the focus highlight behavior of a focused item in browse list row.

static void setupHeaderItemFocusHighlight(VerticalGridView gridView)

Sets up the focus highlight behavior of a focused item in header list.

Inherited methods

From class java.lang.Object

Public constructors

FocusHighlightHelper

FocusHighlightHelper ()

Public methods

setupBrowseItemFocusHighlight

void setupBrowseItemFocusHighlight (ItemBridgeAdapter adapter, 
                int zoomIndex, 
                boolean useDimmer)

Sets up the focus highlight behavior of a focused item in browse list row.

Parameters
adapter ItemBridgeAdapter: adapter of the list row.
zoomIndex int: One of ZOOM_FACTOR_SMALL ZOOM_FACTOR_XSMALL ZOOM_FACTOR_MEDIUM ZOOM_FACTOR_LARGE ZOOM_FACTOR_NONE.
useDimmer boolean: Allow dimming browse item when unselected.

setupHeaderItemFocusHighlight

void setupHeaderItemFocusHighlight (VerticalGridView gridView)

Sets up the focus highlight behavior of a focused item in header list.

Parameters
gridView VerticalGridView: the header list.
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.