Added in API level 1

AlignmentSpan

interface AlignmentSpan : ParagraphStyle
android.text.style.AlignmentSpan

Span that allows defining the alignment of text at the paragraph level.

Summary

Nested classes
open

Default implementation of the AlignmentSpan.

Public methods
abstract Layout.Alignment!

Returns the alignment of the text.

Public methods

getAlignment

Added in API level 1
abstract fun getAlignment(): Layout.Alignment!

Returns the alignment of the text.

Return
Layout.Alignment! the text alignment