belongs to Maven artifact androidx.leanback:leanback:1.0.0-alpha1

RowsFragment.MainFragmentRowsAdapter

public static class RowsFragment.MainFragmentRowsAdapter
extends MainFragmentRowsAdapter<RowsFragment>

java.lang.Object
   ↳ androidx.leanback.app.BrowseFragment.MainFragmentRowsAdapter<androidx.leanback.app.RowsFragment>
     ↳ androidx.leanback.app.RowsFragment.MainFragmentRowsAdapter


This class is deprecated.
use RowsSupportFragment

The adapter that RowsFragment implements BrowseFragment.MainFragmentRowsAdapter.

Summary

Public constructors

RowsFragment.MainFragmentRowsAdapter(RowsFragment 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)

Selects a Row.

void setSelectedPosition(int rowPosition, boolean smooth, Presenter.ViewHolderTask rowHolderTask)

Selects a Row and perform an optional task on the Row.

Inherited methods

Public constructors

RowsFragment.MainFragmentRowsAdapter

RowsFragment.MainFragmentRowsAdapter (RowsFragment fragment)

Parameters
fragment RowsFragment

Public methods

findRowViewHolderByPosition

RowPresenter.ViewHolder findRowViewHolderByPosition (int position)

Parameters
position int: Position of Row.

Returns
RowPresenter.ViewHolder Row ViewHolder.

getSelectedPosition

int getSelectedPosition ()

Returns
int The position of selected row.

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)

Selects a Row.

Parameters
rowPosition int

smooth boolean

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