FocusHighlightHelper
class FocusHighlightHelper
Sets up the highlighting behavior when an item gains focus.
Summary
Public constructors |
|---|
|
This function is deprecated. This type should not be instantiated as it contains only static methods. |
Public functions |
|
|---|---|
java-static Unit |
setupBrowseItemFocusHighlight(Sets up the focus highlight behavior of a focused item in browse list row. |
java-static Unit |
setupHeaderItemFocusHighlight(adapter: ItemBridgeAdapter!)Sets up default focus highlight behavior of a focused item in header list. |
java-static Unit |
This function is deprecated. |
java-static Unit |
setupHeaderItemFocusHighlight(Sets up the focus highlight behavior of a focused item in header list. |
java-static Unit |
This function is deprecated. |
Public constructors
Public functions
setupBrowseItemFocusHighlight
java-static fun setupBrowseItemFocusHighlight(
adapter: ItemBridgeAdapter!,
zoomIndex: Int,
useDimmer: Boolean
): Unit
Sets up the focus highlight behavior of a focused item in browse list row. App usually does not call this method, it uses ListRowPresenter.
| Parameters | |
|---|---|
adapter: ItemBridgeAdapter! |
adapter of the list row. |
zoomIndex: Int |
One of |
useDimmer: Boolean |
Allow dimming browse item when unselected. |
setupHeaderItemFocusHighlight
java-static fun setupHeaderItemFocusHighlight(adapter: ItemBridgeAdapter!): Unit
Sets up default focus highlight behavior of a focused item in header list. It would scale the focused item and update onSelectLevelChanged. Equivalent to call setupHeaderItemFocusHighlight(itemBridgeAdapter, true).
| Parameters | |
|---|---|
adapter: ItemBridgeAdapter! |
The adapter of HeadersFragment. |
| See also | |
|---|---|
getBridgeAdapter |
java-static funsetupHeaderItemFocusHighlight(gridView: VerticalGridView!): Unit
Sets up default focus highlight behavior of a focused item in header list. It would scale the focused item and update onSelectLevelChanged. Equivalent to call setupHeaderItemFocusHighlight(gridView, true).
| Parameters | |
|---|---|
gridView: VerticalGridView! |
The header list. |
setupHeaderItemFocusHighlight
java-static fun setupHeaderItemFocusHighlight(
adapter: ItemBridgeAdapter!,
scaleEnabled: Boolean
): Unit
Sets up the focus highlight behavior of a focused item in header list.
| Parameters | |
|---|---|
adapter: ItemBridgeAdapter! |
The adapter of HeadersFragment. |
scaleEnabled: Boolean |
True if scale the item when focused, false otherwise. Note that |
| See also | |
|---|---|
getBridgeAdapter |
java-static funsetupHeaderItemFocusHighlight(
gridView: VerticalGridView!,
scaleEnabled: Boolean
): Unit
Sets up the focus highlight behavior of a focused item in header list.
| Parameters | |
|---|---|
gridView: VerticalGridView! |
The header list. |
scaleEnabled: Boolean |
True if scale the item when focused, false otherwise. Note that |