DimensionBuilders.HorizontalLayoutConstraint


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


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

Summary

Public methods

int

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

@Dimension(unit = 0) float

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

Protected fields

mFingerprint

protected final @Nullable Fingerprint mFingerprint

mImpl

protected final DimensionProto.DpProp mImpl

Public methods

getHorizontalAlignment

Added in 1.0.0
public int getHorizontalAlignment()

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

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.