DimensionBuilders.HorizontalLayoutConstraint.Builder


class DimensionBuilders.HorizontalLayoutConstraint.Builder : DimensionBuilders.DpPropLayoutConstraint.Builder


Builder for HorizontalLayoutConstraint.

Summary

Public constructors

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

Creates a new builder for HorizontalLayoutConstraint.

Public functions

DimensionBuilders.HorizontalLayoutConstraint

Builds an instance of HorizontalLayoutConstraint.

DimensionBuilders.HorizontalLayoutConstraint.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setHorizontalAlignment(horizontalAlignment: Int)

Sets the horizontal 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 HorizontalLayoutConstraint.

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

setHorizontalAlignment

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setHorizontalAlignment(horizontalAlignment: Int): DimensionBuilders.HorizontalLayoutConstraint.Builder

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