lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey
added in API level 1

Editable.Factory

public static class Editable.Factory
extends Object

java.lang.Object
   ↳ android.text.Editable.Factory


Factory used by TextView to create new Editables. You can subclass it to provide something other than SpannableStringBuilder.

Summary

Public constructors

Editable.Factory()

Public methods

static Editable.Factory getInstance()

Returns the standard Editable Factory.

Editable newEditable(CharSequence source)

Returns a new SpannedStringBuilder from the specified CharSequence.

Inherited methods

Public constructors

Editable.Factory

added in API level 1
public Editable.Factory ()

Public methods

getInstance

added in API level 1
public static Editable.Factory getInstance ()

Returns the standard Editable Factory.

Returns
Editable.Factory

newEditable

added in API level 1
public Editable newEditable (CharSequence source)

Returns a new SpannedStringBuilder from the specified CharSequence. You can override this to provide a different kind of Spanned.

Parameters
source CharSequence

Returns
Editable