Android.Text.Style Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides classes used to view or change the style of a span of text in a View object.
Classes
| Name | Description |
|---|---|
| AbsoluteSizeSpan |
A span that changes the size of the text it's attached to. |
| AbsoluteSizeSpan.InterfaceConsts |
Provides parcelable interface constants for |
| AlignmentSpanStandard |
Default implementation of the |
| AlignmentSpanStandard.InterfaceConsts |
Provides parcelable interface constants for |
| BackgroundColorSpan |
Changes the background color of the text to which the span is attached. |
| BackgroundColorSpan.InterfaceConsts |
Provides parcelable interface constants for |
| BulletSpan |
A span which styles paragraphs as bullet points (respecting layout direction). |
| BulletSpan.InterfaceConsts |
Provides parcelable interface constants for |
| 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 |
A span which adds a drawable and a padding to the paragraph it's attached to. |
| DynamicDrawableSpan |
Span that replaces the text it's attached to with a |
| EasyEditSpan |
Provides an easy way to edit a portion of text. |
| EasyEditSpan.InterfaceConsts |
Provides parcelable interface constants for |
| ForegroundColorSpan |
Changes the color of the text to which the span is attached. |
| ForegroundColorSpan.InterfaceConsts |
Provides parcelable interface constants for |
| IconMarginSpan |
Paragraph affecting span, that draws a bitmap at the beginning of a text. |
| ILeadingMarginSpanExtensions |
Provides string overloads for |
| ILineBackgroundSpanExtensions |
Provides string overloads for |
| ILineHeightSpanExtensions |
Provides string overloads for |
| ILineHeightSpanWithDensityExtensions |
Provides string overloads for |
| ImageSpan |
Span that replaces the text it's attached to with a |
| LeadingMarginSpanStandard |
The standard implementation of LeadingMarginSpan, which adjusts the margin but does not do any rendering. |
| LeadingMarginSpanStandard.InterfaceConsts |
Provides parcelable interface constants for |
| LineBackgroundSpanStandard |
Default implementation of the |
| LineBackgroundSpanStandard.InterfaceConsts |
Provides parcelable interface constants for |
| LineBreakConfigSpan |
LineBreakSpan for changing line break style of the specific region of the text. |
| LineBreakConfigSpan.InterfaceConsts |
Provides parcelable interface constants for |
| LineHeightSpanStandard |
Default implementation of the |
| LineHeightSpanStandard.InterfaceConsts |
Provides parcelable interface constants for |
| LocaleSpan |
Changes the |
| LocaleSpan.InterfaceConsts |
Provides parcelable interface constants for |
| MaskFilterSpan |
Span that allows setting a |
| MetricAffectingSpan |
The classes that affect character-level text formatting in a way that changes the width or height of characters extend this class. |
| NoWritingToolsSpan |
A span that signals to IMEs that writing tools should not modify the text. |
| NoWritingToolsSpan.InterfaceConsts |
Provides parcelable interface constants for |
| QuoteSpan |
A span which styles paragraphs by adding a vertical stripe at the beginning of the text (respecting layout direction). |
| QuoteSpan.InterfaceConsts |
Provides parcelable interface constants for |
| RasterizerSpan |
Removed as Rasterizer is not supported for hardware-accelerated and PDF rendering |
| RelativeSizeSpan |
Uniformly scales the size of the text to which it's attached by a certain proportion. |
| RelativeSizeSpan.InterfaceConsts |
Provides parcelable interface constants for |
| ReplacementSpan |
Provides a base class for spans that measure and draw content in place of text. |
| ScaleXSpan |
Scales horizontally the size of the text to which it's attached by a certain factor. |
| ScaleXSpan.InterfaceConsts |
Provides parcelable interface constants for |
| StrikethroughSpan |
A span that strikes through the text it's attached to. |
| StrikethroughSpan.InterfaceConsts |
Provides parcelable interface constants for |
| StyleSpan |
Span that allows setting the style of the text it's attached to. |
| StyleSpan.InterfaceConsts |
Provides parcelable interface constants for |
| SubscriptSpan |
The span that moves the position of the text baseline lower. |
| SubscriptSpan.InterfaceConsts |
Provides parcelable interface constants for |
| SuggestionRangeSpan |
A SuggestionRangeSpan is used to show which part of an EditText is affected by a suggestion popup window. |
| SuggestionRangeSpan.InterfaceConsts |
Provides parcelable interface constants for |
| SuggestionSpan |
Holds suggestion candidates for the text enclosed in this span. |
| SuggestionSpan.InterfaceConsts |
Provides parcelable interface constants for |
| SuperscriptSpan |
The span that moves the position of the text baseline higher. |
| SuperscriptSpan.InterfaceConsts |
Provides parcelable interface constants for |
| TabStopSpanStandard |
The default implementation of TabStopSpan that allows setting the offset of the tab stop from the leading margin of the first line of text. |
| TextAppearanceSpan |
Sets the text appearance using the given
|
| TextAppearanceSpan.InterfaceConsts |
Provides parcelable interface constants for |
| TtsSpan |
A span that supplies additional meta-data for the associated text intended for text-to-speech engines. |
| TtsSpan.Builder |
A simple builder for TtsSpans. |
| TtsSpan.CardinalBuilder |
A builder for TtsSpans of type |
| TtsSpan.DateBuilder |
A builder for TtsSpans of type |
| TtsSpan.DecimalBuilder |
A builder for TtsSpans of type |
| TtsSpan.DigitsBuilder |
A builder for TtsSpans of type |
| TtsSpan.DurationBuilder |
A builder for TtsSpans of type |
| TtsSpan.ElectronicBuilder |
A builder for TtsSpans of type |
| TtsSpan.FractionBuilder |
A builder for TtsSpans of type |
| TtsSpan.InterfaceConsts |
Provides parcelable interface constants for |
| TtsSpan.MeasureBuilder |
A builder for TtsSpans of type |
| TtsSpan.MoneyBuilder |
A builder for TtsSpans of type |
| TtsSpan.OrdinalBuilder |
A builder for TtsSpans of type |
| TtsSpan.SemioticClassBuilder |
A builder for TtsSpans, has setters for morphosyntactic features. |
| TtsSpan.TelephoneBuilder |
A builder for TtsSpans of type |
| TtsSpan.TextBuilder |
A builder for TtsSpans of type |
| TtsSpan.TimeBuilder |
A builder for TtsSpans of type |
| TtsSpan.VerbatimBuilder |
A builder for TtsSpans of type |
| TypefaceSpan |
Span that updates the typeface of the text it's attached to. |
| TypefaceSpan.InterfaceConsts |
Provides parcelable interface constants for |
| UnderlineSpan |
A span that underlines the text it's attached to. |
| UnderlineSpan.InterfaceConsts |
Provides parcelable interface constants for |
| URLSpan |
Implementation of the |
| URLSpan.InterfaceConsts |
Provides parcelable interface constants for |
Interfaces
| Name | Description |
|---|---|
| IAlignmentSpan |
Span that allows defining the alignment of text at the paragraph level. |
| ILeadingMarginSpan |
A paragraph style affecting the leading margin. |
| ILeadingMarginSpanLeadingMarginSpan2 |
An extended version of |
| ILineBackgroundSpan |
Used to change the background of lines where the span is attached to. |
| ILineHeightSpan |
The classes that affect the line height of paragraph should implement this interface. |
| ILineHeightSpanWithDensity |
The classes that affect the line height of paragraph with respect to density, should implement this interface. |
| IParagraphStyle |
The classes that affect paragraph-level text formatting implement this interface. |
| ITabStopSpan |
Paragraph affecting span that changes the position of the tab with respect to the leading margin of the line. |
| IUpdateAppearance |
The classes that affect character-level text in a way that modifies their appearance when one is added or removed must implement this interface. |
| IUpdateLayout |
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. |
| IWrapTogetherSpan |
Marks paragraph styles whose full span range must be included when text is laid out again. |
Enums
| Name | Description |
|---|---|
| SpanAlign |
Enumerates values returned by the VerticalAlignment, Baseline, and Bottom members and taken as a parameter of several methods of ImageSpan. |
| SuggestionSpanFlags |
Specifies correction and error flags for a suggestion span. |
| TtsSpanMonth |
Enumerates values returned by several methods of TtsSpanMonth. |
| TtsSpanWeekday |
Enumerates values returned by several methods of TtsSpanWeekday. |