Spannable
public
interface
Spannable
implements
Spanned
| android.text.Spannable |
|
|
This is the interface for text to which markup objects can be
attached and detached. Not all Spannable classes have mutable text;
see Editable for that.
Summary
Nested classes | |
|---|---|
class |
Spannable.Factory
Factory used by TextView to create new |
Inherited constants |
|---|
android.text.Spanned
|
Public methods | |
|---|---|
abstract
void
|
removeSpan(Object what)
Remove the specified object from the range of text to which it was attached, if any. |
abstract
void
|
setSpan(Object what, int start, int end, int flags)
Attach the specified markup object to the range |
Inherited methods | |
|---|---|
android.text.Spanned
| |
java.lang.CharSequence
| |
Public methods
removeSpan
void removeSpan (Object what)
Remove the specified object from the range of text to which it was attached, if any. It is OK to remove an object that was never attached in the first place.
| Parameters | |
|---|---|
what |
Object |
setSpan
void setSpan (Object what, int start, int end, int flags)
Attach the specified markup object to the range start…end
of the text, or move the object to that range if it was already
attached elsewhere. See Spanned for an explanation of
what the flags mean. The object can be one that has meaning only
within your application, or it can be one that the text system will
use to affect text display or behavior. Some noteworthy ones are
the subclasses of CharacterStyle and
ParagraphStyle, and
TextWatcher and
SpanWatcher.
| Parameters | |
|---|---|
what |
Object |
start |
int |
end |
int |
flags |
int |
Interfaces
Classes
- AlteredCharSequence
- AndroidCharacter
- Annotation
- AutoText
- BidiFormatter
- BidiFormatter.Builder
- BoringLayout
- BoringLayout.Metrics
- ClipboardManager
- DynamicLayout
- Editable.Factory
- Html
- InputFilter.AllCaps
- InputFilter.LengthFilter
- Layout
- Layout.Directions
- LoginFilter
- LoginFilter.PasswordFilterGMail
- LoginFilter.UsernameFilterGeneric
- LoginFilter.UsernameFilterGMail
- NoCopySpan.Concrete
- Selection
- Spannable.Factory
- SpannableString
- SpannableStringBuilder
- SpannedString
- StaticLayout
- StaticLayout.Builder
- TextDirectionHeuristics
- TextPaint
- TextUtils
- TextUtils.SimpleStringSplitter
Enums