Package android.text
Class Spannable.Factory
- java.lang.Object
-
- android.text.Spannable.Factory
-
- Enclosing interface:
- Spannable
public static class Spannable.Factory extends java.lang.ObjectFactory used by TextView to create newSpannables. You can subclass it to provide something other thanSpannableString.- See Also:
TextView.setSpannableFactory(Factory)
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Spannable.FactorygetInstance()Returns the standard Spannable Factory.SpannablenewSpannable(java.lang.CharSequence source)Returns a new SpannableString from the specified CharSequence.
-
-
-
Method Detail
-
getInstance
public static Spannable.Factory getInstance()
Returns the standard Spannable Factory.
-
newSpannable
public Spannable newSpannable(java.lang.CharSequence source)
Returns a new SpannableString from the specified CharSequence. You can override this to provide a different kind of Spannable.
-
-