Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
Added in API level 1
package

android.text.style

Provides classes used to view or change the style of a span of text in a View object. The classes with a subclass Standard are passed in to SpannableString.setSpan() or SpannableStringBuilder.setSpan() to add a new styled span to a string in a View object.

Interfaces

AlignmentSpan  
LeadingMarginSpan A paragraph style affecting the leading margin. 
LeadingMarginSpan.LeadingMarginSpan2 An extended version of LeadingMarginSpan , which allows the implementor to specify the number of lines of text to which this object is attached that the "first line of paragraph" margin width will be applied to. 
LineBackgroundSpan  
LineHeightSpan  
LineHeightSpan.WithDensity  
ParagraphStyle The classes that affect paragraph-level text formatting implement this interface. 
TabStopSpan Represents a single tab stop on a 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  
AlignmentSpan.Standard  
BackgroundColorSpan  
BulletSpan  
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  
DynamicDrawableSpan  
EasyEditSpan Provides an easy way to edit a portion of text. 
ForegroundColorSpan  
IconMarginSpan  
ImageSpan  
LeadingMarginSpan.Standard The standard implementation of LeadingMarginSpan, which adjusts the margin but does not do any rendering. 
LocaleSpan Changes the Locale of the text to which the span is attached. 
MaskFilterSpan  
MetricAffectingSpan The classes that affect character-level text formatting in a way that changes the width or height of characters extend this class. 
QuoteSpan  
RasterizerSpan  
RelativeSizeSpan  
ReplacementSpan  
ScaleXSpan  
StrikethroughSpan  
StyleSpan Describes a style in a span. 
SubscriptSpan  
SuggestionSpan Holds suggestion candidates for the text enclosed in this span. 
SuperscriptSpan  
TabStopSpan.Standard The default implementation of TabStopSpan. 
TextAppearanceSpan Sets the text color, size, style, and typeface to match a TextAppearance resource. 
TypefaceSpan Changes the typeface family of the text to which the span is attached. 
UnderlineSpan  
URLSpan