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

Boolean
equals(o: Any?)
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.

Int
String

Public functions

equals

fun equals(o: Any?): Boolean

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.

hashCode

fun hashCode(): Int

toString

fun toString(): String