public
static
class
ListRowPresenter.ViewHolder
extends RowPresenter.ViewHolder
java.lang.Object | |||
↳ | android.support.v17.leanback.widget.Presenter.ViewHolder | ||
↳ | android.support.v17.leanback.widget.RowPresenter.ViewHolder | ||
↳ | android.support.v17.leanback.widget.ListRowPresenter.ViewHolder |
ViewHolder for the ListRowPresenter.
Inherited fields |
---|
From
class
android.support.v17.leanback.widget.RowPresenter.ViewHolder
|
From
class
android.support.v17.leanback.widget.Presenter.ViewHolder
|
Public constructors | |
---|---|
ListRowPresenter.ViewHolder(View rootView, HorizontalGridView gridView, ListRowPresenter p)
|
Public methods | |
---|---|
final
ItemBridgeAdapter
|
getBridgeAdapter()
Gets ItemBridgeAdapter that creates the list of items. |
final
HorizontalGridView
|
getGridView()
Gets HorizontalGridView that shows a list of items. |
Presenter.ViewHolder
|
getItemViewHolder(int position)
Gets ViewHolder at a position in adapter. |
final
ListRowPresenter
|
getListRowPresenter()
Gets ListRowPresenter that creates this ViewHolder. |
int
|
getSelectedPosition()
Gets selected item position in adapter. |
Inherited methods | |
---|---|
From
class
android.support.v17.leanback.widget.RowPresenter.ViewHolder
| |
From
class
android.support.v17.leanback.widget.Presenter.ViewHolder
| |
From
class
java.lang.Object
| |
From
interface
android.support.v17.leanback.widget.FacetProvider
|
ListRowPresenter.ViewHolder (View rootView, HorizontalGridView gridView, ListRowPresenter p)
Parameters | |
---|---|
rootView |
View
|
gridView |
HorizontalGridView
|
p |
ListRowPresenter
|
ItemBridgeAdapter getBridgeAdapter ()
Gets ItemBridgeAdapter that creates the list of items.
Returns | |
---|---|
ItemBridgeAdapter |
ItemBridgeAdapter that creates the list of items. |
HorizontalGridView getGridView ()
Gets HorizontalGridView that shows a list of items.
Returns | |
---|---|
HorizontalGridView |
HorizontalGridView that shows a list of items. |
Presenter.ViewHolder getItemViewHolder (int position)
Gets ViewHolder at a position in adapter. Returns null if the item does not exist or the item is not bound to a view.
Parameters | |
---|---|
position |
int :
Position of the item in adapter. |
Returns | |
---|---|
Presenter.ViewHolder |
ViewHolder bounds to the item. |
ListRowPresenter getListRowPresenter ()
Gets ListRowPresenter that creates this ViewHolder.
Returns | |
---|---|
ListRowPresenter |
ListRowPresenter that creates this ViewHolder. |
int getSelectedPosition ()
Gets selected item position in adapter.
Returns | |
---|---|
int |
Selected item position in adapter. |