CondensedItemStyle.Builder


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


A builder for CondensedItemStyle.

Summary

Public constructors

Public methods

@NonNull CondensedItemStyle

Constructs a CondensedItemStyle from the current state of this builder.

@NonNull CondensedItemStyle.Builder

Sets the Background for the container.

@NonNull CondensedItemStyle.Builder

Sets the Shape for the container.

Public constructors

Builder

Added in 1.8.0
public Builder()

Public methods

build

Added in 1.8.0
public @NonNull CondensedItemStyle build()

Constructs a CondensedItemStyle from the current state of this builder.

Throws
java.lang.IllegalStateException

if both shape and background are null

setBackground

Added in 1.8.0
@CanIgnoreReturnValue
public @NonNull CondensedItemStyle.Builder setBackground(@NonNull Background background)

Sets the Background for the container.

background must conform to BackgroundConstraints.COLOR_ONLY.

Throws
java.lang.NullPointerException

if background is null

java.lang.IllegalArgumentException

if background contains unsupported type

setShape

Added in 1.8.0
@CanIgnoreReturnValue
public @NonNull CondensedItemStyle.Builder setShape(@NonNull Shape shape)

Sets the Shape for the container.

Throws
java.lang.NullPointerException

if shape is null