RowsFragment

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

java.lang.Object
   ↳ android.app.Fragment
     ↳ androidx.leanback.app.RowsFragment


This class is deprecated.
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.

Summary

Nested classes

class RowsFragment.MainFragmentAdapter

 

class RowsFragment.MainFragmentRowsAdapter

This class is deprecated. use RowsSupportFragment  

Inherited constants

Public constructors

RowsFragment()

Public methods

void enableRowScaling(boolean enable)

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

BaseOnItemViewClickedListener getOnItemViewClickedListener()

Returns the item clicked listener.

BaseOnItemViewSelectedListener getOnItemViewSelectedListener()

Returns an item selection listener.

final PresenterSelector getPresenterSelector()

Get the presenter selector used to create and bind views.

RowPresenter.ViewHolder getRowViewHolder(int position)

Get row ViewHolder at adapter position.

int getSelectedPosition()

Gets position of currently selected row.

final VerticalGridView getVerticalGridView()
boolean isScrolling()
View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
void onDestroyView()
void onSaveInstanceState(Bundle outState)
void onTransitionEnd()
boolean onTransitionPrepare()
void onTransitionStart()
void onViewCreated(View view, Bundle savedInstanceState)
final void setAdapter(ObjectAdapter rowsAdapter)

Sets the adapter that represents a list of rows.

void setAlignment(int windowAlignOffsetFromTop)
void setEntranceTransitionState(boolean afterTransition)

For rows that willing to participate entrance transition, this function hide views if afterTransition is true, show views if afterTransition is false.

void setExpand(boolean expand)

Set the visibility of titles/hovercard of browse rows.

void setOnItemViewClickedListener(BaseOnItemViewClickedListener listener)

Sets an item clicked listener on the fragment.