belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
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(ItemBridgeAdapter adapter)
Sets up default focus highlight behavior of a focused item in header list. |
static
void
|
setupHeaderItemFocusHighlight(VerticalGridView gridView)
This method was deprecated
in API level 26.1.0.
Use |
static
void
|
setupHeaderItemFocusHighlight(VerticalGridView gridView, boolean scaleEnabled)
This method was deprecated
in API level 26.1.0.
Use |
static
void
|
setupHeaderItemFocusHighlight(ItemBridgeAdapter adapter, boolean scaleEnabled)
Sets up the focus highlight behavior of a focused item in header list. |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Public constructors
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. App usually does
not call this method, it uses ListRowPresenter(int, boolean)
.
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 (ItemBridgeAdapter adapter)
Sets up default focus highlight behavior of a focused item in header list. It would scale
the focused item and update
onSelectLevelChanged(RowHeaderPresenter.ViewHolder)
.
Equivalent to call setupHeaderItemFocusHighlight(itemBridgeAdapter, true).
Parameters | |
---|---|
adapter |
ItemBridgeAdapter : The adapter of HeadersFragment. |
setupHeaderItemFocusHighlight
void setupHeaderItemFocusHighlight (VerticalGridView gridView)
This method was deprecated
in API level 26.1.0.
Use setupHeaderItemFocusHighlight(ItemBridgeAdapter)
Sets up default focus highlight behavior of a focused item in header list. It would scale
the focused item and update
onSelectLevelChanged(RowHeaderPresenter.ViewHolder)
.
Equivalent to call setupHeaderItemFocusHighlight(gridView, true).
Parameters | |
---|---|
gridView |
VerticalGridView : The header list. |
setupHeaderItemFocusHighlight
void setupHeaderItemFocusHighlight (VerticalGridView gridView, boolean scaleEnabled)
This method was deprecated
in API level 26.1.0.
Use setupHeaderItemFocusHighlight(ItemBridgeAdapter, boolean)
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
onSelectLevelChanged(RowHeaderPresenter.ViewHolder)
will always be called regardless value of scaleEnabled. |
setupHeaderItemFocusHighlight
void setupHeaderItemFocusHighlight (ItemBridgeAdapter adapter, boolean scaleEnabled)
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
onSelectLevelChanged(RowHeaderPresenter.ViewHolder)
will always be called regardless value of scaleEnabled. |
Interfaces
- BaseGridView.OnKeyInterceptListener
- BaseGridView.OnMotionInterceptListener
- BaseGridView.OnTouchInterceptListener
- BaseGridView.OnUnhandledKeyListener
- BaseOnItemViewClickedListener
- BaseOnItemViewSelectedListener
- BrowseFrameLayout.OnChildFocusListener
- BrowseFrameLayout.OnFocusSearchListener
- FacetProvider
- FacetProviderAdapter
- FocusHighlight
- FragmentAnimationProvider
- ImeKeyMonitor
- ImeKeyMonitor.ImeKeyListener
- MultiActionsProvider
- OnActionClickedListener
- OnChildLaidOutListener
- OnChildSelectedListener
- OnItemViewClickedListener
- OnItemViewSelectedListener
- PlaybackSeekUi
- SearchBar.SearchBarListener
- SearchBar.SearchBarPermissionListener
- SearchEditText.OnKeyboardDismissListener
- SpeechRecognitionCallback
- TitleViewAdapter.Provider
- ViewHolderTask
Classes
- AbstractDetailsDescriptionPresenter
- AbstractDetailsDescriptionPresenter.ViewHolder
- AbstractMediaItemPresenter
- AbstractMediaItemPresenter.ViewHolder
- AbstractMediaListHeaderPresenter
- AbstractMediaListHeaderPresenter.ViewHolder
- Action
- ArrayObjectAdapter
- BaseCardView
- BaseCardView.LayoutParams
- BaseGridView
- BrowseFrameLayout
- ClassPresenterSelector
- ControlButtonPresenterSelector
- CursorObjectAdapter
- DetailsOverviewLogoPresenter
- DetailsOverviewLogoPresenter.ViewHolder
- DetailsOverviewRow
- DetailsOverviewRow.Listener
- DetailsOverviewRowPresenter
- DetailsOverviewRowPresenter.ViewHolder
- DetailsParallax
- DiffCallback
- DividerPresenter
- DividerRow
- FocusHighlightHelper
- FullWidthDetailsOverviewRowPresenter
- FullWidthDetailsOverviewRowPresenter.Listener
- FullWidthDetailsOverviewRowPresenter.ViewHolder
- FullWidthDetailsOverviewRowPresenter.ViewHolder.DetailsOverviewRowListener
- FullWidthDetailsOverviewSharedElementHelper
- GuidanceStylist
- GuidanceStylist.Guidance
- GuidedAction
- GuidedAction.Builder
- GuidedAction.BuilderBase
- GuidedActionDiffCallback
- GuidedActionEditText
- GuidedActionsStylist
- GuidedActionsStylist.ViewHolder
- GuidedDatePickerAction
- GuidedDatePickerAction.Builder
- GuidedDatePickerAction.BuilderBase
- HeaderItem
- HorizontalGridView
- HorizontalHoverCardSwitcher
- ImageCardView
- ItemAlignmentFacet
- ItemAlignmentFacet.ItemAlignmentDef
- ItemBridgeAdapter
- ItemBridgeAdapter.AdapterListener
- ItemBridgeAdapter.ViewHolder
- ItemBridgeAdapter.Wrapper
- ItemBridgeAdapterShadowOverlayWrapper
- ListRow
- ListRowHoverCardView
- ListRowPresenter
- ListRowPresenter.SelectItemViewHolderTask
- ListRowPresenter.ViewHolder
- ListRowView
- MultiActionsProvider.MultiAction
- ObjectAdapter
- ObjectAdapter.DataObserver
- OnChildViewHolderSelectedListener
- PageRow
- Parallax
- Parallax.FloatProperty
- Parallax.IntProperty
- Parallax.PropertyMarkerValue
- ParallaxEffect
- ParallaxTarget
- ParallaxTarget.DirectPropertyTarget
- ParallaxTarget.PropertyValuesHolderTarget
- PlaybackControlsRow
- PlaybackControlsRow.ClosedCaptioningAction
- PlaybackControlsRow.FastForwardAction
- PlaybackControlsRow.HighQualityAction
- PlaybackControlsRow.MoreActions
- PlaybackControlsRow.MultiAction
- PlaybackControlsRow.OnPlaybackProgressCallback
- PlaybackControlsRow.PictureInPictureAction
- PlaybackControlsRow.PlayPauseAction
- PlaybackControlsRow.RepeatAction
- PlaybackControlsRow.RewindAction
- PlaybackControlsRow.ShuffleAction
- PlaybackControlsRow.SkipNextAction
- PlaybackControlsRow.SkipPreviousAction
- PlaybackControlsRow.ThumbsAction
- PlaybackControlsRow.ThumbsDownAction
- PlaybackControlsRow.ThumbsUpAction
- PlaybackControlsRowPresenter
- PlaybackControlsRowPresenter.ViewHolder
- PlaybackRowPresenter
- PlaybackRowPresenter.ViewHolder
- PlaybackSeekDataProvider
- PlaybackSeekDataProvider.ResultCallback
- PlaybackSeekUi.Client
- PlaybackTransportRowPresenter
- PlaybackTransportRowPresenter.ViewHolder
- Presenter
- Presenter.ViewHolder
- Presenter.ViewHolderTask
- PresenterSelector
- PresenterSwitcher
- RecyclerViewParallax
- RecyclerViewParallax.ChildPositionProperty
- Row
- RowHeaderPresenter
- RowHeaderPresenter.ViewHolder
- RowHeaderView
- RowPresenter
- RowPresenter.ViewHolder
- SearchBar
- SearchEditText
- SearchOrbView
- SearchOrbView.Colors
- SectionRow
- ShadowOverlayContainer
- ShadowOverlayHelper
- ShadowOverlayHelper.Builder
- ShadowOverlayHelper.Options
- SinglePresenterSelector
- SparseArrayObjectAdapter
- SpeechOrbView
- TitleHelper
- TitleView
- TitleViewAdapter
- VerticalGridPresenter
- VerticalGridPresenter.ViewHolder
- VerticalGridView