added in version 22.1.0
belongs to Maven artifact
Deprecated since version 27.1.0


public class RowsFragment
extends Fragment implements BrowseFragment.MainFragmentRowsAdapterProvider, BrowseFragment.MainFragmentAdapterProvider


This class was deprecated in API level 27.1.0.
use RowsSupportFragment

An ordered set of rows of leanback widgets.

A RowsFragment renders the elements of its ObjectAdapter as a set of rows in a vertical list. The Adapter's PresenterSelector must maintain subclasses of RowPresenter.


Nested classes

class RowsFragment.MainFragmentAdapter


class RowsFragment.MainFragmentRowsAdapter

This class was deprecated in API level 27.1.0. use RowsSupportFragment  

Inherited constants

From interface android.content.ComponentCallbacks2

Public constructors


Public methods

void enableRowScaling(boolean enable)

This method was deprecated in API level 24.1.0. use enableRowScaling(boolean) instead.

RowPresenter.ViewHolder findRowViewHolderByPosition(int position)

Find row ViewHolder by position in adapter.

final ObjectAdapter getAdapter()

Returns the Adapter that represents list of rows.

final ItemBridgeAdapter getBridgeAdapter()

Returns the RecyclerView.Adapter that wraps getAdapter().

MainFragmentAdapter getMainFragmentAdapter()

Returns an instance of BrowseFragment.MainFragmentAdapter that BrowseFragment would use to communicate with the target fragment.

MainFragmentRowsAdapter getMainFragmentRowsAdapter()

Returns an instance of BrowseFragment.M