Package icyllis.modernui.text
Interface Spannable.Factory
- Enclosing interface:
Spannable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Factory used by
TextView
to create new Spannables
.
You can subclass it to provide something other than SpannableString
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionnewSpannable
(CharSequence source) Returns a newSpannable
from the specifiedCharSequence
.
-
Method Details
-
newSpannable
Returns a newSpannable
from the specifiedCharSequence
. You can override this to provide a different kind ofSpannable
.- Parameters:
source
- the source to be created from- Returns:
- a new
Spannable
-