android.text.style

Interfaces

AlignmentSpan

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

LeadingMarginSpan

A paragraph style affecting the leading margin.

LineBackgroundSpan

Used to change the background of lines where the span is attached to.

LineHeightSpan

The classes that affect the line height of paragraph should implement this interface.

ParagraphStyle

The classes that affect paragraph-level text formatting implement this interface.

TabStopSpan

Paragraph affecting span that changes the position of the tab with respect to the leading margin of the line.

UpdateAppearance

The classes that affect character-level text in a way that modifies their appearance when one is added or removed must implement this interface.

UpdateLayout

The classes that affect character-level text formatting in a way that triggers a text layout update when one is added or removed must implement this interface.

WrapTogetherSpan

Classes

AbsoluteSizeSpan

A span that changes the size of the text it's attached to.

BackgroundColorSpan

Changes the background color of the text to which the span is attached.

BulletSpan

A span which styles paragraphs as bullet points (respecting layout direction).

CharacterStyle

The classes that affect character-level text formatting extend this class.

ClickableSpan

If an object of this type is attached to the text of a TextView with a movement method of LinkMovementMethod, the affected spans of text can be selected.

DrawableMarginSpan

A span which adds a drawable and a padding to the paragraph it's attached to.

DynamicDrawableSpan

Span that replaces the text it's attached to with a Drawable that can be aligned with the bottom or with the baseline of the surrounding text.

EasyEditSpan

Provides an easy way to edit a portion of text.

ForegroundColorSpan

Changes the color of the text to which the span is attached.

IconMarginSpan

Paragraph affecting span, that draws a bitmap at the beginning of a text.

ImageSpan

Span that replaces the text it's attached to with a Drawable that can be aligned with the bottom or with the baseline of the surrounding text.

LocaleSpan

Changes the Locale of the text to which the span is attached.

MaskFilterSpan

Span that allows setting a MaskFilter to the text it's attached to.

MetricAffectingSpan

The classes that affect character-level text formatting in a way that changes the width or height of characters extend this class.

QuoteSpan

A span which styles paragraphs by adding a vertical stripe at the beginning of the text (respecting layout direction).

RelativeSizeSpan

Uniformly scales the size of the text to which it's attached by a certain proportion.

ReplacementSpan

ScaleXSpan

Scales horizontally the size of the text to which it's attached by a certain factor.

StrikethroughSpan

A span that strikes through the text it's attached to.

StyleSpan

Span that allows setting the style of the text it's attached to.

SubscriptSpan

The span that moves the position of the text baseline lower.

SuggestionRangeSpan

A SuggestionRangeSpan is used to show which part of an EditText is affected by a suggestion popup window.

SuggestionSpan

Holds suggestion candidates for the text enclosed in this span.

SuperscriptSpan

The span that moves the position of the text baseline higher.

TextAppearanceSpan

Sets the text appearance using the given TextAppearance attributes.

TtsSpan

A span that supplies additional meta-data for the associated text intended for text-to-speech engines.

TypefaceSpan

Span that updates the typeface of the text it's attached to.

UnderlineSpan

A span that underlines the text it's attached to.

URLSpan

Implementation of the ClickableSpan that allows setting a url string.