SpotlightSection


@CarProtocol
@RequiresCarApi(value = 9)
@ExperimentalCarApi
public final class SpotlightSection extends Section<CondensedItem>


A section within the SectionedItemTemplate that contains a single image and multiple CondensedItems. The items are rendered next to the image. Depending on the screen size, only some of the leading items may be placed.

Summary

Constants

static final int

The last row will be shown as-is.

static final int

Truncates the last column if that column is not completely filled

Public methods

boolean
@NonNull CarIcon

Returns the image associated with the section.

int

Returns the strategy for handling incomplete last column

int
@NonNull String

Inherited methods

From androidx.car.app.model.Section
@Nullable CarText

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

@Nullable OnItemVisibilityChangedDelegate

Returns the OnItemVisibilityChangedDelegate to be called when the visible items in this Section changes, or null if one isn't set.

@Nullable SectionHeader

Returns the SectionHeader for this section, or null if not set.

@Nullable CarText

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

Constants

INCOMPLETE_LAST_COLUMN_AS_IS

Added in 1.9.0-alpha03
public static final int INCOMPLETE_LAST_COLUMN_AS_IS = 0

The last row will be shown as-is. This is a default behavior

INCOMPLETE_LAST_COLUMN_TRUNCATE

Added in 1.9.0-alpha03
public static final int INCOMPLETE_LAST_COLUMN_TRUNCATE = 1

Truncates the last column if that column is not completely filled

Public methods

equals

public boolean equals(@Nullable Object other)

getImage

Added in 1.8.0
public @NonNull CarIcon getImage()

Returns the image associated with the section.

getIncompleteLastColumnStrategy

Added in 1.9.0-alpha03
@RequiresCarApi(value = 9)
@ExperimentalCarApi
public int getIncompleteLastColumnStrategy()

Returns the strategy for handling incomplete last column

hashCode

public int hashCode()

toString

public @NonNull String toString()