FocusHighlightHelper
public class FocusHighlightHelper
Sets up the highlighting behavior when an item gains focus.
Summary
Public constructors |
|---|
|
This method is deprecated. This type should not be instantiated as it contains only static methods. |
Public methods |
|
|---|---|
static void |
setupBrowseItemFocusHighlight(Sets up the focus highlight behavior of a focused item in browse list row. |
static void |
Sets up default focus highlight behavior of a focused item in header list. |
static void |
This method is deprecated. |
static void |
setupHeaderItemFocusHighlight(Sets up the focus highlight behavior of a focused item in header list. |
static void |
This method is deprecated. |
Public constructors
Public methods
setupBrowseItemFocusHighlight
public static void setupBrowseItemFocusHighlight(
ItemBridgeAdapter adapter,
int zoomIndex,
boolean useDimmer
)
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 | |
|---|---|
ItemBridgeAdapter adapter |
adapter of the list row. |
int zoomIndex |
One of |
boolean useDimmer |
Allow dimming browse item when unselected. |
setupHeaderItemFocusHighlight
public static void setupHeaderItemFocusHighlight(ItemBridgeAdapter adapter)
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 | |
|---|---|
ItemBridgeAdapter adapter |
The adapter of HeadersFragment. |
| See also | |
|---|---|
getBridgeAdapter |
public static voidsetupHeaderItemFocusHighlight(VerticalGridView gridView)
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 | |
|---|---|
VerticalGridView gridView |
The header list. |
setupHeaderItemFocusHighlight
public static void setupHeaderItemFocusHighlight(
ItemBridgeAdapter adapter,
boolean scaleEnabled
)
Sets up the focus highlight behavior of a focused item in header list.
| Parameters | |
|---|---|
ItemBridgeAdapter adapter |
The adapter of HeadersFragment. |
boolean scaleEnabled |
True if scale the item when focused, false otherwise. Note that |
| See also | |
|---|---|
getBridgeAdapter |
public static voidsetupHeaderItemFocusHighlight(
VerticalGridView gridView,
boolean scaleEnabled
)
Sets up the focus highlight behavior of a focused item in header list.
| Parameters | |
|---|---|
VerticalGridView gridView |
The header list. |
boolean scaleEnabled |
True if scale the item when focused, false otherwise. Note that |