TypeBuilders.StringLayoutConstraint


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


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

Summary

Public functions

Int

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

String

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

Public functions

getAlignment

Added in 1.0.0
fun getAlignment(): Int

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

getPatternForLayout

Added in 1.0.0
fun getPatternForLayout(): String

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.