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.

@FunctionalInterface public static interface Spannable.Factory
Factory used by `TextView` to create new `Spannables`. You can subclass it to provide something other than `SpannableString`.

See Also:
  - `Spannable.DEFAULT_FACTORY`
  - `TextView.setSpannableFactory(Factory)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Spannable`
  `newSpannable(CharSequence source)`
  Returns a new `Spannable` from the specified `CharSequence`.

- ## Method Details

  - ### newSpannable

    @Nonnull Spannable newSpannable(@Nonnull CharSequence source)
    Returns a new `Spannable` from the specified `CharSequence`. You can override this to provide a different kind of `Spannable`.
    Parameters:
      `source` - the source to be created from
    Returns:
      a new `Spannable`