RowsSupportFragment

public class RowsSupportFragment
extends Fragment implements BrowseSupportFragment.MainFragmentRowsAdapterProvider, BrowseSupportFragment.MainFragmentAdapterProvider

java.lang.Object
   ↳ androidx.fragment.app.Fragment
     ↳ androidx.leanback.app.RowsSupportFragment


An ordered set of rows of leanback widgets.

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

Summary

Nested classes

class RowsSupportFragment.MainFragmentAdapter

 

class RowsSupportFragment.MainFragmentRowsAdapter

The adapter that RowsSupportFragment implements BrowseSupportFragment.MainFragmentRowsAdapter. 

Public constructors

RowsSupportFragment()

Public methods

void enableRowScaling(boolean enable)

This method is deprecated. use BrowseSupportFragment.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 BrowseSupportFragment.MainFragmentAdapter that BrowseSupportFragment would use to communicate with the target fragment.

MainFragmentRowsAdapter getMainFragmentRowsAdapter()

Returns an instance of BrowseSupportFragment.MainFragmentRowsAdapter that BrowseSupportFragment would use to communicate with the target fragment.

BaseOnItemViewClickedListener getOnItemViewClickedListener()

Returns the item clicked listener.

BaseOnItemViewSelectedListener