Skip to content

Most visited

Recently visited

navigation
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

From class java.lang.Object

Public constructors

Editable.Factory

Added in API level 1
Editable.Factory ()

Public methods

getInstance

Added in API level 1
Editable.Factory getInstance ()

Returns the standard Editable Factory.

Returns
Editable.Factory

newEditable

Added in API level 1
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
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.