Google is committed to advancing racial equity for Black communities. See how.

android.text

Classes

AlteredCharSequence

An AlteredCharSequence is a CharSequence that is largely mirrored from another CharSequence, except that a specified range of characters are mirrored from a different char array instead.

AndroidCharacter

AndroidCharacter exposes some character properties that used to be not easily accessed from java.

Annotation

Annotations are simple key-value pairs that are preserved across TextView save/restore cycles and can be used to keep application-specific data that needs to be maintained for regions of text.

AutoText

This class accesses a dictionary of corrections to frequent misspellings.

BidiFormatter

Utility class for formatting text for display in a potentially opposite-directionality context without garbling.

BoringLayout

A BoringLayout is a very simple Layout implementation for text that fits on a single line and is all left-to-right characters.

ClipboardManager

DynamicLayout

DynamicLayout is a text layout that updates itself as the text is edited.

Html

This class processes HTML strings into displayable styled text.

Layout

A base class that manages text layout in visual elements on the screen.

LoginFilter

Abstract class for filtering login-related text (user names and passwords)

PrecomputedText

A text which has the character metrics data.

Selection

Utility class for manipulating cursors and selections in CharSequences.

SpannableString

This is the class for text whose content is immutable but to which markup objects can be attached and detached.

SpannableStringBuilder

This is the class for text whose content and markup can both be changed.

SpannedString

This is the class for text whose content and markup are immutable.

StaticLayout

StaticLayout is a Layout for text that will not be edited after it is laid out.

TextDirectionHeuristics

Some objects that implement TextDirectionHeuristic.

TextPaint

TextPaint is an extension of Paint that leaves room for some extra data used during text measuring and drawing.

TextUtils