public
class
ItemBridgeAdapter.ViewHolder
extends RecyclerView.ViewHolder
implements
FacetProvider
java.lang.Object | ||
↳ | android.support.v7.widget.RecyclerView.ViewHolder | |
↳ | android.support.v17.leanback.widget.ItemBridgeAdapter.ViewHolder |
ViewHolder for the ItemBridgeAdapter.
Inherited fields |
---|
From
class
android.support.v7.widget.RecyclerView.ViewHolder
|
Public methods | |
---|---|
final
Object
|
getExtraObject()
Get extra object associated with the view. |
Object
|
getFacet(Class<?> facetClass)
Queries optional implemented facet. |
final
Object
|
getItem()
Get currently bound object. |
final
Presenter
|
getPresenter()
Get |
final
Presenter.ViewHolder
|
getViewHolder()
Get |
void
|
setExtraObject(Object object)
Set extra object associated with the view. |
Inherited methods | |
---|---|
From
class
android.support.v7.widget.RecyclerView.ViewHolder
| |
From
class
java.lang.Object
| |
From
interface
android.support.v17.leanback.widget.FacetProvider
|
Object getExtraObject ()
Get extra object associated with the view. Developer can attach
any customized UI object in addition to Presenter.ViewHolder
.
A typical use case is attaching an animator object.
Returns | |
---|---|
Object |
Object getFacet (Class<?> facetClass)
Queries optional implemented facet.
Parameters | |
---|---|
facetClass |
Class :
Facet classes to query, examples are: class of
ItemAlignmentFacet . |
Returns | |
---|---|
Object |
Facet implementation for the facetClass or null if feature not implemented. |
Presenter.ViewHolder getViewHolder ()
Get Presenter.ViewHolder
.
Returns | |
---|---|
Presenter.ViewHolder |
void setExtraObject (Object object)
Set extra object associated with the view. Developer can attach
any customized UI object in addition to Presenter.ViewHolder
.
A typical use case is attaching an animator object.
Parameters | |
---|---|
object |
Object
|