Editable.Factory
Stay organized with collections
Save and categorize content based on your preferences.
Factory used by TextView to create new Editables. You can subclass
it to provide something other than SpannableStringBuilder.
Public Constructor Summary
Inherited Method Summary
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
Public Methods
Returns the standard Editable Factory.
public
Editable
newEditable
(CharSequence source)
Returns a new SpannedStringBuilder from the specified
CharSequence. You can override this to provide
a different kind of Spanned.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["`Editable.Factory` is used by `TextView` to create new `Editable` objects, and you can subclass it to provide custom implementations."],["It offers a method to get the standard `Editable.Factory` instance using `getInstance()`."],["The `newEditable()` method creates a new `SpannableStringBuilder` from a given `CharSequence`, and you can override it to provide a different kind of `Spanned` object."]]],["Editable.Factory is a class used by TextView to create new Editables. It can be subclassed to provide an alternative to SpannableStringBuilder. The `getInstance()` method returns the standard Editable Factory. The `newEditable(CharSequence source)` method returns a new SpannedStringBuilder from a given CharSequence; this method can be overridden to return different types of Spanned objects. The class includes a default `Factory()` constructor.\n"]]