MultiSlotLayout.Builder

Added in 1.1.0
Deprecated in 1.2.0

class MultiSlotLayout.Builder : LayoutElementBuilders.LayoutElement.Builder


Builder class for MultiSlotLayout.

Summary

Public constructors

Creates a builder for the MultiSlotLayout.

Public functions

MultiSlotLayout.Builder

Add one new slot to the layout with the given content inside.

MultiSlotLayout

Constructs and returns MultiSlotLayout with the provided content and look.

MultiSlotLayout.Builder

Sets the horizontal spacer width which is used as a space between slots if there is more than one slot.

Public constructors

Builder

Added in 1.1.0
Deprecated in 1.2.0
Builder()

Creates a builder for the MultiSlotLayout. Content inside of it can later be added with addSlotContent.

Public functions

addSlotContent

Added in 1.1.0
Deprecated in 1.2.0
fun addSlotContent(slotContent: LayoutElementBuilders.LayoutElement): MultiSlotLayout.Builder

Add one new slot to the layout with the given content inside.

build

Added in 1.1.0
Deprecated in 1.2.0
fun build(): MultiSlotLayout

Constructs and returns MultiSlotLayout with the provided content and look.

setHorizontalSpacerWidth

Added in 1.1.0
Deprecated in 1.2.0
fun setHorizontalSpacerWidth(width: @Dimension(unit = 0) Float): MultiSlotLayout.Builder

Sets the horizontal spacer width which is used as a space between slots if there is more than one slot. If not set, MULTI_SLOT_LAYOUT_HORIZONTAL_SPACER_WIDTH will be used.