DimensionBuilders.VerticalLayoutConstraint.Builder


public final class DimensionBuilders.VerticalLayoutConstraint.Builder extends DimensionBuilders.DpPropLayoutConstraint.Builder


Builder for VerticalLayoutConstraint.

Summary

Public constructors

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

Creates a new builder for VerticalLayoutConstraint.

Public methods

@NonNull DimensionBuilders.VerticalLayoutConstraint

Builds an instance of VerticalLayoutConstraint.

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

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)
public Builder(@Dimension(unit = 0) float value)

Creates a new builder for VerticalLayoutConstraint.

Parameters
@Dimension(unit = 0) float value

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 methods

build

Added in 1.0.0
public @NonNull DimensionBuilders.VerticalLayoutConstraint build()

Builds an instance of VerticalLayoutConstraint.

setVerticalAlignment

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public @NonNull DimensionBuilders.VerticalLayoutConstraint.Builder setVerticalAlignment(int verticalAlignment)

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