added in version 1.0.0
belongs to Maven artifact androidx.leanback:leanback:1.0.0-beta01
Deprecated since version 1.0.0

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 was deprecated in API level 1.0.0.
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

added in version 1.0.0
public RowsFragment.MainFragmentRowsAdapter (RowsFragment fragment)

Parameters
fragment RowsFragment

Public methods

findRowViewHolderByPosition

added in version 1.0.0
public RowPresenter.ViewHolder findRowViewHolderByPosition (int position)

Parameters
position int: Position of Row.

Returns
RowPresenter.ViewHolder Row ViewHolder.

getSelectedPosition

added in version 1.0.0
public int getSelectedPosition ()

Returns
int The position of selected row.

setAdapter

added in version 1.0.0
public void setAdapter (ObjectAdapter adapter)

Set the visibility titles/hover of browse rows.

Parameters
adapter ObjectAdapter

setOnItemViewClickedListener

added in version 1.0.0
public void setOnItemViewClickedListener (OnItemViewClickedListener listener)

Sets an item clicked listener on the fragment.

Parameters
listener OnItemViewClickedListener

setOnItemViewSelectedListener

added in version 1.0.0
public void setOnItemViewSelectedListener (OnItemViewSelectedListener listener)

Sets an item selection listener.

Parameters
listener OnItemViewSelectedListener

setSelectedPosition

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

Selects a Row.

Parameters
rowPosition int

smooth boolean

setSelectedPosition

added in version 1.0.0
public 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