Most visited

Recently visited

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.

Hooray!