BannerStyle


@RequiresCarApi(value = 9)
@ExperimentalCarApi
@CarProtocol
public final class BannerStyle


Defines the visual style of a Banner.

This style can be used to customize the appearance of the visual container around a banner, such as its shape (corner radius) and background color.

Custom styles will fall back to host defaults if they are unset, or if they fail host-enforced contrast requirements.

Summary

Nested types

@RequiresCarApi(value = 9)
@ExperimentalCarApi
public final class BannerStyle.Builder

A builder for BannerStyle.

Public methods

boolean
@Nullable Background

Returns the Background of the container, or null if not set.

@Nullable Shape

Returns the Shape of the container, or null if not set.

int
@NonNull String

Public methods

equals

public boolean equals(@Nullable Object other)

getBackground

Added in 1.9.0-alpha02
public @Nullable Background getBackground()

Returns the Background of the container, or null if not set.

getShape

Added in 1.9.0-alpha02
public @Nullable Shape getShape()

Returns the Shape of the container, or null if not set.

hashCode

public int hashCode()

toString

public @NonNull String toString()