CondensedItemStyle.Builder


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


A builder for CondensedItemStyle.

Summary

Public constructors

Public functions

CondensedItemStyle

Constructs a CondensedItemStyle from the current state of this builder.

CondensedItemStyle.Builder

Sets the Background for the container.

CondensedItemStyle.Builder

Sets the Shape for the container.

Public constructors

Builder

Added in 1.8.0
Builder()

Public functions

build

Added in 1.8.0
fun build(): CondensedItemStyle

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
fun setBackground(background: Background): CondensedItemStyle.Builder

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
fun setShape(shape: Shape): CondensedItemStyle.Builder

Sets the Shape for the container.

Throws
java.lang.NullPointerException

if shape is null