O Google tem o compromisso de promover a igualdade racial para as comunidades negras. Saiba como.

RowsFragment

open class RowsFragment : BaseRowFragment, BrowseFragment.MainFragmentRowsAdapterProvider, BrowseFragment.MainFragmentAdapterProvider
androidx.leanback.app.RowsFragment

An ordered set of rows of leanback widgets.

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

Summary

Nested classes
open

open

The adapter that RowsFragment implements BrowseFragment.

Public constructors

An ordered set of rows of leanback widgets.

Public methods
open Unit

open RowPresenter.ViewHolder!

Find row ViewHolder by position in adapter.

open BrowseFragment.MainFragmentAdapter<Fragment!>!

open BrowseFragment.MainFragmentRowsAdapter<Fragment!>!

open BaseOnItemViewClickedListener<Any!>!

Returns the item clicked listener.

open BaseOnItemViewSelectedListener<Any!>!

Returns an item selection listener.

open RowPresenter.ViewHolder!
getRowViewHolder(position: Int)

Get row ViewHolder at adapter position.

open Boolean

open Unit

open Unit

open Boolean

open Unit
onViewCreated(@NonNull view: View, @Nullable savedInstanceState: Bundle?)

open Unit
setAlignment(windowAlignOffsetFromTop: Int)

open Unit

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

open Unit
setExpand(expand: Boolean)

Set the visibility of titles/hovercard of browse rows.

open Unit

Sets an item clicked listener on the fragment.

open Unit

Sets an item selection listener.

open Unit
setSelectedPosition(rowPosition: Int, smooth: Boolean, rowHolderTask: Presenter.ViewHolderTask!)

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

Protected methods
open VerticalGridView!

Public constructors

<init>

RowsFragment()

Deprecated: use RowsSupportFragment

An ordered set of rows of leanback widgets.

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

Public methods

enableRowScaling

open fun enableRowScaling(enable: Boolean): Unit

Deprecated: use BrowseFragment#enableRowScaling(boolean) instead.

Parameters
enable Boolean: true to enable row scaling

findRowViewHolderByPosition

open fun findRowViewHolderByPosition(position: