RowSection


@ExperimentalCarApi
@CarProtocol
public final class RowSection extends Section


A section within the SectionedItemTemplate that contains Rows - good for showcasing small icons and longer text for every entry.

Summary

Nested types

A builder that constructs RowSection instances.

Public methods

boolean
int

When set to a value that correlates to an index in getItems, this entire row section should be treated as a selection group (eg. radio group).

int
boolean

Flag denoting whether or not this section of rows should be treated as a selection group (ie. radio button group).

@NonNull String

Inherited methods

From androidx.car.app.model.Section
@NonNull List<T>

Returns the items added to this section.

@Nullable CarText

Returns the optional message that should appear if there are no items added to this section.

@Nullable CarText

Returns the optional text that should appear with the items in this section.

Public methods

equals

public boolean equals(@Nullable Object other)

getInitialSelectedIndex

Added in 1.7.0-beta01
public int getInitialSelectedIndex()

When set to a value that correlates to an index in getItems, this entire row section should be treated as a selection group (eg. radio group). Otherwise this will be a negative value to denote that this row section should not be transformed into a selection group.

hashCode

public int hashCode()

isSelectionGroup

Added in 1.7.0-beta01
public boolean isSelectionGroup()

Flag denoting whether or not this section of rows should be treated as a selection group (ie. radio button group).

toString

public @NonNull String toString()