added in version 24.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

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


The adapter that RowsSupportFragment implements BrowseSupportFragment.MainFragmentRowsAdapter.

Summary

Public constructors

RowsSupportFragment.MainFragmentRowsAdapter(RowsSupportFragment fragment)

Public methods

RowPresenter.ViewHolder findRowViewHolderByPosition(int position)
int getSelectedPosition()
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

added in version 24.1.0
RowsSupportFragment.MainFragmentRowsAdapter (RowsSupportFragment fragment)

Parameters
fragment RowsSupportFragment

Public methods

findRowViewHolderByPosition

added in version 25.1.0
RowPresenter.ViewHolder findRowViewHolderByPosition (int position)

Parameters
position int: Position of Row.

Returns
RowPresenter.ViewHolder Row ViewHolder.

getSelectedPosition

added in version 24.1.0
int getSelectedPosition ()

Returns
int The position of selected row.

setAdapter

added in version 24.1.0
void setAdapter (ObjectAdapter adapter)

Set the visibility titles/hover of browse rows.

Parameters
adapter ObjectAdapter

setOnItemViewClickedListener

added in version 24.1.0
void setOnItemViewClickedListener (OnItemViewClickedListener listener)

Sets an item clicked listener on the fragment.

Parameters
listener OnItemViewClickedListener

setOnItemViewSelectedListener

added in version 24.1.0
void setOnItemViewSelectedListener (OnItemViewSelectedListener listener)

Sets an item selection listener.

Parameters
listener OnItemViewSelectedListener

setSelectedPosition

added in version 24.1.0
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

added in version 24.1.0
void setSelectedPosition (int rowPosition, 
                boolean smooth)

Selects a Row.

Parameters
rowPosition int

smooth boolean