Most visited

Recently visited

BrowseFragment.MainFragmentRowsAdapter

public static class BrowseFragment.MainFragmentRowsAdapter
extends Object

java.lang.Object
   ↳ android.support.v17.leanback.app.BrowseFragment.MainFragmentRowsAdapter<T extends android.app.Fragment>
Known Direct Subclasses


This is used to pass information to RowsFragment or its subclasses. BrowseFragment uses this interface to pass row based interaction events to the target fragment.

Summary

Public constructors

BrowseFragment.MainFragmentRowsAdapter(T fragment)

Public methods

final T getFragment()
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 java.lang.Object

Public constructors

BrowseFragment.MainFragmentRowsAdapter

BrowseFragment.MainFragmentRowsAdapter (T fragment)

Parameters
fragment T

Public methods

getFragment

T getFragment ()

Returns
T

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!