Stay organized with collections
Save and categorize content based on your preferences.
ParcelableSpan
public
interface
ParcelableSpan
implements
Parcelable
android.text.ParcelableSpan
|
Known indirect subclasses
AbsoluteSizeSpan, AlignmentSpan.Standard, Annotation, BackgroundColorSpan, BulletSpan, EasyEditSpan, ForegroundColorSpan, LeadingMarginSpan.Standard, LineBackgroundSpan.Standard, LineBreakConfigSpan, LineHeightSpan.Standard, LocaleSpan, NoWritingToolsSpan, QuoteSpan, RelativeSizeSpan, and 12 others.
AbsoluteSizeSpan |
A span that changes the size of the text it's attached to.
|
AlignmentSpan.Standard |
Default implementation of the AlignmentSpan .
|
Annotation |
Annotations are simple key-value pairs that are preserved across
TextView save/restore cycles and can be used to keep application-specific
data that needs to be maintained for regions of text.
|
BackgroundColorSpan |
Changes the background color of the text to which the span is attached.
|
BulletSpan |
A span which styles paragraphs as bullet points (respecting layout direction).
|
EasyEditSpan |
Provides an easy way to edit a portion of text.
|
ForegroundColorSpan |
Changes the color of the text to which the span is attached.
|
LeadingMarginSpan.Standard |
The standard implementation of LeadingMarginSpan, which adjusts the
margin but does not do any rendering.
|
LineBackgroundSpan.Standard |
Default implementation of the LineBackgroundSpan , which changes the background
color of the lines to which the span is attached.
|
LineBreakConfigSpan |
LineBreakSpan for changing line break style of the specific region of the text.
|
LineHeightSpan.Standard |
Default implementation of the LineHeightSpan , which changes the line height of the
attached paragraph.
|
LocaleSpan |
Changes the Locale of the text to which the span is attached.
|
NoWritingToolsSpan |
A span that signals to IMEs that writing tools should not modify the text.
|
QuoteSpan |
A span which styles paragraphs by adding a vertical stripe at the beginning of the text
(respecting layout direction).
|
RelativeSizeSpan |
Uniformly scales the size of the text to which it's attached by a certain proportion.
|
ScaleXSpan |
Scales horizontally the size of the text to which it's attached by a certain factor.
|
StrikethroughSpan |
A span that strikes through the text it's attached to.
|
StyleSpan |
Span that allows setting the style of the text it's attached to.
|
SubscriptSpan |
The span that moves the position of the text baseline lower.
|
SuggestionRangeSpan |
A SuggestionRangeSpan is used to show which part of an EditText is affected by a suggestion
popup window.
|
SuggestionSpan |
Holds suggestion candidates for the text enclosed in this span.
|
SuperscriptSpan |
The span that moves the position of the text baseline higher.
|
TextAppearanceSpan |
Sets the text appearance using the given
TextAppearance attributes.
|
TtsSpan |
A span that supplies additional meta-data for the associated text intended
for text-to-speech engines.
|
TypefaceSpan |
Span that updates the typeface of the text it's attached to.
|
URLSpan |
Implementation of the ClickableSpan that allows setting a url string.
|
UnderlineSpan |
A span that underlines the text it's attached to.
|
|
A special kind of Parcelable for objects that will serve as text spans.
This can only be used by code in the framework; it is not intended for
applications to implement their own Parcelable spans.
Summary
Public methods |
abstract
int
|
getSpanTypeId()
Return a special type identifier for this span class.
|
Public methods
getSpanTypeId
public abstract int getSpanTypeId ()
Return a special type identifier for this span class.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-01-23 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-23 UTC."],[],[]]