public
static
class
RowsFragment.MainFragmentRowsAdapter
extends MainFragmentRowsAdapter<RowsFragment>
java.lang.Object | ||
↳ | android.support.v17.leanback.app.BrowseFragment.MainFragmentRowsAdapter<android.support.v17.leanback.app.RowsFragment> | |
↳ | android.support.v17.leanback.app.RowsFragment.MainFragmentRowsAdapter |
Public constructors | |
---|---|
RowsFragment.MainFragmentRowsAdapter(RowsFragment fragment)
|
Public methods | |
---|---|
int
|
getSelectedPosition()
Returns the selected position. |
void
|
setAdapter(ObjectAdapter adapter)
Set the visibility titles/hover of browse rows. |
void
|
setOnItemViewClickedListener(OnItemViewClickedListener listener)
Sets an item clicked listener on the fragment. |
void
|
setOnItemViewSelectedListener(OnItemViewSelectedListener listener)
Sets an item selection listener. |
void
|
setSelectedPosition(int rowPosition, boolean smooth, Presenter.ViewHolderTask rowHolderTask)
Selects a Row and perform an optional task on the Row. |
void
|
setSelectedPosition(int rowPosition, boolean smooth)
Selects a Row. |
Inherited methods | |
---|---|
From
class
android.support.v17.leanback.app.BrowseFragment.MainFragmentRowsAdapter
| |
From
class
java.lang.Object
|
RowsFragment.MainFragmentRowsAdapter (RowsFragment fragment)
Parameters | |
---|---|
fragment |
RowsFragment
|
int getSelectedPosition ()
Returns the selected position.
Returns | |
---|---|
int |
void setAdapter (ObjectAdapter adapter)
Set the visibility titles/hover of browse rows.
Parameters | |
---|---|
adapter |
ObjectAdapter
|
void setOnItemViewClickedListener (OnItemViewClickedListener listener)
Sets an item clicked listener on the fragment.
Parameters | |
---|---|
listener |
OnItemViewClickedListener
|
void setOnItemViewSelectedListener (OnItemViewSelectedListener listener)
Sets an item selection listener.
Parameters | |
---|---|
listener |
OnItemViewSelectedListener
|
void setSelectedPosition (int rowPosition, boolean smooth, Presenter.ViewHolderTask rowHolderTask)
Selects a Row and perform an optional task on the Row.
Parameters | |
---|---|
rowPosition |
int
|
smooth |
boolean
|
rowHolderTask |
Presenter.ViewHolderTask
|
void setSelectedPosition (int rowPosition, boolean smooth)
Selects a Row.
Parameters | |
---|---|
rowPosition |
int
|
smooth |
boolean
|