public class

RowsSupportFragment.MainFragmentRowsAdapter

extends BrowseSupportFragment.MainFragmentRowsAdapter<RowsSupportFragment>

 java.lang.Object

androidx.leanback.app.BrowseSupportFragment.MainFragmentRowsAdapter<RowsSupportFragment>

↳androidx.leanback.app.RowsSupportFragment.MainFragmentRowsAdapter

Overview

The adapter that RowsSupportFragment implements BrowseSupportFragment.MainFragmentRowsAdapter.

Summary

Constructors
publicMainFragmentRowsAdapter(RowsSupportFragment fragment)

Methods
public RowPresenter.ViewHolderfindRowViewHolderByPosition(int position)

public intgetSelectedPosition()

public voidsetAdapter(ObjectAdapter adapter)

Set the visibility titles/hover of browse rows.

public voidsetOnItemViewClickedListener(OnItemViewClickedListener listener)

Sets an item clicked listener on the fragment.

public voidsetOnItemViewSelectedListener(OnItemViewSelectedListener listener)

Sets an item selection listener.

public voidsetSelectedPosition(int rowPosition, boolean smooth)

Selects a Row.

public voidsetSelectedPosition(int rowPosition, boolean smooth, Presenter.ViewHolderTask rowHolderTask)

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

from BrowseSupportFragment.MainFragmentRowsAdapter<T>getFragment
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public MainFragmentRowsAdapter(RowsSupportFragment fragment)

Methods

public void setAdapter(ObjectAdapter adapter)

Set the visibility titles/hover of browse rows.

public void setOnItemViewClickedListener(OnItemViewClickedListener listener)

Sets an item clicked listener on the fragment.

public void setOnItemViewSelectedListener(OnItemViewSelectedListener listener)

Sets an item selection listener.

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

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

public void setSelectedPosition(int rowPosition, boolean smooth)

Selects a Row.

public int getSelectedPosition()

Returns:

The position of selected row.

public RowPresenter.ViewHolder findRowViewHolderByPosition(int position)

Parameters:

position: Position of Row.

Returns:

Row ViewHolder.