SectionRow

public class SectionRow extends Row


Used to represent section item in HeadersFragment. Unlike a normal Row, it's not focusable.

Summary

Public constructors

SectionRow(HeaderItem headerItem)
SectionRow(long id, String name)

Public methods

final boolean

Returns true if this Row can be rendered in a visible row view, false otherwise.

Inherited methods

From androidx.leanback.widget.Row
final HeaderItem

Returns the HeaderItem that represents metadata for the row.

final long

Returns a unique identifier for this row.

final void

Sets the HeaderItem that represents metadata for the row.

final void
setId(long id)

Sets the id for this row.

Public constructors

SectionRow

Added in 1.1.0
public SectionRow(HeaderItem headerItem)

SectionRow

Added in 1.1.0
public SectionRow(String name)

SectionRow

Added in 1.1.0
public SectionRow(long id, String name)

Public methods

isRenderedAsRowView

Added in 1.2.0-alpha04
public final boolean isRenderedAsRowView()

Returns true if this Row can be rendered in a visible row view, false otherwise. For example ListRow is rendered by ListRowPresenter. PageRow, SectionRow, DividerRow are rendered as invisible row views.

Returns
boolean

True if this Row can be rendered in a visible row view, false otherwise.