DimensionBuilders.VerticalLayoutConstraint


@RequiresSchemaVersion(major = 1, minor = 200)
public final class DimensionBuilders.VerticalLayoutConstraint


A type for specifying vertical layout constraints when using DpProp on a data bindable layout element.

Summary

Public methods

@Dimension(unit = 0) float

Gets the value to use when laying out components which can have a dynamic value.

int

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

Protected fields

mFingerprint

protected final @Nullable Fingerprint mFingerprint

mImpl

protected final DimensionProto.DpProp mImpl

Public methods

getValue

Added in 1.0.0
public @Dimension(unit = 0) float getValue()

Gets 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.

getVerticalAlignment

Added in 1.0.0
public int getVerticalAlignment()

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