Android.Text Namespace

Provides classes used to render or track text and text spans on the screen.

Remarks

Provides classes used to render or track text and text spans on the screen.

You can use these classes to design your own widgets that manage text, to handle arbitrary text spans for changes, or to handle drawing yourself for an existing widget.

The Span… interfaces and classes are used to create or manage spans of text in a View item. You can use these to style the text or background, or to listen for changes. If creating your own widget, extend DynamicLayout, to manages the actual wrapping and drawing of your text.

Classes

TypeReason
AfterTextChangedEventArgsProvides data for the Android.Widget.TextView.AfterTextChanged event.
AlteredCharSequenceAn 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.
AndroidCharacterAndroidCharacter exposes some character properties that are not easily accessed from java.lang.
AnnotationAnnotations 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.
Annotation+InterfaceConstsDocumentation for this section has not yet been entered.
AutoTextThis class accesses a dictionary of corrections to frequent misspellings.
BidiFormatterUtility class for formatting text for display in a potentially opposite-directionality context without garbling.
BidiFormatter+BuilderA class for building a BidiFormatter with non-default options.
BoringLayoutA BoringLayout is a very simple Layout implementation for text that fits on a single line and is all left-to-right characters.
BoringLayout+MetricsDocumentation for this section has not yet been entered.
CapitalizationModeEnumerates values returned by several types and taken as a parameter of several types.
ClipboardManager [Android Documentation]
DynamicLayoutDynamicLayout is a text layout that updates itself as the text is edited.
EastAsianWidthEnumerates values returned by several types.
EditableFactoryFactory used by TextView to create new Editables.
HtmlThis class processes HTML strings into displayable styled text.
Html+IImageGetterRetrieves images for HTML <img> tags.
Html+ITagHandlerIs notified when HTML tags are encountered that the parser does not know how to interpret.
IEditableThis is the interface for text whose content and markup can be changed (as opposed to immutable text like Strings).
IEditableExtensionsDocumentation for this section has not yet been entered.
IGetCharsPlease implement this interface if your CharSequence has a getChars() method like the one in String that is faster than calling charAt() multiple times.
IInputFilterInputFilters can be attached to Android.Text.IEditables to constrain the changes that can be made to them.
IInputFilterExtensionsDocumentation for this section has not yet been entered.
IInputTypeBit definitions for an integer defining the basic content type of text held in an Android.Text.IEditable object.
INoCopySpanThis interface should be added to a span object that should not be copied into a new Spenned when performing a slice or copy operation on the original Spanned it was placed in.
InputFilterAllCapsThis filter will capitalize all the lower case letters that are added through edits.
InputFilterLengthFilterThis filter will constrain edits not to make the length of the text greater than the specified length.
InputTypesEnumerates values returned by several types and taken as a parameter of the Android.Widget.SearchView.SetInputType, and Android.Widget.TextView.SetRawInputType members.
IParcelableSpanA special kind of Parcelable for objects that will serve as text spans.
ISpannableThis is the interface for text to which markup objects can be attached and detached.
ISpannedThis is the interface for text that has markup objects attached to ranges of it.
ISpanWatcherWhen an object of this type is attached to a Spannable, its methods will be called to notify it that other markup objects have been added, changed, or removed.
ITextDirectionHeuristicInterface for objects that use a heuristic for guessing at the paragraph direction by examining text.
ITextDirectionHeuristicExtensionsDocumentation for this section has not yet been entered.
ITextWatcherWhen an object of a type is attached to an Editable, its methods will be called when the text is changed.
ITextWatcherExtensionsDocumentation for this section has not yet been entered.
LayoutA base class that manages text layout in visual elements on the screen.
Layout+AlignmentDocumentation for this section has not yet been entered.
Layout+DirectionsStores information about bidirectional (left-to-right or right-to-left) text within the layout of a line.
LoginFilterAbstract class for filtering login-related text (user names and passwords)
LoginFilter+PasswordFilterGMailThis filter is compatible with GMail passwords which restricts characters to the Latin-1 (ISO8859-1) char set.
LoginFilter+UsernameFilterGenericThis filter rejects characters in the user name that are not compatible with Google login.
LoginFilter+UsernameFilterGMailThis filter rejects characters in the user name that are not compatible with GMail account creation.
NoCopySpanConcreteConvenience equivalent for when you would just want a new Object() for a span but want it to be no-copy.
SelectionUtility class for manipulating cursors and selections in CharSequences.
SpannableFactoryFactory used by TextView to create new Spannables.
SpannableStringThis is the class for text whose content is immutable but to which markup objects can be attached and detached.
SpannableStringBuilderThis is the class for text whose content and markup can both be changed.
SpannableStringInternalDocumentation for this section has not yet been entered.
SpannedStringThis is the class for text whose content and markup are immutable.
SpanTypesEnumerates values returned by several types and taken as a parameter of several types.
StaticLayoutStaticLayout is a Layout for text that will not be edited after it is laid out.
TextChangedEventArgsProvides data for the Android.Widget.TextView.AfterTextChanged, Android.Widget.TextView.BeforeTextChanged, and Android.Widget.TextView.TextChanged events.
TextDirectionHeuristicsSome objects that implement Android.Text.ITextDirectionHeuristic.
TextLayoutDirectionEnumerates values returned by several types.
TextPaintTextPaint is an extension of Paint that leaves room for some extra data used during text measuring and drawing.
TextUtils [Android Documentation]
TextUtils+IEllipsizeCallbackDocumentation for this section has not yet been entered.
TextUtils+IStringSplitterAn interface for splitting strings according to rules that are opaque to the user of this interface.
TextUtils+SimpleStringSplitterA simple string splitter.
TextUtils+TruncateAtDocumentation for this section has not yet been entered.