Android Guides | Samples

Android.Text.Style Namespace

Provides classes used to view or change the style of a span of text in a View object.

Remarks

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(Object,Int32,Int32,Int32) or SpannableStringBuilder.SetSpan(Object,Int32,Int32,Int32) to add a new styled span to a string in a View object.

Classes

TypeReason
AbsoluteSizeSpan [Android Documentation]
AbsoluteSizeSpan+InterfaceConsts
AlignmentSpanStandard [Android Documentation]
AlignmentSpanStandard+InterfaceConsts
BackgroundColorSpan [Android Documentation]
BackgroundColorSpan+InterfaceConsts
BulletSpan [Android Documentation]
BulletSpan+InterfaceConsts
CharacterStyleThe classes that affect character-level text formatting extend this class.
ClickableSpanIf 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 [Android Documentation]
DynamicDrawableSpan
EasyEditSpanProvides an easy way to edit a portion of text.
EasyEditSpan+InterfaceConsts
ForegroundColorSpan [Android Documentation]
ForegroundColorSpan+InterfaceConsts
IAlignmentSpan [Android Documentation]
IconMarginSpan [Android Documentation]
ILeadingMarginSpanA paragraph style affecting the leading margin.
ILeadingMarginSpanExtensions
ILeadingMarginSpanLeadingMarginSpan2An extended version of ILeadingMarginSpan, which allows the implementor to specify the number of lines of the paragraph to which this object is attached that the "first line of paragraph" margin width will be applied to.
ILineBackgroundSpan [Android Documentation]
ILineBackgroundSpanExtensions
ILineHeightSpan [Android Documentation]
ILineHeightSpanExtensions
ILineHeightSpanWithDensity [Android Documentation]
ILineHeightSpanWithDensityExtensions
ImageSpan [Android Documentation]
IParagraphStyleThe classes that affect paragraph-level text formatting implement this interface.
ITabStopSpanRepresents a single tab stop on a line.
IUpdateAppearanceThe classes that affect character-level text in a way that modifies their appearance when one is added or removed must implement this interface.
IUpdateLayoutThe 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.
IWrapTogetherSpan [Android Documentation]
LeadingMarginSpanStandardThe standard implementation of LeadingMarginSpan, which adjusts the margin but does not do any rendering.
LeadingMarginSpanStandard+InterfaceConsts
LocaleSpanChanges the Locale of the text to which the span is attached.
LocaleSpan+InterfaceConsts
MaskFilterSpan [Android Documentation]
MetricAffectingSpanThe classes that affect character-level text formatting in a way that changes the width or height of characters extend this class.
QuoteSpan [Android Documentation]
QuoteSpan+InterfaceConsts
RasterizerSpan [Android Documentation]
RelativeSizeSpan [Android Documentation]
RelativeSizeSpan+InterfaceConsts
ReplacementSpan [Android Documentation]
ScaleXSpan [Android Documentation]
ScaleXSpan+InterfaceConsts
SpanAlignEnumerates values returned by the DynamicDrawableSpan.VerticalAlignment, SpanAlign.Baseline, and SpanAlign.Bottom members and taken as a parameter of several methods of ImageSpan.
StrikethroughSpan [Android Documentation]
StrikethroughSpan+InterfaceConsts
StyleSpanDescribes a style in a span.
StyleSpan+InterfaceConsts
SubscriptSpan [Android Documentation]
SubscriptSpan+InterfaceConsts
SuggestionSpanHolds suggestion candidates for the text enclosed in this span.
SuggestionSpan+InterfaceConsts
SuggestionSpanFlagsEnumerates values returned by several types and taken as a parameter of the Android.Text.Style.SuggestionSpan..ctor, Android.Text.Style.SuggestionSpan..ctor, and Android.Text.Style.SuggestionSpan..ctor members.
SuperscriptSpan [Android Documentation]
SuperscriptSpan+InterfaceConsts
TabStopSpanStandardThe default implementation of TabStopSpan.
TextAppearanceSpanSets the text color, size, style, and typeface to match a TextAppearance resource.
TextAppearanceSpan+InterfaceConsts
TtsSpanA span that supplies additional meta-data for the associated text intended for text-to-speech engines.
TtsSpan+Builder
TtsSpan+CardinalBuilder
TtsSpan+DateBuilder
TtsSpan+DecimalBuilder
TtsSpan+DigitsBuilder
TtsSpan+ElectronicBuilder
TtsSpan+FractionBuilder
TtsSpan+InterfaceConsts
TtsSpan+MeasureBuilder
TtsSpan+MoneyBuilder
TtsSpan+OrdinalBuilder
TtsSpan+SemioticClassBuilder
TtsSpan+TelephoneBuilder
TtsSpan+TextBuilder
TtsSpan+TimeBuilder
TtsSpan+VerbatimBuilder
TtsSpanMonthEnumerates values returned by several methods of TtsSpanMonth.
TtsSpanWeekdayEnumerates values returned by several methods of TtsSpanWeekday.
TypefaceSpanChanges the typeface family of the text to which the span is attached.
TypefaceSpan+InterfaceConsts
UnderlineSpan [Android Documentation]
UnderlineSpan+InterfaceConsts
URLSpan [Android Documentation]
URLSpan+InterfaceConsts