android.text
Class SpannedString
java.lang.Object
android.text.SpannableStringInternal
android.text.SpannedString
- All Implemented Interfaces:
- GetChars, Spanned, CharSequence
public final class SpannedString
- extends SpannableStringInternal
- implements CharSequence, GetChars, Spanned
This is the class for text whose content and markup are immutable.
For mutable markup, see SpannableString; for mutable text,
see SpannableStringBuilder.
| Fields inherited from interface android.text.Spanned |
SPAN_EXCLUSIVE_EXCLUSIVE, SPAN_EXCLUSIVE_INCLUSIVE, SPAN_INCLUSIVE_EXCLUSIVE, SPAN_INCLUSIVE_INCLUSIVE, SPAN_MARK_MARK, SPAN_MARK_POINT, SPAN_PARAGRAPH, SPAN_POINT_MARK, SPAN_POINT_POINT, SPAN_PRIORITY, SPAN_PRIORITY_SHIFT, SPAN_USER, SPAN_USER_SHIFT |
| Methods inherited from class android.text.SpannableStringInternal |
charAt, getChars, getSpanEnd, getSpanFlags, getSpans, getSpanStart, length, nextSpanTransition, removeSpan, setSpan, toString |
SpannedString
public SpannedString(CharSequence source)
subSequence
public CharSequence subSequence(int start,
int end)
- Description copied from interface:
CharSequence
- Returns a CharSequence from the
start index (inclusive) to
the end index (exclusive) of this sequence.
- Specified by:
subSequence in interface CharSequence
- Parameters:
start - The starting offset of the sub-sequence, that is, the
index of the first character that goes into the sub-sequenceend - The ending offset of the sub-sequence, that is, the
index of the first character after those that go into the
sub-sequence
- Returns:
- The requested sub-sequence
valueOf
public static SpannedString valueOf(CharSequence source)
Please submit a feedback, bug or feature