public
class
DividerPresenter
extends Presenter
java.lang.Object | ||
↳ | android.support.v17.leanback.widget.Presenter | |
↳ | android.support.v17.leanback.widget.DividerPresenter |
DividerPresenter provides a default presentation for DividerRow
in HeadersFragment.
Public constructors | |
---|---|
DividerPresenter()
|
Public methods | |
---|---|
void
|
onBindViewHolder(Presenter.ViewHolder viewHolder, Object item)
Binds a |
Presenter.ViewHolder
|
onCreateViewHolder(ViewGroup parent)
Creates a new |
void
|
onUnbindViewHolder(Presenter.ViewHolder viewHolder)
Unbinds a |
Inherited methods | |
---|---|
From
class
android.support.v17.leanback.widget.Presenter
| |
From
class
java.lang.Object
| |
From
interface
android.support.v17.leanback.widget.FacetProvider
|
DividerPresenter ()
void onBindViewHolder (Presenter.ViewHolder viewHolder, Object item)
Binds a View
to an item.
Parameters | |
---|---|
viewHolder |
Presenter.ViewHolder
|
item |
Object
|
Presenter.ViewHolder onCreateViewHolder (ViewGroup parent)
Creates a new View
.
Parameters | |
---|---|
parent |
ViewGroup
|
Returns | |
---|---|
Presenter.ViewHolder |
void onUnbindViewHolder (Presenter.ViewHolder viewHolder)
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.
Parameters | |
---|---|
viewHolder |
Presenter.ViewHolder
|