Sdílet prostřednictvím


Android.Text.Style Namespace

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

Classes

AbsoluteSizeSpan

A span that changes the size of the text it's attached to.

AbsoluteSizeSpan.InterfaceConsts
AlignmentSpanStandard

Default implementation of the AlignmentSpan.

AlignmentSpanStandard.InterfaceConsts
BackgroundColorSpan

Changes the background color of the text to which the span is attached.

BackgroundColorSpan.InterfaceConsts
BulletSpan

A span which styles paragraphs as bullet points (respecting layout direction).

BulletSpan.InterfaceConsts
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 Drawable that can be aligned with the bottom or with the baseline of the surrounding text.

EasyEditSpan

Provides an easy way to edit a portion of text.

EasyEditSpan.InterfaceConsts
ForegroundColorSpan

Changes the color of the text to which the span is attached.

ForegroundColorSpan.InterfaceConsts
IconMarginSpan

Paragraph affecting span, that draws a bitmap at the beginning of a text.

ILeadingMarginSpanExtensions
ILineBackgroundSpanExtensions
ILineHeightSpanExtensions
ILineHeightSpanWithDensityExtensions
ImageSpan

Span that replaces the text it's attached to with a Drawable that can be aligned with the bottom or with the baseline of the surrounding text.

LeadingMarginSpanStandard

The standard implementation of LeadingMarginSpan, which adjusts the margin but does not do any rendering.

LeadingMarginSpanStandard.InterfaceConsts
LineBackgroundSpanStandard

Default implementation of the LineBackgroundSpan, which changes the background color of the lines to which the span is attached.

LineBackgroundSpanStandard.InterfaceConsts
LineHeightSpanStandard

Default implementation of the LineHeightSpan, which changes the line height of the attached paragraph.

LineHeightSpanStandard.InterfaceConsts
LocaleSpan

Changes the Locale of the text to which the span is attached.

LocaleSpan.InterfaceConsts
MaskFilterSpan

Span that allows setting a MaskFilter to the text it's attached to.

MetricAffectingSpan

The classes that affect character-level text formatting in a way that changes the width or height of characters extend this class.

QuoteSpan

A span which styles paragraphs by adding a vertical stripe at the beginning of the text (respecting layout direction).

QuoteSpan.InterfaceConsts
RasterizerSpan
RelativeSizeSpan

Uniformly scales the size of the text to which it's attached by a certain proportion.

RelativeSizeSpan.InterfaceConsts
ReplacementSpan
ScaleXSpan

Scales horizontally the size of the text to which it's attached by a certain factor.

ScaleXSpan.InterfaceConsts
StrikethroughSpan

A span that strikes through the text it's attached to.

StrikethroughSpan.InterfaceConsts
StyleSpan

Span that allows setting the style of the text it's attached to.

StyleSpan.InterfaceConsts
SubscriptSpan

The span that moves the position of the text baseline lower.

SubscriptSpan.InterfaceConsts
SuggestionRangeSpan

A SuggestionRangeSpan is used to show which part of an EditText is affected by a suggestion popup window.

SuggestionRangeSpan.InterfaceConsts
SuggestionSpan

Holds suggestion candidates for the text enclosed in this span.

SuggestionSpan.InterfaceConsts
SuperscriptSpan

The span that moves the position of the text baseline higher.

SuperscriptSpan.InterfaceConsts
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 android.R.styleable#TextAppearance TextAppearance attributes.

TextAppearanceSpan.InterfaceConsts
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 #TYPE_CARDINAL.

TtsSpan.DateBuilder

A builder for TtsSpans of type #TYPE_DATE.

TtsSpan.DecimalBuilder

A builder for TtsSpans of type #TYPE_DECIMAL.

TtsSpan.DigitsBuilder

A builder for TtsSpans of type #TYPE_DIGITS.

TtsSpan.ElectronicBuilder

A builder for TtsSpans of type #TYPE_ELECTRONIC.

TtsSpan.FractionBuilder

A builder for TtsSpans of type #TYPE_FRACTION.

TtsSpan.InterfaceConsts
TtsSpan.MeasureBuilder

A builder for TtsSpans of type #TYPE_MEASURE.

TtsSpan.MoneyBuilder

A builder for TtsSpans of type #TYPE_MONEY.

TtsSpan.OrdinalBuilder

A builder for TtsSpans of type #TYPE_ORDINAL.

TtsSpan.SemioticClassBuilder

A builder for TtsSpans, has setters for morphosyntactic features.

TtsSpan.TelephoneBuilder

A builder for TtsSpans of type #TYPE_TELEPHONE.

TtsSpan.TextBuilder

A builder for TtsSpans of type #TYPE_TEXT.

TtsSpan.TimeBuilder

A builder for TtsSpans of type #TYPE_TIME.

TtsSpan.VerbatimBuilder

A builder for TtsSpans of type #TYPE_VERBATIM.

TypefaceSpan

Span that updates the typeface of the text it's attached to.

TypefaceSpan.InterfaceConsts
UnderlineSpan

A span that underlines the text it's attached to.

UnderlineSpan.InterfaceConsts
URLSpan

Implementation of the ClickableSpan that allows setting a url string.

URLSpan.InterfaceConsts

Interfaces

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 LeadingMarginSpan, 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

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

Enums

SpanAlign

Enumerates values returned by the VerticalAlignment, Baseline, and Bottom members and taken as a parameter of several methods of ImageSpan.

SuggestionSpanFlags
TtsSpanMonth

Enumerates values returned by several methods of TtsSpanMonth.

TtsSpanWeekday

Enumerates values returned by several methods of TtsSpanWeekday.