TypeBuilders.StringLayoutConstraint


@RequiresSchemaVersion(major = 1, minor = 200)
public final class TypeBuilders.StringLayoutConstraint


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

Summary

Nested types

Builder for StringLayoutConstraint.

Public methods

boolean
int

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

@NonNull String

Gets the text string to use as the pattern for the largest text that can be laid out.

int
@NonNull String

Public methods

equals

public boolean equals(@Nullable Object o)

getAlignment

Added in 1.0.0
public int getAlignment()

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

getPatternForLayout

Added in 1.0.0
public @NonNull String getPatternForLayout()

Gets the text string to use as the pattern for the largest text that can be laid out. Used to ensure that the layout is of a known size during the layout pass.

hashCode

public int hashCode()

toString

public @NonNull String toString()