Package android.text

Class Spannable.Factory

  • Enclosing interface:
    Spannable

    public static class Spannable.Factory
    extends java.lang.Object
    Factory used by TextView to create new Spannables. You can subclass it to provide something other than SpannableString.
    See Also:
    TextView.setSpannableFactory(Factory)
    • Constructor Summary

      Constructors 
      Constructor Description
      Factory()  
    • Constructor Detail

      • Factory

        public Factory()
    • 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.