Added in API level 1
Factory
open class Factory
kotlin.Any | |
↳ | 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 | |
---|---|
Factory() |
Public methods | |
---|---|
open static Editable.Factory! |
Returns the standard Editable Factory. |
open Editable! |
newEditable(source: CharSequence!) Returns a new SpannableStringBuilder from the specified CharSequence. |
Public constructors
Factory
Factory()
Public methods
getInstance
Added in API level 1
open static fun getInstance(): Editable.Factory!
Returns the standard Editable Factory.
newEditable
Added in API level 1
open fun newEditable(source: CharSequence!): Editable!
Returns a new SpannableStringBuilder from the specified CharSequence. You can override this to provide a different kind of Spanned.