SpannableString
open class SpannableString : CharSequence, GetChars, Spannable
This is the class for text whose content is immutable but to which markup objects can be attached and detached. For mutable text, see SpannableStringBuilder.
Summary
| Public constructors |
|
For the backward compatibility reasons, this constructor copies all spans including .
|
Public constructors
<init>
SpannableString(source: CharSequence!)
For the backward compatibility reasons, this constructor copies all spans including .
Public methods
getSpanEnd
open fun getSpanEnd(what: Any!): Int
getSpanFlags
open fun getSpanFlags(what: Any!): Int
getSpanStart
open fun getSpanStart(what: Any!): Int
getSpans
open fun <T : Any!> getSpans(
queryStart: Int,
queryEnd: Int,
kind: Class<T>!
): Array<T>!
hashCode
open fun hashCode(): Int
nextSpanTransition
open fun nextSpanTransition(
start: Int,
limit: Int,
kind: Class<Any!>!
): Int
removeSpan
open fun removeSpan(what: Any!): Unit
subSequence
fun subSequence(
startIndex: Int,
endIndex: Int
): CharSequence
| Parameters |
start |
the start index, inclusive |
end |
the end index, exclusive |
| Exceptions |
java.lang.IndexOutOfBoundsException |
if start or end are negative, if end is greater than length(), or if start is greater than end |
toString
fun toString(): String
Properties