java.lang.Object | ||
↳ | android.support.v17.leanback.widget.Presenter | |
↳ | android.support.v17.leanback.widget.AbstractDetailsDescriptionPresenter |
An abstract Presenter
for rendering a detailed description of an
item. Typically this Presenter will be used in a DetailsOverviewRowPresenter
or PlaybackControlsRowPresenter
.
Subclasses must override onBindDescription(AbstractDetailsDescriptionPresenter.ViewHolder, Object)
to implement the data
binding for this Presenter.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AbstractDetailsDescriptionPresenter.ViewHolder |
The ViewHolder for the AbstractDetailsDescriptionPresenter .
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Binds a
View to an item.
| |||||||||||
Creates a new
View .
| |||||||||||
Unbinds a
View from an item.
| |||||||||||
Called when a view created by this presenter has been attached to a window.
| |||||||||||
Called when a view created by this presenter has been detached from its window.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Binds the data from the item to the ViewHolder.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v17.leanback.widget.Presenter
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.support.v17.leanback.widget.FacetProvider
|
Binds a View
to an item.
Creates a new View
.
Unbinds a View
from an item. Any expensive references may be
released here, and any fields that are not bound for every item should be
cleared here.
Called when a view created by this presenter has been attached to a window.
This can be used as a reasonable signal that the view is about to be seen
by the user. If the adapter previously freed any resources in
onViewDetachedFromWindow(ViewHolder)
those resources should be restored here.
holder | Holder of the view being attached |
---|
Called when a view created by this presenter has been detached from its window.
Becoming detached from the window is not necessarily a permanent condition; the consumer of an presenter's views may choose to cache views offscreen while they are not visible, attaching and detaching them as appropriate.
Any view property animations should be cancelled here or the view may fail to be recycled.holder | Holder of the view being detached |
---|
Binds the data from the item to the ViewHolder. The item is typically associated with
a DetailsOverviewRow
or PlaybackControlsRow
.
vh | The ViewHolder for this details description view. |
---|---|
item | The item being presented. |