Package icyllis.modernui.text
package icyllis.modernui.text
Provides classes used to render or track text and text spans on the screen,
which include text style controlling, line break, and several utility classes.
All these are Unicode-based.
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.
-
ClassDescriptionA BoringLayout is a very simple Layout implementation for text that fits on a single line and is all left-to-right characters.An implementation of
CharacterIterator
that iterates over a given CharSequence.Stores information about bidirectional (left-to-right or right-to-left) text within the layout of a line in rendering order.Builder for dynamic layouts.This is the interface for text whose content and markup can be changed (as opposed to immutable text like Strings).Factory used by TextView to create newEditables
.Implement this interface if yourCharSequence
has aString.getChars(int, int, char[], int)
method like the one inString
that is faster than callingCharSequence.charAt(int)
multiple times.InputFilters can be attached toEditables
to constrain the changes that can be made to them.This filter will constrain edits not to make the length of the text greater than the specified length.A base class that manages text layout in visual elements on the screen, which is designed for text pages at high-level.MeasuredParagraph provides text information for rendering purpose.This interface should be added to a span object that should not be copied into a new Spanned when performing a slice or copy operation on the original Spanned it was placed in.Convenience equivalent for when you would just want a new Object() for a span but want it to be no-copy.PackedIntVector stores a two-dimensional array of integers, optimized for inserting and deleting rows and for offsetting the values in segments of a given column.A special kind ofParcelable
for objects that will serve as text spans.A text which has the character metrics data.The information required for buildingPrecomputedText
.A builder for creatingPrecomputedText.Params
.Utility class for manipulating cursors and selections in CharSequences.This is the interface for text to which markup objects can be attached and detached.Factory used byTextView
to create newSpannables
.This is the class for text whose content is immutable but to which markup objects can be attached and detached.This is the class for text whose content and markup can both be changed.This is the interface for text that has markup objects attached to ranges of it.This is the class for text whose content and markup are immutable.SpanSet<E>A cached set of spans.When 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.StaticLayout is a Layout for text that will not be edited after it is laid out.Builder for static layouts.Interface for objects that use a heuristic for guessing at the paragraph direction by examining text.Represents a line of styled text, for measuring in visual order and for rendering.This class holds data used during text measuring and drawing at higher levels.Provides conversion from a text into glyph array.A consumer interface for accepting text shape result.Where to truncate.When an object of this type is attached to an Editable, its methods will be called when the text is changed.The Typeface specifies a set of font families that can be used in Paint.