DimensionBuilders.VerticalLayoutConstraint.Builder


class DimensionBuilders.VerticalLayoutConstraint.Builder : DimensionBuilders.DpPropLayoutConstraint.Builder


Builder for VerticalLayoutConstraint.

Summary

Public constructors

@RequiresSchemaVersion(major = 1, minor = 200)
Builder(value: @Dimension(unit = 0) Float)

Creates a new builder for VerticalLayoutConstraint.

Public functions

DimensionBuilders.VerticalLayoutConstraint

Builds an instance of VerticalLayoutConstraint.

DimensionBuilders.VerticalLayoutConstraint.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setVerticalAlignment(verticalAlignment: Int)

Sets the vertical alignment of the actual content within the space reserved by value.

Public constructors

Builder

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
Builder(value: @Dimension(unit = 0) Float)

Creates a new builder for VerticalLayoutConstraint.

Parameters
value: @Dimension(unit = 0) Float

Sets the value to use when laying out components which can have a dynamic value. Constrains the layout so that components are not changing size or location regardless of the dynamic value that is being provided.

Public functions

build

Added in 1.0.0
fun build(): DimensionBuilders.VerticalLayoutConstraint

Builds an instance of VerticalLayoutConstraint.

setVerticalAlignment

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setVerticalAlignment(verticalAlignment: Int): DimensionBuilders.VerticalLayoutConstraint.Builder

Sets the vertical alignment of the actual content within the space reserved by value. If not specified, defaults to center alignment.