CondensedItemStyle.Builder
@RequiresCarApi(value = 9)
@ExperimentalCarApi
class CondensedItemStyle.Builder
A builder for CondensedItemStyle.
Summary
Public constructors |
|---|
Builder() |
Public functions |
|
|---|---|
CondensedItemStyle |
build()Constructs a |
CondensedItemStyle.Builder |
@CanIgnoreReturnValueSets the |
CondensedItemStyle.Builder |
@CanIgnoreReturnValueSets the |
Public constructors
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 |
setBackground
Added in 1.8.0
@CanIgnoreReturnValue
fun setBackground(background: Background): CondensedItemStyle.Builder
Sets the Background for the container.
background must conform to COLOR_ONLY.
| Throws | |
|---|---|
java.lang.NullPointerException |
if |
java.lang.IllegalArgumentException |
if |
setShape
Added in 1.8.0
@CanIgnoreReturnValue
fun setShape(shape: Shape): CondensedItemStyle.Builder
Sets the Shape for the container.
| Throws | |
|---|---|
java.lang.NullPointerException |
if |