belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
RowPresenter.ViewHolder
public
static
class
RowPresenter.ViewHolder
extends Presenter.ViewHolder
java.lang.Object | ||
↳ | android.support.v17.leanback.widget.Presenter.ViewHolder | |
↳ | android.support.v17.leanback.widget.RowPresenter.ViewHolder |
Known Direct Subclasses |
Known Indirect Subclasses |
A ViewHolder for a Row
.
Summary
Fields | |
---|---|
protected
final
ColorOverlayDimmer |
mColorDimmer
|
Inherited fields |
---|
From
class
android.support.v17.leanback.widget.Presenter.ViewHolder
|
Public constructors | |
---|---|
RowPresenter.ViewHolder(View view)
Constructor for ViewHolder. |
Public methods | |
---|---|
final
RowHeaderPresenter.ViewHolder
|
getHeaderViewHolder()
Returns the view holder for the Row header for this Row. |
final
BaseOnItemViewClickedListener
|
getOnItemViewClickedListener()
Returns the listener for item click event. |
final
BaseOnItemViewSelectedListener
|
getOnItemViewSelectedListener()
Returns the listener for item or row selection. |
View.OnKeyListener
|
getOnKeyListener()
Returns the key listener. |
final
Row
|
getRow()
Returns the row bound to this ViewHolder. |
final
Object
|
getRowObject()
Returns the Row object bound to this ViewHolder. |
final
float
|
getSelectLevel()
Returns the current selection level of the Row. |
Object
|
getSelectedItem()
Return currently selected item inside a row ViewHolder. |
Presenter.ViewHolder
|
getSelectedItemViewHolder()
Return |
final
boolean
|
isExpanded()
Returns whether the Row is in its expanded state. |
final
boolean
|
isSelected()
Returns whether the Row is selected. |
final
void
|
setActivated(boolean activated)
Sets the row view's activated status. |
final
void
|
setOnItemViewClickedListener(BaseOnItemViewClickedListener listener)
Sets the listener for item click event. |
final
void
|
setOnItemViewSelectedListener(BaseOnItemViewSelectedListener listener)
Sets the listener for item or row selection. |
void
|
setOnKeyListener(View.OnKeyListener keyListener)
Sets a key listener. |
final
void
|
syncActivatedStatus(View view)
Synchronizes the activated status of view to the last value passed through
|
Inherited methods | |
---|---|
From
class
android.support.v17.leanback.widget.Presenter.ViewHolder
| |
From
class
java.lang.Object
| |
From
interface
android.support.v17.leanback.widget.FacetProvider
|
Fields
Public constructors
RowPresenter.ViewHolder
RowPresenter.ViewHolder (View view)
Constructor for ViewHolder.
Parameters | |
---|---|
view |
View : The View bound to the Row.
|
Public methods
getHeaderViewHolder
RowHeaderPresenter.ViewHolder getHeaderViewHolder ()
Returns the view holder for the Row header for this Row.
Returns | |
---|---|
RowHeaderPresenter.ViewHolder |
getOnItemViewClickedListener
BaseOnItemViewClickedListener getOnItemViewClickedListener ()
Returns the listener for item click event.
Returns | |
---|---|
BaseOnItemViewClickedListener |
getOnItemViewSelectedListener
BaseOnItemViewSelectedListener getOnItemViewSelectedListener ()
Returns the listener for item or row selection.
Returns | |
---|---|
BaseOnItemViewSelectedListener |
getOnKeyListener
View.OnKeyListener getOnKeyListener ()
Returns the key listener.
Returns | |
---|---|
View.OnKeyListener |
getRow
Row getRow ()
Returns the row bound to this ViewHolder. Returns null if the row is not an instance of
Row
.
Returns | |
---|---|
Row |
The row bound to this ViewHolder. Returns null if the row is not an instance of
Row .
|
getRowObject
Object getRowObject ()
Returns the Row object bound to this ViewHolder.
Returns | |
---|---|
Object |
The row object bound to this ViewHolder. |
getSelectLevel
float getSelectLevel ()
Returns the current selection level of the Row.
Returns | |
---|---|
float |
getSelectedItem
Object getSelectedItem ()
Return currently selected item inside a row ViewHolder.
Returns | |
---|---|
Object |
The selected item. |
getSelectedItemViewHolder
Presenter.ViewHolder getSelectedItemViewHolder ()
Return RowPresenter.ViewHolder
of currently selected item inside a row ViewHolder.
Returns | |
---|---|
Presenter.ViewHolder |
The selected item's ViewHolder. |
isExpanded
boolean isExpanded ()
Returns whether the Row is in its expanded state.
Returns | |
---|---|
boolean |
true if the Row is expanded, false otherwise. |
isSelected
boolean isSelected ()
Returns whether the Row is selected.
Returns | |
---|---|
boolean |
true if the Row is selected, false otherwise. |
setActivated
void setActivated (boolean activated)
Sets the row view's activated status. The status will be applied to children through
syncActivatedStatus(View)
. Application should only call this function
when getSyncActivatePolicy()
is
SYNC_ACTIVATED_CUSTOM
; otherwise the value will
be overwritten when expanded or selected status changes.
Parameters | |
---|---|
activated |
boolean |
setOnItemViewClickedListener
void setOnItemViewClickedListener (BaseOnItemViewClickedListener listener)
Sets the listener for item click event. RowPresenter does nothing but subclass of
RowPresenter may fire item click event if it has the concept of item.
OnItemViewClickedListener will override View.OnClickListener
that
item presenter sets during onCreateViewHolder(ViewGroup)
.
Parameters | |
---|---|
listener |
BaseOnItemViewClickedListener |
setOnItemViewSelectedListener
void setOnItemViewSelectedListener (BaseOnItemViewSelectedListener listener)
Sets the listener for item or row selection. RowPresenter fires row selection
event with null item. A subclass of RowPresenter e.g. ListRowPresenter
may
fire a selection event with selected item.
Parameters | |
---|---|
listener |
BaseOnItemViewSelectedListener |
setOnKeyListener
void setOnKeyListener (View.OnKeyListener keyListener)
Sets a key listener.
Parameters | |
---|---|
keyListener |
View.OnKeyListener |
syncActivatedStatus
void syncActivatedStatus (View view)
Synchronizes the activated status of view to the last value passed through
setActivated(boolean)
. No operation if
setActivated(boolean)
is never called. Normally
application does not need to call this method, ListRowPresenter
automatically
calls this method when a child is attached to list row. However if
application writes its own custom RowPresenter, it should call this method
when attaches a child to the row view.
Parameters | |
---|---|
view |
View |
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