java.lang.Object | ||
↳ | android.support.v17.leanback.widget.Presenter.ViewHolder | |
↳ | android.support.v17.leanback.widget.RowPresenter.ViewHolder |
Known Direct Subclasses |
A ViewHolder for a Row
.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
mColorDimmer |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v17.leanback.widget.Presenter.ViewHolder
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for ViewHolder.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the view holder for the Row header for this Row.
| |||||||||||
Returns the listener for item click event.
| |||||||||||
Returns the listener for item or row selection.
| |||||||||||
Returns the key listener.
| |||||||||||
Returns the Row bound to the View in this ViewHolder.
| |||||||||||
Returns the current selection level of the Row.
| |||||||||||
Returns whether the Row is in its expanded state.
| |||||||||||
Returns whether the Row is selected.
| |||||||||||
Sets the row view's activated status.
| |||||||||||
Sets the listener for item click event.
| |||||||||||
Sets the listener for item or row selection.
| |||||||||||
Sets a key listener.
| |||||||||||
Synchronizes the activated status of view to the last value passed through
setActivated(boolean) .
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v17.leanback.widget.Presenter.ViewHolder
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.support.v17.leanback.widget.FacetProvider
|
Constructor for ViewHolder.
view | The View bound to the Row. |
---|
Returns the view holder for the Row header for this Row.
Returns the listener for item click event.
Returns the listener for item or row selection.
Returns the current selection level of the Row.
Returns whether the Row is in its expanded state.
Returns whether the Row is selected.
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.
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)
.
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.
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.