Added in API level 1
SingleLineTransformationMethod
open class SingleLineTransformationMethod : ReplacementTransformationMethod
| kotlin.Any | ||
| ↳ | android.text.method.ReplacementTransformationMethod | |
| ↳ | android.text.method.SingleLineTransformationMethod | |
This transformation method causes any newline characters (\n) to be displayed as spaces instead of causing line breaks, and causes carriage return characters (\r) to have no appearance.
Summary
| Public constructors | |
|---|---|
| Public methods | |
|---|---|
| open static SingleLineTransformationMethod! | |
| Protected methods | |
|---|---|
| open CharArray! |
The characters to be replaced are \n and \r. |
| open CharArray! |
The character \n is replaced with is space; the character \r is replaced with is FEFF (zero width space). |
| Inherited functions | |
|---|---|
Public constructors
SingleLineTransformationMethod
SingleLineTransformationMethod()
Public methods
Protected methods
getOriginal
Added in API level 1
protected open fun getOriginal(): CharArray!
The characters to be replaced are \n and \r.
getReplacement
Added in API level 1
protected open fun getReplacement(): CharArray!
The character \n is replaced with is space; the character \r is replaced with is FEFF (zero width space).