Most visited

Recently visited

RowsSupportFragment.MainFragmentRowsAdapter

public static class RowsSupportFragment.MainFragmentRowsAdapter
extends MainFragmentRowsAdapter<RowsSupportFragment>

java.lang.Object
   ↳ android.support.v17.leanback.app.BrowseSupportFragment.MainFragmentRowsAdapter<android.support.v17.leanback.app.RowsSupportFragment>
     ↳ android.support.v17.leanback.app.RowsSupportFragment.MainFragmentRowsAdapter


Summary

Public constructors

RowsSupportFragment.MainFragmentRowsAdapter(RowsSupportFragment 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.BrowseSupportFragment.MainFragmentRowsAdapter
From class java.lang.Object

Public constructors

RowsSupportFragment.MainFragmentRowsAdapter

RowsSupportFragment.MainFragmentRowsAdapter (RowsSupportFragment fragment)

Parameters
fragment RowsSupportFragment

Public methods

getSelectedPosition

int getSelectedPosition ()

Returns the selected position.

Returns
int

setAdapter

void setAdapter (ObjectAdapter adapter)

Set the visibility titles/hover of browse rows.

Parameters
adapter ObjectAdapter

setOnItemViewClickedListener

void setOnItemViewClickedListener (OnItemViewClickedListener listener)

Sets an item clicked listener on the fragment.

Parameters
listener OnItemViewClickedListener

setOnItemViewSelectedListener

void setOnItemViewSelectedListener (OnItemViewSelectedListener listener)

Sets an item selection listener.

Parameters
listener OnItemViewSelectedListener

setSelectedPosition

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

setSelectedPosition

void setSelectedPosition (int rowPosition, 
                boolean smooth)

Selects a Row.

Parameters
rowPosition int
smooth boolean

Hooray!